]> git.eshelyaron.com Git - emacs.git/commitdiff
(auto-mode-alist): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Wed, 19 Oct 1994 00:08:18 +0000 (00:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 19 Oct 1994 00:08:18 +0000 (00:08 +0000)
lisp/files.el

index 7784cbe2a4b55a7e8711daa07341727560337709..30472e8a81c35d5ded19e6ddaec834e2bef51331 100644 (file)
@@ -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)