aboutsummaryrefslogtreecommitdiffstats
path: root/etc/NEWS
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2006-12-19 09:24:45 +0000
committerKim F. Storm <[email protected]>2006-12-19 09:24:45 +0000
commitc5f6230ac1d5e8346ab74cef5ca5b15854ac2a4c (patch)
tree76eeba29b511cd57db27d4d391dea8ec633a9e3e /etc/NEWS
parent5f3bef951920930c9c335c96dcd87cbbb3cf6d60 (diff)
*** empty log message ***
Diffstat (limited to 'etc/NEWS')
-rw-r--r--etc/NEWS14
1 files changed, 10 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f67227d008..643b635e28 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -5517,10 +5517,16 @@ of multiline constructs so that such constructs get properly recognized.
** Major mode mechanism changes:
+++
-*** `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, based on the new
-variable `magic-mode-alist'.
+*** New variable `magic-mode-alist' determines major mode for a file by
+looking the file contents. It take precedence over `auto-mode-alist'.
+
++++
+*** An interpreter magic line (if present) takes precedence over the
+file name when setting the major mode.
+
++++
+*** XML or SGML major mode is selected when file starts with an `<?xml'
+or `<!DOCTYPE' declaration.
+++
*** Use the new function `run-mode-hooks' to run the major mode's mode hook.