diff options
| author | Richard M. Stallman | 1994-10-19 00:08:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-19 00:08:18 +0000 |
| commit | 116987ba621b552e405a30e79e178f8ec5809242 (patch) | |
| tree | bf72f8bff03f341c02f956d8cdd6f703d93a00fb | |
| parent | 625ad89f2a487f48f7436865b31d82e96247890f (diff) | |
| download | emacs-116987ba621b552e405a30e79e178f8ec5809242.tar.gz emacs-116987ba621b552e405a30e79e178f8ec5809242.zip | |
(auto-mode-alist): Doc fix.
| -rw-r--r-- | lisp/files.el | 13 |
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 | "\ |
| 882 | Alist of filename patterns vs corresponding major mode functions. | 882 | Alist of filename patterns vs corresponding major mode functions. |
| 883 | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION). | 883 | Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). |
| 884 | Visiting 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.) |
| 885 | If the element has the form (REGEXP FUNCTION), then after calling | 885 | Visiting a file whose name matches REGEXP specifies FUNCTION as the |
| 886 | FUNCTION, we delete the suffix that matched REGEXP and search the list | 886 | mode function to use. FUNCTION will be called, unless it is nil. |
| 887 | again for another match.") | 887 | |
| 888 | If the element has the form (REGEXP FUNCTION NON-NIL), then after | ||
| 889 | calling FUNCTION (if it's not nil), we delete the suffix that matched | ||
| 890 | REGEXP 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) |