Commit 116987ba authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(auto-mode-alist): Doc fix.

parent 625ad89f
...@@ -880,11 +880,14 @@ run `normal-mode' explicitly." ...@@ -880,11 +880,14 @@ run `normal-mode' explicitly."
("\\.ml\\'" . lisp-mode))) ("\\.ml\\'" . lisp-mode)))
"\ "\
Alist of filename patterns vs corresponding major mode functions. Alist of filename patterns vs corresponding major mode functions.
Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION). Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
Visiting a file whose name matches REGEXP causes FUNCTION to be called. \(NON-NIL stands for anything that is not nil; the value does not matter.)
If the element has the form (REGEXP FUNCTION), then after calling Visiting a file whose name matches REGEXP specifies FUNCTION as the
FUNCTION, we delete the suffix that matched REGEXP and search the list mode function to use. FUNCTION will be called, unless it is nil.
again for another match.")
If the element has the form (REGEXP FUNCTION NON-NIL), then after
calling FUNCTION (if it's not nil), we delete the suffix that matched
REGEXP and search the list again for another match.")
(defconst interpreter-mode-alist (defconst interpreter-mode-alist
'(("perl" . perl-mode) '(("perl" . perl-mode)
......
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