GNU bug report logs -
#4554
local variable for updating the time stamp on save
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Thu, 24 Sep 2009 21:10:05 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 25 Sep 2009 18:05:04 -0400
with message-id <87eipuistr.fsf <at> stupidchicken.com>
and subject line Re: bug#4554: local variable for updating the time stamp on save
has caused the Emacs bug report #4554,
regarding local variable for updating the time stamp on save
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)
--
4554: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4554
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
The defcustom `safe-local-eval-forms' contains
'((add-hook 'write-file-hooks 'time-stamp))
but the documentation suggests using
(add-hook 'before-save-hook 'time-stamp)
This patch adds the recommended form to `safe-local-eval-forms' as well:
Index: lisp/files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.1083
diff -c -r1.1083 files.el
*** lisp/files.el 21 Sep 2009 22:12:30 -0000 1.1083
--- lisp/files.el 24 Sep 2009 20:47:28 -0000
***************
*** 2687,2693 ****
:group 'find-file
:type 'alist)
! (defcustom safe-local-eval-forms '((add-hook 'write-file-hooks 'time-stamp))
"Expressions that are considered safe in an `eval:' local variable.
Add expressions to this list if you want Emacs to evaluate them, when
they appear in an `eval' local variable specification, without first
--- 2687,2695 ----
:group 'find-file
:type 'alist)
! (defcustom safe-local-eval-forms
! '((add-hook 'before-save-hook 'time-stamp)
! (add-hook 'write-file-hooks 'time-stamp))
"Expressions that are considered safe in an `eval:' local variable.
Add expressions to this list if you want Emacs to evaluate them, when
they appear in an `eval' local variable specification, without first
--
Juri Linkov
http://www.jurta.org/emacs/
[Message part 3 (message/rfc822, inline)]
> > The defcustom `safe-local-eval-forms' contains
> > '((add-hook 'write-file-hooks 'time-stamp))
> > but the documentation suggests using
> > (add-hook 'before-save-hook 'time-stamp)
> > This patch adds the recommended form to `safe-local-eval-forms' as well:
>
> Feel free to install this patch, thanks,
I went ahead and installed.
This bug report was last modified 15 years and 297 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.