diff options
| author | Kim F. Storm | 2006-12-19 09:24:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-12-19 09:24:45 +0000 |
| commit | c5f6230ac1d5e8346ab74cef5ca5b15854ac2a4c (patch) | |
| tree | 76eeba29b511cd57db27d4d391dea8ec633a9e3e | |
| parent | 5f3bef951920930c9c335c96dcd87cbbb3cf6d60 (diff) | |
| download | emacs-c5f6230ac1d5e8346ab74cef5ca5b15854ac2a4c.tar.gz emacs-c5f6230ac1d5e8346ab74cef5ca5b15854ac2a4c.zip | |
*** empty log message ***
| -rw-r--r-- | etc/NEWS | 14 | ||||
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | man/ChangeLog | 5 |
3 files changed, 22 insertions, 4 deletions
| @@ -5517,10 +5517,16 @@ of multiline constructs so that such constructs get properly recognized. | |||
| 5517 | ** Major mode mechanism changes: | 5517 | ** Major mode mechanism changes: |
| 5518 | 5518 | ||
| 5519 | +++ | 5519 | +++ |
| 5520 | *** `set-auto-mode' now gives the interpreter magic line (if present) | 5520 | *** New variable `magic-mode-alist' determines major mode for a file by |
| 5521 | precedence over the file name. Likewise an `<?xml' or `<!DOCTYPE' | 5521 | looking the file contents. It take precedence over `auto-mode-alist'. |
| 5522 | declaration will give the buffer XML or SGML mode, based on the new | 5522 | |
| 5523 | variable `magic-mode-alist'. | 5523 | +++ |
| 5524 | *** An interpreter magic line (if present) takes precedence over the | ||
| 5525 | file name when setting the major mode. | ||
| 5526 | |||
| 5527 | +++ | ||
| 5528 | *** XML or SGML major mode is selected when file starts with an `<?xml' | ||
| 5529 | or `<!DOCTYPE' declaration. | ||
| 5524 | 5530 | ||
| 5525 | +++ | 5531 | +++ |
| 5526 | *** Use the new function `run-mode-hooks' to run the major mode's mode hook. | 5532 | *** Use the new function `run-mode-hooks' to run the major mode's mode hook. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d0edd5da954..91509af0190 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2006-12-19 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * files.el (magic-mode-alist): Allow matching file type by | ||
| 4 | calling a function at bob. Check for image types by calling | ||
| 5 | image-type-from-buffer. Suggested by Juanma Barranquero. | ||
| 6 | (set-auto-mode): Do it. | ||
| 7 | |||
| 1 | 2006-12-19 Michael Albinus <michael.albinus@gmx.de> | 8 | 2006-12-19 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * net/tramp.el (tramp-methods): Introduce new method `scpc'. | 10 | * net/tramp.el (tramp-methods): Introduce new method `scpc'. |
diff --git a/man/ChangeLog b/man/ChangeLog index 6584b9cef92..96f88717e5c 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-12-19 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * major.texi (Choosing Modes): Describe match-function elements for | ||
| 4 | magic-mode-alist. | ||
| 5 | |||
| 1 | 2006-12-19 Michael Albinus <michael.albinus@gmx.de> | 6 | 2006-12-19 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * tramp.texi (External transfer methods): Describe new method `scpc'. | 8 | * tramp.texi (External transfer methods): Describe new method `scpc'. |