diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2019-07-20 12:34:02 +0300 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2019-07-20 12:34:02 +0300 |
| commit | 0731273facdab36b34fc4d1c22eb1bcc4b93fadc (patch) | |
| tree | 23f80a4c2d97c034edd5b63b082b38d8441ed572 /lisp/files.el | |
| parent | e6bfc6753cac7d8eaf67ff3adea0087eb19e7f6e (diff) | |
| download | emacs-0731273facdab36b34fc4d1c22eb1bcc4b93fadc.tar.gz | |
Fix last change
* etc/NEWS: Call out the change in matching REGEXP.
* lisp/files.el (magic-mode-alist)
(magic-fallback-mode-alist): Doc fix. (Bug#36401)
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el index 34fdc3031a9..89e9a693d11 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2964,7 +2964,7 @@ associated with that interpreter in `interpreter-mode-alist'.") "Alist of buffer beginnings vs. corresponding major mode functions. Each element looks like (REGEXP . FUNCTION) or (MATCH-FUNCTION . FUNCTION). After visiting a file, if REGEXP matches the text at the beginning of the -buffer (respecting case), or calling MATCH-FUNCTION returns non-nil, +buffer (case-sensitively), or calling MATCH-FUNCTION returns non-nil, `normal-mode' will call FUNCTION rather than allowing `auto-mode-alist' to decide the buffer's major mode. @@ -2998,7 +2998,7 @@ If FUNCTION is nil, then it is not called. (That is a way of saying "Like `magic-mode-alist' but has lower priority than `auto-mode-alist'. Each element looks like (REGEXP . FUNCTION) or (MATCH-FUNCTION . FUNCTION). After visiting a file, if REGEXP matches the text at the beginning of the -buffer (respecting case), or calling MATCH-FUNCTION returns non-nil, +buffer (case-sensitively), or calling MATCH-FUNCTION returns non-nil, `normal-mode' will call FUNCTION, provided that `magic-mode-alist' and `auto-mode-alist' have not specified a mode for this file. |
