all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch to make 2 tcl.el variables safe
@ 2007-08-07  4:07 Tom Tromey
  2007-08-07 17:01 ` Stefan Monnier
  2007-08-07 20:12 ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Tromey @ 2007-08-07  4:07 UTC (permalink / raw)
  To: Emacs Hackers

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch to make 2 tcl.el variables safe
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2007-08-07 17:01 UTC (permalink / raw)
  To: Tom Tromey; +Cc: Emacs Hackers

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

Thanks, installed in the 22 branch,


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch to make 2 tcl.el variables safe
  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
  2007-08-08  2:05   ` Glenn Morris
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-08-07 20:12 UTC (permalink / raw)
  To: Tom Tromey; +Cc: emacs-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Patch to make 2 tcl.el variables safe
  2007-08-07 20:12 ` Richard Stallman
@ 2007-08-08  2:05   ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2007-08-08  2:05 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:

> Would someone please install this in Emacs 22 and ack?

Stefan already did this.

> To: Emacs Hackers <emacs-devel@gnu.org>
> From: Tom Tromey <tromey@redhat.com>
> Date: Mon, 06 Aug 2007 22:07:46 -0600
> Subject: Patch to make 2 tcl.el variables safe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-08  2:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-08-08  2:05   ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.