* Stefan Strohmeier (2010-11-06) writes:

> I am trying to achieve the same behavior as Colin Jia Zheng in his post 
> (http://www.mail-archive.com/[email protected]/msg03234.html):
>
> I want to delete all LaTeX generated intermediate files when I kill a 
> latex-mode buffer, automatically.
>
> I put the code I found in that post in my emacs-file and it is working 
> properly one time. When I then want to open another file, e.g. via 
> recentf-mode I get the following error: 
>
> Symbol's value as variable is void: -clean-intermediate-suffixes
>
> The code I put in the .emacs-file is this:
>
> (add-hook 'LaTeX-mode-hook
>         (lambda ()
>               (add-hook 'kill-buffer-hook 'TeX-clean)))

As mentioned in the post you referenced above, setting the LOCAL
argument of `add-hook' should improve the situation.

-- 
Ralf

_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to