changeset 15496:98a141d6f237

(set-auto-mode): Run multiple mode: specs in left-to-right order.
author Richard M. Stallman <rms@gnu.org>
date Mon, 24 Jun 1996 06:44:15 +0000
parents 94467271b641
children 7df33f9d1edd
files lisp/files.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Mon Jun 24 01:29:37 1996 +0000
+++ b/lisp/files.el	Mon Jun 24 06:44:15 1996 +0000
@@ -1149,7 +1149,7 @@
     ;; 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)