From: Richard M. Stallman Date: Mon, 24 Jun 1996 06:44:15 +0000 (+0000) Subject: (set-auto-mode): Run multiple mode: specs in left-to-right order. X-Git-Tag: emacs-19.34~366 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=668d9a3ec97bc2156e17088d623cd1c1b6b4928f;p=emacs.git (set-auto-mode): Run multiple mode: specs in left-to-right order. --- 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)