Ralf Angeli <[EMAIL PROTECTED]> writes:

> * Richard Lewis (2005-05-10) writes:
>
>> Cool.  I found a sligth problem with desktop turned on: TeX-master
>> gets saved in .emacs.desktop, but it does not get restored (when you
>> restore the desktop you get asked again, which is except the file need
>> not be displayed when the question is asked).

(Also, if you open just a master file and generate previews for the
whole document, the slave files are opened and you get asked for the
master file for each slave)

> The problem here is that the variables are restored too late.
> Alternatively you could say that the master file question is asked too
> early.  It is being asked when `find-file-hook' is run.

> As I know at least one other case where this location leads to
> problems[1], it would probably be good to ask this question later in
> the load process.  Does anybody know such a place?

As a workaround, how about forcing the buffer to be visible when the
question gets asked:

--- tex.el      09 May 2005 16:27:10 +0100      5.512
+++ tex.el      13 May 2005 16:39:18 +0100      
@@ -1240,6 +1240,7 @@
 
         ;; For files shared between many documents.
         ((and (eq 'shared TeX-master) ask)
+         (pop-to-buffer (current-buffer))
          (setq TeX-master
                (TeX-strip-extension
                 (let ((default (or (TeX-dwim-master) "this file")))



_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to