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: Fri, 04 Jan 2008 10:15:54 -0800 Message-ID: <200801041816.m04IG8hu012127@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 1199470811 9154 80.91.229.12 (4 Jan 2008 18:20:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 18:20:11 +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 Fri Jan 04 19:20:31 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 1JAr9h-0000S7-TU for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 19:20:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAr9L-0000b3-7k for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 13:20:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAr87-0008C0-QA for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 13:18:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAr87-0008BQ-2V for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 13:18:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAr86-0008B5-Mn for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 13:18:50 -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 1JAr82-0001Ny-UV; Fri, 04 Jan 2008 13:18:47 -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 m04IG8hu012127; Fri, 4 Jan 2008 10:16:08 -0800 (PST) In-Reply-To: (Richard Stallman's message of "Fri, 04 Jan 2008 00:28:13 -0500") Original-Lines: 30 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.24, required 5, autolearn=disabled, ALL_TRUSTED -1.44, J_CHICKENPOX_63 0.60, J_CHICKENPOX_65 0.60) 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:17304 Archived-At: Richard Stallman writes: > 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'. IMO we should. config.guess and config.sub use that form. Luckily very few people need to edit those files...