From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Patch to make 2 tcl.el variables safe Date: Mon, 06 Aug 2007 22:07:46 -0600 Message-ID: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186460778 28545 80.91.229.12 (7 Aug 2007 04:26:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 04:26:18 +0000 (UTC) To: Emacs Hackers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 06:26:15 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 1IIGe4-0006ws-U6 for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 06:26:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIGe1-0000F9-7c for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 00:26:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIGdy-0000Ed-21 for emacs-devel@gnu.org; Tue, 07 Aug 2007 00:26:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIGdt-0000Dn-DI for emacs-devel@gnu.org; Tue, 07 Aug 2007 00:26:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIGdt-0000Dk-79 for emacs-devel@gnu.org; Tue, 07 Aug 2007 00:26:01 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIGdq-00030I-6p for emacs-devel@gnu.org; Tue, 07 Aug 2007 00:25:59 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l774Pi6P007608 for ; Tue, 7 Aug 2007 00:25:44 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l774PiAg007416 for ; Tue, 7 Aug 2007 00:25:44 -0400 Original-Received: from opsy.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l774PgVR032159; Tue, 7 Aug 2007 00:25:43 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id E9FCAC88249; Mon, 6 Aug 2007 22:07:46 -0600 (MDT) X-Attribution: Tom 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:76125 Archived-At: 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."