From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: Re: local variable for updating the time stamp on save (was: Re: HOW CAN I STOP THIS NOVICE MODE STUFF?) Date: Thu, 10 Jan 2008 06:02:36 -0800 Message-ID: <200801101402.m0AE2aM2006101@oogie-boogie.ics.uci.edu> References: <476ED79F.1000306@gmail.com> <477141A3.7030808@gmail.com> <477BE6DE.3030207@gmail.com> <200801021951.m02Jpq43005487@oogie-boogie.ics.uci.edu> <477C060C.4010903@gmail.com> <200801022157.m02LvVAc013684@oogie-boogie.ics.uci.edu> <477C2857.5060502@gmail.com> <200801030044.m030ikI2020292@oogie-boogie.ics.uci.edu> <200801030655.m036tJco000552@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199973874 11420 80.91.229.12 (10 Jan 2008 14:04:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 14:04:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Bruce.Korb@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 15:04:56 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCy1e-0008As-UA for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 15:04:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCy1H-0001WV-IM for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 09:04:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCy1C-0001WN-Sf for bug-gnu-emacs@gnu.org; Thu, 10 Jan 2008 09:04:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCy1A-0001Vh-UH for bug-gnu-emacs@gnu.org; Thu, 10 Jan 2008 09:04:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCy1A-0001Vc-RV for bug-gnu-emacs@gnu.org; Thu, 10 Jan 2008 09:04:24 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCy16-0002pD-Iv; Thu, 10 Jan 2008 09:04:20 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id m0AE2aM2006101; Thu, 10 Jan 2008 06:02:36 -0800 (PST) In-Reply-To: (Richard Stallman's message of "Fri, 04 Jan 2008 00:28:13 -0500") Original-Lines: 31 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17329 Archived-At: Richard Stallman writes: y > Bruce wrote: > > > What I think I am asking for is documentation on how to make this test: > > > > (eq enable-local-variables :all) > > > > yield "#t" (or however it is spelled in emacs lisp). > > Would that be: > > > > (set enable-local-variables :all) > > > > in my .emacs file? > > (setq enable-local-variables :all) could do it, but that is a really > bad idea. It means that a nasty file sent to you, which you then > visit in Emacs, could make your Emacs do anything at all. > > The only issue left with the local variables in gnulib is: > # eval: (add-hook 'write-file-hooks 'time-stamp) > > Bruce, you can add this to `safe-local-eval-forms'. Does that work > for you? > > Maybe we should add it to the default value of > `safe-local-eval-forms'. I have done that as per your request. (on the EMACS_22_BASE branch) Bruce, do you get any other unsafe variable warnings?