bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: local variable for updating the time stamp on save (was: Re: HOW CAN


From: Dan Nicolaescu
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

Richard Stallman <rms@gnu.org> 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...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]