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
3fa0a9aa
Commit
3fa0a9aa
authored
Sep 01, 1997
by
Kenichi Handa
Browse files
(hack-local-variables-prop-line): Ignore coding: tag.
(hack-one-local-variable): Likewise.
parent
ef128a91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lisp/files.el
lisp/files.el
+8
-2
No files found.
lisp/files.el
View file @
3fa0a9aa
...
...
@@ -1369,8 +1369,9 @@ and we don't even do that unless it would come from the file name."
(
defun
hack-local-variables-prop-line
()
;; Set local variables specified in the -*- line.
;; Ignore any specification for `mode:';
;; set-auto-mode should already have handled that.
;; Ignore any specification for `mode:' and `coding:';
;; set-auto-mode should already have handled `mode:',
;; set-auto-coding should already have handled `coding:'.
(
save-excursion
(
goto-char
(
point-min
))
(
let
((
result
nil
)
...
...
@@ -1406,7 +1407,9 @@ and we don't even do that unless it would come from the file name."
;; case when checking for `mode' in set-auto-mode,
;; so we must do that here as well.
;; That is inconsistent, but we're stuck with it.
;; The same can be said for `coding' in set-auto-coding.
(
or
(
equal
(
downcase
(
symbol-name
key
))
"mode"
)
(
equal
(
downcase
(
symbol-name
key
))
"coding"
)
(
setq
result
(
cons
(
cons
key
val
)
result
)))
(
skip-chars-forward
" \t;"
)))
(
setq
result
(
nreverse
result
))))
...
...
@@ -1558,6 +1561,9 @@ is specified, returning t if it is specified."
(
cond
((
eq
var
'mode
)
(
funcall
(
intern
(
concat
(
downcase
(
symbol-name
val
))
"-mode"
))))
((
eq
var
'coding
)
;; We have already handled coding: tag in set-auto-coding.
nil
)
((
memq
var
ignored-local-variables
)
nil
)
;; "Setting" eval means either eval it or do nothing.
...
...
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