From: Tom Tromey <tromey@redhat.com>
To: Emacs Hackers <emacs-devel@gnu.org>
Subject: Patch to make 2 tcl.el variables safe
Date: Mon, 06 Aug 2007 22:07:46 -0600 [thread overview]
Message-ID: <m3ps20vvfx.fsf@fleche.redhat.com> (raw)
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 <tromey@redhat.com>
* 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."
next reply other threads:[~2007-08-07 4:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 4:07 Tom Tromey [this message]
2007-08-07 17:01 ` Patch to make 2 tcl.el variables safe Stefan Monnier
2007-08-07 20:12 ` Richard Stallman
2007-08-08 2:05 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ps20vvfx.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).