GNU bug report logs - #21297
11.88.7; Previews not restored between Emacs sessions

Previous Next

Package: auctex;

Reported by: gojjoe <at> gmail.com

Date: Thu, 20 Aug 2015 12:39:01 UTC

Severity: normal

Found in version 11.88.7

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21297 in the body.
You can then email your comments to 21297 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#21297; Package auctex. (Thu, 20 Aug 2015 12:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to gojjoe <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Thu, 20 Aug 2015 12:39:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: gojjoe <at> gmail.com
To: bug-auctex <at> gnu.org
Subject: 11.88.7; Previews not restored between Emacs sessions
Date: Thu, 20 Aug 2015 14:37:49 +0200
Dear All,

I've just noticed that previews are not restored between 
Emacs sessions, even if Desktop is active. This is happening 
with a minimal init file (see below).

More in detail, I:
- start Emacs and open a LaTeX file, move the cursor a 
couple screenfuls down,
- run preview on the file; previews are generated,
- quit Emacs and get the prompt "Save Desktop?", to which I 
answer "yes",
- start Emacs again; the frame of the LaTeX file is 
restored, with cursor at the same position as the last 
session. No previews are visible, though.


Note that the previews are restored between sessions if I 
include

(require 'preview)

towards the beginning of my init file. Doing so, however, 
breaks several paths (more precisely, my "TeX-macro-global" 
and "TeX-tree-roots" are overwritten - why? - and I get 
"'c:/PROGRAM' is not recognized as an internal or external 
command..." warnings).


Thank you for your help,
J

---- init-file begins ----

(require 'package) (package-initialize)
(setenv "PATH" (concat "C:\\cygwin\\bin;C:\\cygwin\\lib;" 
(getenv "PATH")))
(setq exec-path (append '("C:/cygwin/bin" "C:/cygwin/lib") 
exec-path))

(add-to-list 'package-archives '("melpa" . 
"http://melpa.milkbox.net/packages/") t)

;(require 'preview) ;; uncommenting this keeps previews 
between sessions but breaks paths

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be 
careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(LaTeX-command-style (quote (("" "%(PDF)%(latex) 
%(extraopts) %S%(PDFout)"))))
 '(TeX-PDF-mode t)
 '(TeX-macro-global
   (quote
    ("C:/Users/pglpm/work/MikTeX/tex" 
"c:/PROGRA~1/MiKTeX~2.9/tex/" 
"c:/PROGRA~1/MiKTeX~2.9/bibtex/bst/")))
 '(TeX-tree-roots
   (quote
    ("c:/PROGRA~1/MiKTeX 2.9/" "C:/Users/XXX/MikTeX/")))
 '(desktop-path (quote ("~")))
 '(desktop-save-mode t)
 '(preview-gs-command "c:\\PROGRA~1\\GS\\BIN\\GSWIN32C.EXE"))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be 
careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:family "DejaVu Sans Mono" :height 76)))))

---- init-file ends ----




Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Package: 11.88.7

current state:
==============
(setq
 AUCTeX-date "2015-09-07"
 window-system 'w32
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
		  "c:/Users/XXX/.emacs.d/elpa/auctex-11.88.7/style"
		  "c:/Users/XXX/.emacs.d/auctex/auto"
		  "c:/Users/XXX/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("TeX"
		     "%(PDF)%(tex) %(file-line-error) %(extraopts) 
%`%S%(PDFout)%(mode)%' %t"
		     TeX-run-TeX nil
		     (plain-tex-mode ams-tex-mode texinfo-mode) :help
		     "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode) :help "Run LaTeX")
		    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
		     (texinfo-mode) :help "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
		     TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX"
		     "%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t"
		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
		    ("ConTeXt"
		     "texexec --once --texutil %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "texexec %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
		     "Run BibTeX")
		    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
		    ("View" "%V" TeX-run-discard-or-function t t :help
		     "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the file")
		    ("Queue" "%q" TeX-run-background nil t :help
		     "View the printer queue" :visible TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
		     "Generate PostScript file")
		    ("Index" "makeindex %s" TeX-run-command nil t :help
		     "Create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil t :help
		     "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for common mistakes")
		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
		     t :help "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help
		     "Run an arbitrary command")
		    )
 )





Information forwarded to bug-auctex <at> gnu.org:
bug#21297; Package auctex. (Thu, 20 Aug 2015 15:24:01 GMT) Full text and rfc822 format available.

Message #8 received at 21297 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 21297 <at> debbugs.gnu.org
Subject: Re: bug#21297: 11.88.7; Previews not restored between Emacs sessions
Date: Thu, 20 Aug 2015 17:17:55 +0200
gojjoe <at> gmail.com writes:

Hi!

> I've just noticed that previews are not restored between Emacs
> sessions, even if Desktop is active. This is happening with a minimal
> init file (see below).
>
> More in detail, I:
> - start Emacs and open a LaTeX file, move the cursor a couple screenfuls down,
> - run preview on the file; previews are generated,
> - quit Emacs and get the prompt "Save Desktop?", to which I answer "yes",
> - start Emacs again; the frame of the LaTeX file is restored, with cursor at
> the same position as the last session. No previews are visible, though.
>
>
> Note that the previews are restored between sessions if I include
>
> (require 'preview)
>
> towards the beginning of my init file.  Doing so, however, breaks
> several paths (more precisely, my "TeX-macro-global" and
> "TeX-tree-roots" are overwritten - why? - and I get "'c:/PROGRAM' is
> not recognized as an internal or external command..." warnings).

Does anything change when you require preview after the
custom-set-variables?

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#21297; Package auctex. (Thu, 20 Aug 2015 22:27:01 GMT) Full text and rfc822 format available.

Message #11 received at 21297 <at> debbugs.gnu.org (full text, mbox):

From: gojjoe <at> gmail.com
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 21297 <at> debbugs.gnu.org
Subject: Re: bug#21297: 11.88.7; Previews not restored between Emacs sessions
Date: Fri, 21 Aug 2015 00:26:02 +0200
Hi Tassilo!

On 150820 Thu 17:17, Tassilo Horn wrote:
>
> Does anything change when you require preview after the
> custom-set-variables?

That's an interesting idea, I'll try it as soon as 
possible... Unfortunately I've somehow completely broken 
preview now, either because my init file or because of my 
environment variables. I'll reply as soon as I've fixed it!

Cheers,
J





Information forwarded to bug-auctex <at> gnu.org:
bug#21297; Package auctex. (Fri, 21 Aug 2015 06:03:02 GMT) Full text and rfc822 format available.

Message #14 received at 21297 <at> debbugs.gnu.org (full text, mbox):

From: gojjoe <at> gmail.com
To: 21297 <at> debbugs.gnu.org
Subject: Re: bug#21297: 11.88.7; Previews not restored between Emacs sessions
Date: Fri, 21 Aug 2015 08:02:34 +0200

On 150820 Thu 17:17, Tassilo Horn wrote:
>
> Does anything change when you require preview after the
> custom-set-variables?

Hi Tassilo, yes, that has solved the problem, thank you!




Reply sent to Tassilo Horn <tsdh <at> gnu.org>:
You have taken responsibility. (Fri, 21 Aug 2015 08:54:01 GMT) Full text and rfc822 format available.

Notification sent to gojjoe <at> gmail.com:
bug acknowledged by developer. (Fri, 21 Aug 2015 08:54:02 GMT) Full text and rfc822 format available.

Message #19 received at 21297-done <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: gojjoe <at> gmail.com
Cc: 21297-done <at> debbugs.gnu.org
Subject: Re: bug#21297: 11.88.7; Previews not restored between Emacs sessions
Date: Fri, 21 Aug 2015 10:53:13 +0200
gojjoe <at> gmail.com writes:

>> Does anything change when you require preview after the
>> custom-set-variables?
>
> Hi Tassilo, yes, that has solved the problem, thank you!

Ok, then I'm closing this report.

Bye,
Tassilo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Sep 2015 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.