diff --git a/lisp/emulation/mlsupport.el b/lisp/emulation/mlsupport.el index 63576d52f8b..3596036d0e5 100644 --- a/lisp/emulation/mlsupport.el +++ b/lisp/emulation/mlsupport.el @@ -139,7 +139,7 @@ (if (/= (aref pattern 0) ?*) (error "Only patterns starting with * supported in auto-execute")) (setq auto-mode-alist (cons (cons (concat "\\." (substring pattern 1) - "$") + "\\'") function) auto-mode-alist)))