emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108119: * lisp/files.el (safe-loc


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108119: * lisp/files.el (safe-local-eval-forms): Fix before-save-hook entry to be
Date: Thu, 23 Aug 2012 08:19:27 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108119
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12259
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Thu 2012-08-23 08:19:27 -0400
message:
  * lisp/files.el (safe-local-eval-forms): Fix before-save-hook entry to be
  buffer-local; add delete-trailing-whitespace.
modified:
  lisp/ChangeLog
  lisp/files.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-08-22 07:17:52 +0000
+++ b/lisp/ChangeLog    2012-08-23 12:19:27 +0000
@@ -1,3 +1,8 @@
+2012-08-23  Stefan Monnier  <address@hidden>
+
+       * files.el (safe-local-eval-forms): Fix before-save-hook entry to be
+       buffer-local; add delete-trailing-whitespace (bug#12259).
+
 2012-08-22  Jeremy Moore  <address@hidden>  (tiny change)
 
        * progmodes/hideif.el (hif-compress-define-list):

=== modified file 'lisp/files.el'
--- a/lisp/files.el     2012-08-07 18:41:39 +0000
+++ b/lisp/files.el     2012-08-23 12:19:27 +0000
@@ -2842,7 +2842,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


reply via email to

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