Mercurial > emacs
diff etc/NEWS @ 57722:395139acfd03
set-auto-mode change
author | Daniel Pfeiffer <occitan@esperanto.org> |
---|---|
date | Tue, 26 Oct 2004 21:53:34 +0000 |
parents | 012a0b5cf591 |
children | e369cf644334 0fe073a08cef |
line wrap: on
line diff
--- a/etc/NEWS Tue Oct 26 21:44:20 2004 +0000 +++ b/etc/NEWS Tue Oct 26 21:53:34 2004 +0000 @@ -99,6 +99,12 @@ * Changes in Emacs 21.4 +++ +** `set-auto-mode' now gives the interpreter magic line (if present) +precedence over the file name. Likewise an <?xml or <!DOCTYPE declaration +will give the buffer XML or SGML mode, unless the file name leads to a mode in +`xml-based-modes'. + ++++ ** New function `looking-back' checks whether a regular expression matches the text before point. Specifying the LIMIT argument bounds how far back the match can start; this is a way to keep it from taking too long.