[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: multi-file support

From: Richard Lewis
Subject: [AUCTeX-devel] Re: multi-file support
Date: Fri, 13 May 2005 16:46:30 +0100
User-agent: Gnus Emacs (gnu/linux)

Ralf Angeli <address@hidden> 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
                 (let ((default (or (TeX-dwim-master) "this file")))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]