+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.
(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.