Mercurial > emacs
changeset 9602:13106af26190
(auto-mode-alist): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 19 Oct 1994 00:08:18 +0000 |
parents | 18c1f0c8c6ec |
children | 8792d17812fb |
files | lisp/files.el |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Wed Oct 19 00:03:41 1994 +0000 +++ b/lisp/files.el Wed Oct 19 00:08:18 1994 +0000 @@ -880,11 +880,14 @@ ("\\.ml\\'" . lisp-mode))) "\ Alist of filename patterns vs corresponding major mode functions. -Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION t). -Visiting a file whose name matches REGEXP causes FUNCTION to be called. -If the element has the form (REGEXP FUNCTION t), then after calling -FUNCTION, we delete the suffix that matched REGEXP and search the list -again for another match.") +Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). +\(NON-NIL stands for anything that is not nil; the value does not matter.) +Visiting a file whose name matches REGEXP specifies FUNCTION as the +mode function to use. FUNCTION will be called, unless it is nil. + +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 '(("perl" . perl-mode)