Commit ac6ff3ed authored by Richard M. Stallman's avatar Richard M. Stallman

(auto-execute): Use \' in auto-mode-alist regexps.

parent dd69dcbc
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
(if (/= (aref pattern 0) ?*) (if (/= (aref pattern 0) ?*)
(error "Only patterns starting with * supported in auto-execute")) (error "Only patterns starting with * supported in auto-execute"))
(setq auto-mode-alist (cons (cons (concat "\\." (substring pattern 1) (setq auto-mode-alist (cons (cons (concat "\\." (substring pattern 1)
"$") "\\'")
function) function)
auto-mode-alist))) auto-mode-alist)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment