all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4554: local variable for updating the time stamp on save
@ 2009-09-24 20:51 ` Juri Linkov
  2009-09-25  0:44   ` Stefan Monnier
  2009-09-25 22:15   ` bug#4554: marked as done (local variable for updating the time stamp on save) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ messages in thread
From: Juri Linkov @ 2009-09-24 20:51 UTC (permalink / raw
  To: bug-gnu-emacs

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/






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4554: local variable for updating the time stamp on save
  2009-09-24 20:51 ` bug#4554: local variable for updating the time stamp on save Juri Linkov
@ 2009-09-25  0:44   ` Stefan Monnier
  2009-09-25 22:15   ` bug#4554: marked as done (local variable for updating the time stamp on save) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-09-25  0:44 UTC (permalink / raw
  To: Juri Linkov; +Cc: 4554

> 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,


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4554: marked as done (local variable for updating the time stamp on save)
  2009-09-24 20:51 ` bug#4554: local variable for updating the time stamp on save Juri Linkov
  2009-09-25  0:44   ` Stefan Monnier
@ 2009-09-25 22:15   ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-09-25 22:15 UTC (permalink / raw
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

Your message dated Fri, 25 Sep 2009 18:05:04 -0400
with message-id <87eipuistr.fsf@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 owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4554: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4554
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3440 bytes --]

From: Juri Linkov <juri@jurta.org>
To: bug-gnu-emacs@gnu.org
Subject: local variable for updating the time stamp on save
Date: Thu, 24 Sep 2009 23:51:23 +0300
Message-ID: <87hbut1vpi.fsf@mail.jurta.org>

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/



[-- Attachment #3: Type: message/rfc822, Size: 1861 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Juri Linkov <juri@jurta.org>, 4554-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4554: local variable for updating the time stamp on save
Date: Fri, 25 Sep 2009 18:05:04 -0400
Message-ID: <87eipuistr.fsf@stupidchicken.com>

> > 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-25 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87eipuistr.fsf@stupidchicken.com>
2009-09-24 20:51 ` bug#4554: local variable for updating the time stamp on save Juri Linkov
2009-09-25  0:44   ` Stefan Monnier
2009-09-25 22:15   ` bug#4554: marked as done (local variable for updating the time stamp on save) Emacs bug Tracking System

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.