Commit 0731273f authored by Eli Zaretskii's avatar Eli Zaretskii

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)
parent e6bfc675
Pipeline #2494 failed with stage
in 90 minutes and 2 seconds
......@@ -1747,6 +1747,10 @@ immediately. Type 'M-x so-long-commentary' for full documentation.
* Incompatible Lisp Changes in Emacs 27.1
---
** The REGEXP in 'magic-mode-alist' is now matched case-sensitively.
Likewise for 'magic-fallback-mode-alist'.
+++
** add-hook does not always add to the front or the end any more.
The replacement of `append` with `depth` implies that the function is not
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment