diff options
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el index 5d8fbda6154..85bbc8596be 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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. |