unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Tom Tromey <tromey@redhat.com>
Cc: emacs-devel@gnu.org
Subject: Re: Patch to make 2 tcl.el variables safe
Date: Tue, 07 Aug 2007 16:12:11 -0400	[thread overview]
Message-ID: <E1IIVPX-0003pX-B1@fencepost.gnu.org> (raw)
In-Reply-To: <m3ps20vvfx.fsf@fleche.redhat.com> (message from Tom Tromey on Mon, 06 Aug 2007 22:07:46 -0600)

Would someone please install this in Emacs 22 and ack?


To: Emacs Hackers <emacs-devel@gnu.org>
From: Tom Tromey <tromey@redhat.com>
Date: Mon, 06 Aug 2007 22:07:46 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Subject: Patch to make 2 tcl.el variables safe
Reply-To: Tom Tromey <tromey@redhat.com>

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."


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  parent reply	other threads:[~2007-08-07 20:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07  4:07 Patch to make 2 tcl.el variables safe Tom Tromey
2007-08-07 17:01 ` Stefan Monnier
2007-08-07 20:12 ` Richard Stallman [this message]
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=E1IIVPX-0003pX-B1@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tromey@redhat.com \
    /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).