GNU bug report logs - #21188
Preview installed from the package manager changes LaTeX-mode-hook

Previous Next

Package: auctex;

Reported by: Joseph Mingrone <jrm <at> ftfl.ca>

Date: Tue, 4 Aug 2015 18:26:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Tassilo Horn <tsdh <at> gnu.org>
To: bug-auctex <at> gnu.org
Subject: Re: bug#21188: Preview installed from the package manager changes
 LaTeX-mode-hook
Date: Mon, 10 Aug 2015 08:30:48 +0200
Arash Esbati <esbati <at> gmx.de> writes:

> I've installed the latest version from git with your patch and get the
> following when I open a tex file:
>
>     (void-function LaTeX-preview-setup)
>
> Recipe:
>
> 1)  Start emacs with
>     emacs --eval '(setq debug-on-error t)' -Q &
>
> 2)  Eval in scratch buffer
>     (load "auctex.el" nil t t)

How can you do that without telling Emacs where auctex.el resides?

> 3)  Open a tex file and emacs says:
>
> Debugger entered--Lisp error: (void-function LaTeX-preview-setup)

`LaTeX-preview-setup' is autoloaded from preview-latex.el.  So it relies
on

  (load "preview-latex.el" nil t t)

also being in your ~/.emacs.  Although I can omit that but still don't
get that error...

But I guess it wouldn't hurt to wrap the call in an fboundp check...

Bye,
Tassilo




This bug report was last modified 9 years and 285 days ago.

Previous Next


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