[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gmane.emacs.sources] dir-locals.el
From: |
Chong Yidong |
Subject: |
Re: [gmane.emacs.sources] dir-locals.el |
Date: |
Tue, 20 Jun 2006 08:36:08 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Kim F. Storm) writes:
> Before, hack-local-variables-hook was run unconditionally at the end
> of hack-local-variables, but now it is only run if the file has local
> variables.
>
> Is that change intentional or just an oversight?
It is an oversight. This little patch should fix it; I'll install it
over the next few days.
*** emacs/lisp/files.el.~1.844.~ 2006-06-12 23:38:23.000000000 -0400
--- emacs/lisp/files.el 2006-06-20 08:34:27.000000000 -0400
***************
*** 2635,2642 ****
(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))))))
(defun safe-local-variable-p (sym val)
"Non-nil if SYM is safe as a file-local variable with value VAL.
--- 2635,2642 ----
(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)))))
(defun safe-local-variable-p (sym val)
"Non-nil if SYM is safe as a file-local variable with value VAL.