changeset 71407:869cafeb8289

* files.el (hack-local-variables): Run `hack-local-variables-hook' whether or not a local variables list is defined.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 20 Jun 2006 22:22:33 +0000
parents 901e09680d63
children a335bdf2a541
files lisp/ChangeLog lisp/files.el
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Jun 20 19:30:36 2006 +0000
+++ b/lisp/ChangeLog	Tue Jun 20 22:22:33 2006 +0000
@@ -13,6 +13,9 @@
 
 2006-06-20  Chong Yidong  <cyd@stupidchicken.com>
 
+	* files.el (hack-local-variables): Run `hack-local-variables-hook'
+	whether or not a local variables list is defined.
+
 	* msb.el (msb): Move `sit-for' hack here to handle both
 	"mouse-down and drag" and "mouse-up and select" situations.
 	(mouse-select-buffer): Move `sit-for' hack to `msb'.
--- a/lisp/files.el	Tue Jun 20 19:30:36 2006 +0000
+++ b/lisp/files.el	Tue Jun 20 22:22:33 2006 +0000
@@ -2665,8 +2665,8 @@
 		      (hack-local-variables-confirm
 		       result unsafe-vars risky-vars))
 		  (dolist (elt result)
-		    (hack-one-local-variable (car elt) (cdr elt))))))
-	  (run-hooks 'hack-local-variables-hook))))))
+		    (hack-one-local-variable (car elt) (cdr elt)))))))
+	(run-hooks 'hack-local-variables-hook)))))
 
 (defun safe-local-variable-p (sym val)
   "Non-nil if SYM is safe as a file-local variable with value VAL.