summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-24 06:44:15 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-24 06:44:15 +0000
commit344171c5984b6b095a1826bbd85a938441ecbf18 (patch)
treec69e5b9999f344fc1476659c2697d74184afd6a8 /lisp/files.el
parenta6fc68c6ce0dc93feb6008a91a1a3895d77ec3fe (diff)
downloademacs-344171c5984b6b095a1826bbd85a938441ecbf18.tar.gz
(set-auto-mode): Run multiple mode: specs in left-to-right order.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 6ca1b5a7c8b..44b637f9ff1 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1149,7 +1149,7 @@ If `enable-local-variables' is nil, this function does not check for a
;; If we found modes to use, invoke them now,
;; outside the save-excursion.
(if modes
- (progn (mapcar 'funcall modes)
+ (progn (mapcar 'funcall (nreverse modes))
(setq done t)))
;; If we didn't find a mode from a -*- line, try using the file name.
(if (and (not done) buffer-file-name)