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
6bf9bdb4
Commit
6bf9bdb4
authored
Jun 10, 2015
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/files-x.el (add-file-local-variable):
Special-case 'lexical-binding'. (Bug#20641)
parent
d9d04bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lisp/files-x.el
lisp/files-x.el
+7
-0
No files found.
lisp/files-x.el
View file @
6bf9bdb4
...
...
@@ -247,7 +247,14 @@ then this function adds the first line containing the string
`Local Variables:' and the last line containing the string `End:'."
(
interactive
(
let
((
variable
(
read-file-local-variable
"Add file-local variable"
)))
;; Error before reading value.
(
if
(
equal
variable
'lexical-binding
)
(
user-error
"The `%s' variable must be set at the start of the file"
variable
))
(
list
variable
(
read-file-local-variable-value
variable
)
t
)))
(
if
(
equal
variable
'lexical-binding
)
(
user-error
"The `%s' variable must be set at the start of the file"
variable
))
(
modify-file-local-variable
variable
value
'add-or-replace
interactive
))
;;;###autoload
...
...
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