Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1d517019
Commit
1d517019
authored
Dec 15, 1994
by
Richard M. Stallman
Browse files
(hack-local-variables): Run hack-local-variables-hook.
(hack-local-variables-hook): New variable.
parent
efa2bb9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lisp/files.el
lisp/files.el
+7
-1
No files found.
lisp/files.el
View file @
1d517019
...
...
@@ -1077,6 +1077,11 @@ If `enable-local-variables' is nil, this function does not check for a
(
hack-one-local-variable
(
car
(
car
result
))
(
cdr
(
car
result
)))
(
setq
result
(
cdr
result
)))))))
(
defvar
hack-local-variables-hook
nil
"Normal hook run after processing a file's local variables specs.
Major modes can use this to examine user-specified local variables
in order to initialize other data structure based on them."
)
(
defun
hack-local-variables
()
"Parse and put into effect this buffer's local variables spec."
(
hack-local-variables-prop-line
)
...
...
@@ -1147,7 +1152,8 @@ If `enable-local-variables' is nil, this function does not check for a
(
or
(
if
suffix
(
looking-at
suffix
)
(
eolp
))
(
error
"Local variables entry is terminated incorrectly"
))
;; Set the variable. "Variables" mode and eval are funny.
(
hack-one-local-variable
var
val
))))))))
(
hack-one-local-variable
var
val
)))))))
(
run-hooks
'hack-local-variables-hook
))
(
defconst
ignored-local-variables
'
(
enable-local-eval
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment