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
6054fcc6
Commit
6054fcc6
authored
Dec 09, 1994
by
Karl Heuer
Browse files
(set-auto-mode): Don't get confused by anything ending in "mode:" which isn't
a mode spec.
parent
26b6f040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/files.el
lisp/files.el
+3
-1
No files found.
lisp/files.el
View file @
6054fcc6
...
...
@@ -966,7 +966,9 @@ If `enable-local-variables' is nil, this function does not check for a
;; Find all specifications for the `mode:' variable
;; and execute them left to right.
(
while
(
let
((
case-fold-search
t
))
(
search-forward
"mode:"
end
t
))
(
or
(
and
(
looking-at
"mode:"
)
(
goto-char
(
match-end
0
)))
(
re-search-forward
"[ \t;]mode:"
end
t
)))
(
skip-chars-forward
" \t"
)
(
setq
beg
(
point
))
(
if
(
search-forward
";"
end
t
)
...
...
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