Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
37fd9666
Commit
37fd9666
authored
Apr 07, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(hack-one-local-variable): Treat varnames ending in -form or -forms like eval.
parent
1576fe1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/files.el
lisp/files.el
+2
-1
No files found.
lisp/files.el
View file @
37fd9666
...
...
@@ -1112,7 +1112,8 @@ If `enable-local-variables' is nil, this function does not check for a
;; "Setting" eval means either eval it or do nothing.
;; Likewise for setting hook variables.
((
or
(
memq
var
'
(
eval
file-name-handler-alist
after-load-alist
))
(
string-match
"-hooks?$\\|-functions?$"
(
symbol-name
var
)))
(
string-match
"-hooks?$\\|-functions?$\\|-forms?$"
(
symbol-name
var
)))
(
if
(
and
(
not
(
string=
(
user-login-name
)
"root"
))
(
or
(
eq
enable-local-eval
t
)
(
and
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