From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman 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 00:28:13 -0500 Message-ID: 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> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1199424640 26609 80.91.229.12 (4 Jan 2008 05:30:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jan 2008 05:30:40 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, Bruce.Korb@gmail.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 04 06:30:58 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 1JAf90-0005by-0u for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 06:30:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAf8d-0000wu-JH for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jan 2008 00:30:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAf6O-0008Tg-70 for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 00:28:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAf6M-0008Sh-PR for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 00:28:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAf6M-0008SY-Hg for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 00:28:14 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAf6M-0006xo-Aj for bug-gnu-emacs@gnu.org; Fri, 04 Jan 2008 00:28:14 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1JAf6L-0002GF-L6; Fri, 04 Jan 2008 00:28:13 -0500 In-reply-to: <200801030655.m036tJco000552@oogie-boogie.ics.uci.edu> (message from Dan Nicolaescu on Wed, 02 Jan 2008 22:55:19 -0800) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:17298 Archived-At: 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'.