emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114209: * lisp/files.el (set-auto-mode): Simplify a


From: Stefan Monnier
Subject: [Emacs-diffs] trunk r114209: * lisp/files.el (set-auto-mode): Simplify a bit further.
Date: Wed, 11 Sep 2013 12:37:23 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114209
revision-id: address@hidden
parent: address@hidden
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Wed 2013-09-11 08:36:59 -0400
message:
  * lisp/files.el (set-auto-mode): Simplify a bit further.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/files.el                  files.el-20091113204419-o5vbwnq5f7feedwu-265
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-09-11 06:44:35 +0000
+++ b/lisp/ChangeLog    2013-09-11 12:36:59 +0000
@@ -1,3 +1,7 @@
+2013-09-11  Stefan Monnier  <address@hidden>
+
+       * files.el (set-auto-mode): Simplify a bit further.
+
 2013-09-11  Glenn Morris  <address@hidden>
 
        * files.el (interpreter-mode-alist): Remove \\` \\' parts.

=== modified file 'lisp/files.el'
--- a/lisp/files.el     2013-09-11 06:44:35 +0000
+++ b/lisp/files.el     2013-09-11 12:36:59 +0000
@@ -2679,11 +2679,9 @@
         (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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]