aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-19 00:08:18 +0000
committerRichard M. Stallman1994-10-19 00:08:18 +0000
commit116987ba621b552e405a30e79e178f8ec5809242 (patch)
treebf72f8bff03f341c02f956d8cdd6f703d93a00fb
parent625ad89f2a487f48f7436865b31d82e96247890f (diff)
downloademacs-116987ba621b552e405a30e79e178f8ec5809242.tar.gz
emacs-116987ba621b552e405a30e79e178f8ec5809242.zip
(auto-mode-alist): Doc fix.
-rw-r--r--lisp/files.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 7784cbe2a4b..30472e8a81c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -880,11 +880,14 @@ run `normal-mode' explicitly."
880 ("\\.ml\\'" . lisp-mode))) 880 ("\\.ml\\'" . lisp-mode)))
881 "\ 881 "\
882Alist of filename patterns vs corresponding major mode functions. 882Alist of filename patterns vs corresponding major mode functions.
883Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION). 883Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
884Visiting a file whose name matches REGEXP causes FUNCTION to be called. 884\(NON-NIL stands for anything that is not nil; the value does not matter.)
885If the element has the form (REGEXP FUNCTION), then after calling 885Visiting a file whose name matches REGEXP specifies FUNCTION as the
886FUNCTION, we delete the suffix that matched REGEXP and search the list 886mode function to use. FUNCTION will be called, unless it is nil.
887again for another match.") 887
888If the element has the form (REGEXP FUNCTION NON-NIL), then after
889calling FUNCTION (if it's not nil), we delete the suffix that matched
890REGEXP and search the list again for another match.")
888 891
889(defconst interpreter-mode-alist 892(defconst interpreter-mode-alist
890 '(("perl" . perl-mode) 893 '(("perl" . perl-mode)