emacs-devel
[Top][All Lists]
Advanced

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

Patch to make 2 tcl.el variables safe


From: Tom Tromey
Subject: Patch to make 2 tcl.el variables safe
Date: Mon, 06 Aug 2007 22:07:46 -0600

I happened to notice that tcl-indent-level and
tcl-continued-indent-level are not marked as safe local variables.
It seems reasonable to allow this, so that indentation can
be controlled per-file.  Patch appended.

Tom

2007-08-07  Tom Tromey  <address@hidden>

        * progmodes/tcl.el (tcl-indent-level): Mark as safe.
        (tcl-continued-indent-level): Likewise.

Index: lisp/progmodes/tcl.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/tcl.el,v
retrieving revision 1.90
diff -u -r1.90 tcl.el
--- lisp/progmodes/tcl.el       26 Jul 2007 05:27:29 -0000      1.90
+++ lisp/progmodes/tcl.el       7 Aug 2007 04:20:10 -0000
@@ -126,11 +126,13 @@
   "*Indentation of Tcl statements with respect to containing block."
   :type 'integer
   :group 'tcl)
+(put 'tcl-indent-level 'safe-local-variable 'integerp)
 
 (defcustom tcl-continued-indent-level 4
   "*Indentation of continuation line relative to first line of command."
   :type 'integer
   :group 'tcl)
+(put 'tcl-continued-indent-level 'safe-local-variable 'integerp)
 
 (defcustom tcl-auto-newline nil
   "*Non-nil means automatically newline before and after braces you insert."




reply via email to

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