From 668d9a3ec97bc2156e17088d623cd1c1b6b4928f Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 24 Jun 1996 06:44:15 +0000 Subject: [PATCH] (set-auto-mode): Run multiple mode: specs in left-to-right order. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2