Function: hack-local-variables-apply
hack-local-variables-apply is a byte-compiled function defined in
files.el.gz.
Signature
(hack-local-variables-apply)
Documentation
Apply the elements of file-local-variables-alist.
If there are any elements, runs before-hack-local-variables-hook,
then calls hack-one-local-variable to apply the alist elements one by one.
Finishes by running hack-local-variables-hook, regardless of whether
the alist is empty or not.
Note that this function ignores a mode entry if it specifies the same
major mode as the buffer already has.
Source Code
;; Defined in /usr/src/emacs/lisp/files.el.gz
(defun hack-local-variables-apply ()
"Apply the elements of `file-local-variables-alist'.
If there are any elements, runs `before-hack-local-variables-hook',
then calls `hack-one-local-variable' to apply the alist elements one by one.
Finishes by running `hack-local-variables-hook', regardless of whether
the alist is empty or not.
Note that this function ignores a `mode' entry if it specifies the same
major mode as the buffer already has."
(when file-local-variables-alist
;; Any 'evals must run in the Right sequence.
(setq file-local-variables-alist
(nreverse file-local-variables-alist))
(run-hooks 'before-hack-local-variables-hook)
(dolist (elt file-local-variables-alist)
(hack-one-local-variable (car elt) (cdr elt))))
(run-hooks 'hack-local-variables-hook))