[Top][All Lists]

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

Re: [Bug-AUCTeX] preview-1.247; preview-latex makes desktop restoration

From: David Kastrup
Subject: Re: [Bug-AUCTeX] preview-1.247; preview-latex makes desktop restoration fail for some buffers
Date: Tue, 05 Apr 2005 12:02:36 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> Suppose you have a directory with two LaTeX files.  Have those two
> files opened and call `M-x desktop-save RET' (if you have desktop.el
> and preview-latex enabled).  After restarting Emacs only one of the
> files will be loaded and the message
> Desktop: 1 buffer restored, 1 failed to restore.
> will be printed to the *Messages* buffer.
> What is happening is that desktop.el calls `desktop-buffer-preview'
> for latex-mode files which will return nil unless it finds the symbol
> 'preview in the car of `desktop-buffer-misc'.  But if you didn't have
> any active previews such a symbol will not be present because
> `desktop-buffer-preview-misc-data' didn't write generate anything like
> that.  I think in such cases `desktop-buffer-preview' should just
> return the buffer without extra processing in contrast to returning
> nil.  Here is a patch doing this:

Sounds like the right thing to do.  Probably an oversight.

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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