[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] auctex 11.86: TeX-auto-untabify is a safe local
From: |
Stephen Gildea |
Subject: |
[Bug-AUCTeX] auctex 11.86: TeX-auto-untabify is a safe local |
Date: |
Thu, 22 Jul 2010 21:12:37 -0700 |
The variable TeX-auto-untabify is occasionally useful to set in the local
variables section of a file that really depends on it. Emacs then
complains, because this variable is not marked as safe. The following
patch adds that:
--- tex.el 2009-10-02 11:58:19.000000000 -0700
+++ tex.el 2010-07-18 15:22:47.000000000 -0700
@@ -2679,10 +2679,12 @@
(defcustom TeX-auto-untabify nil
"*Automatically untabify when saving the buffer."
:group 'TeX-parse
:type 'boolean)
+(put 'TeX-auto-untabify 'safe-local-variable 'TeX-booleanp)
+
(defun TeX-auto-write ()
"Save all relevant TeX information from the current buffer."
(if TeX-auto-untabify
(untabify (point-min) (point-max)))
(if (and TeX-auto-save TeX-auto-local)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-AUCTeX] auctex 11.86: TeX-auto-untabify is a safe local,
Stephen Gildea <=