bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] preview-latex's menu entry not present when loading bib


From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] preview-latex's menu entry not present when loading bib-cite.el
Date: Mon, 02 Sep 2013 12:43:11 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Marcus Frings <address@hidden> writes:

> Well, with quite a very basic emacs_tex.el like this
>
> ,----
> | (setq TeX-data-directory "~/.emacs.d/sources/auctex")
> | (add-to-list 'load-path "~/.emacs.d/sources/auctex")
> | (add-to-list 'load-path "~/.emacs.d/sources/auctex/preview")
> | (require 'info)
> | (add-to-list 'Info-additional-directory-list 
> "~/.emacs.d/sources/auctex/doc")
> | (load "auctex.el" nil t t)
> | (load "preview-latex.el" nil t t)
> | (setq TeX-macro-private '("~/texmf/"))
> | (setq TeX-auto-private '("~/.tex-el/"))
> | (setq TeX-auto-save t)
> | (setq TeX-save-query nil)
> | (setq TeX-parse-self t)
> | (setq-default TeX-master nil)
> | (add-hook 'LaTeX-mode-hook 'turn-on-bib-cite)
> `----
>
> I can reproduce it and I then have the following menu list:
>
>   File Edit Options Buffers Tools LaTeX Command BCite Help
>
> And if I remove the last line, where bib-cite get activated, I have:
>
>   File Edit Options Buffers Tools Preview LaTeX Command Help
>
> This also happens when I load a plain Emacs with no other configuration
> by evoking "emacs -q" and then just evaluating the lines from above in a
> buffer.

Indeed, now I can reproduce the problem with your recipe.  And I noticed
that it just works again if you remove turn-on-bib-cite again, open the
document anew, add it again, open the document anew...  It also works if
you append turn-on-bib-cite to LaTeX-mode-hook.

Ah, the problem is that `turn-on-bib-cite' errors, and thus other
functions in `LaTeX-mode-hook' (like the preview setup) don't run.

Debugger entered--Lisp error: (void-function make-local-hook)
  make-local-hook(after-change-functions)
  bib-cite-minor-mode(1)
  eval((bib-cite-minor-mode 1) nil)
  eval-expression((bib-cite-minor-mode 1) nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)

`make-local-hook' is only defined for XEmacs.  On GNU Emacs, a local
hook is created automatically when add-hook is called with non-nil LOCAL
argument, but on XEmacs you have to do that yourself.  I've added a fix
in Git.

Bye,
Tassilo




reply via email to

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