(set-auto-mode): Run multiple mode: specs in left-to-right order.

This commit is contained in:
Richard M. Stallman 1996-06-24 06:44:15 +00:00
parent 845e9d851b
commit 668d9a3ec9

View file

@ -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)