From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Patch to make 2 tcl.el variables safe Date: Tue, 07 Aug 2007 16:12:11 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1186517508 22453 80.91.229.12 (7 Aug 2007 20:11:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 20:11:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 22:11:36 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IIVOv-0002dO-PL for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 22:11:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIVOu-0004PA-6X for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 16:11:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIVN8-0003fa-LW for emacs-devel@gnu.org; Tue, 07 Aug 2007 16:09:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIVN3-0003cO-QX for emacs-devel@gnu.org; Tue, 07 Aug 2007 16:09:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIVN3-0003bz-6y for emacs-devel@gnu.org; Tue, 07 Aug 2007 16:09:37 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIVN1-00080e-VY for emacs-devel@gnu.org; Tue, 07 Aug 2007 16:09:36 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IIVPX-0003pX-B1; Tue, 07 Aug 2007 16:12:11 -0400 In-reply-to: (message from Tom Tromey on Mon, 06 Aug 2007 22:07:46 -0600) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76156 Archived-At: Would someone please install this in Emacs 22 and ack? To: Emacs Hackers From: Tom Tromey 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 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 * 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