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
feeff482
Commit
feeff482
authored
Sep 11, 2013
by
Stefan Monnier
Browse files
* lisp/files.el (set-auto-mode): Simplify a bit further.
parent
71b28baa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/files.el
lisp/files.el
+3
-5
No files found.
lisp/ChangeLog
View file @
feeff482
2013-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
* files.el (set-auto-mode): Simplify a bit further.
2013-09-11 Glenn Morris <rgm@gnu.org>
* files.el (interpreter-mode-alist): Remove \\` \\' parts.
...
...
lisp/files.el
View file @
feeff482
...
...
@@ -2679,11 +2679,9 @@ we don't actually set it to the same mode the buffer already has."
(setq done (assoc-default
(file-name-nondirectory mode)
(mapcar (lambda (e)
(if (string-match-p "\\`\\\\`" (car e))
e
(cons
(format "\\`%s\\'" (car e))
(cdr e))))
(cons
(format "\\`%s\\'" (car e))
(cdr e)))
interpreter-mode-alist)
#'string-match-p))
;; If we found an interpreter mode to use, invoke it now.
...
...
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