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
f587e30b
Commit
f587e30b
authored
Apr 10, 2005
by
Stefan Monnier
Browse files
(set-auto-mode-1): Use line-end-position.
parent
35f257bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/files.el
lisp/files.el
+10
-13
No files found.
lisp/ChangeLog
View file @
f587e30b
2005-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
* files.el (set-auto-mode-1): Use line-end-position.
* international/latin-1.el:
* international/latin-2.el:
* international/latin-3.el:
...
...
lisp/files.el
View file @
f587e30b
...
...
@@ -2113,22 +2113,19 @@ Otherwise, return nil; point may be changed."
(
setq
temp
(
cdr
temp
)))
(
not
temp
))
(
search-forward
"-*-"
(
save-excursion
;; If the file begins with "#!"
;; (exec interpreter magic), look
;; for mode frobs in the first two
;; lines. You cannot necessarily
;; put them in the first line of
;; such a file without screwing up
;; the interpreter invocation.
(
end-of-line
(
and
(
looking-at
"^#!"
)
2
))
(
point
))
t
)
(
search-forward
"-*-"
(
line-end-position
;; If the file begins with "#!"
;; (exec interpreter magic), look
;; for mode frobs in the first two
;; lines. You cannot necessarily
;; put them in the first line of
;; such a file without screwing up
;; the interpreter invocation.
(
and
(
looking-at
"^#!"
)
2
))
t
)
(
progn
(
skip-chars-forward
" \t"
)
(
setq
beg
(
point
))
(
search-forward
"-*-"
(
save-excursion
(
end-of-line
)
(
point
))
t
))
(
search-forward
"-*-"
(
line-end-position
)
t
))
(
progn
(
forward-char
-3
)
(
skip-chars-backward
" \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