GNU bug report logs - #12259
[Mathieu Boespflug] Add delete-trailing-whitespace to list of safe eval forms

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Wed, 22 Aug 2012 13:20:02 UTC

Severity: wishlist

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mathieu Boespflug <mboes <at> tweag.net>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 12259 <at> debbugs.gnu.org
Subject: bug#12259: Add delete-trailing-whitespace to list of safe eval forms
Date: Thu, 23 Aug 2012 09:00:37 -0400
> I've just installed the patch below in the emacs-24 branch.

Thanks Stefan. That should do the trick.

-- Mathieu

> === modified file 'lisp/files.el'
> --- lisp/files.el	2012-08-15 16:29:11 +0000
> +++ lisp/files.el	2012-08-23 12:15:31 +0000
> @@ -2837,7 +2837,8 @@
>    ;; This should be here at least as long as Emacs supports write-file-hooks.
>    '((add-hook 'write-file-hooks 'time-stamp)
>      (add-hook 'write-file-functions 'time-stamp)
> -    (add-hook 'before-save-hook 'time-stamp))
> +    (add-hook 'before-save-hook 'time-stamp nil t)
> +    (add-hook 'before-save-hook 'delete-trailing-whitespace nil t))
>    "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




This bug report was last modified 12 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.