From 116987ba621b552e405a30e79e178f8ec5809242 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 19 Oct 1994 00:08:18 +0000 Subject: [PATCH] (auto-mode-alist): Doc fix. --- lisp/files.el | 13 ++++++++----- 1 file 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." ("\\.ml\\'" . lisp-mode))) "\ Alist of filename patterns vs corresponding major mode functions. -Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION). -Visiting a file whose name matches REGEXP causes FUNCTION to be called. -If the element has the form (REGEXP FUNCTION), 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) -- 2.39.5