Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c5f6230a
Commit
c5f6230a
authored
Dec 19, 2006
by
Kim F. Storm
Browse files
*** empty log message ***
parent
5f3bef95
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
etc/NEWS
etc/NEWS
+10
-4
lisp/ChangeLog
lisp/ChangeLog
+7
-0
man/ChangeLog
man/ChangeLog
+5
-0
No files found.
etc/NEWS
View file @
c5f6230a
...
...
@@ -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.
...
...
lisp/ChangeLog
View file @
c5f6230a
2006-12-19 Kim F. Storm <storm@cua.dk>
* files.el (magic-mode-alist): Allow matching file type by
calling a function at bob. Check for image types by calling
image-type-from-buffer. Suggested by Juanma Barranquero.
(set-auto-mode): Do it.
2006-12-19 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-methods): Introduce new method `scpc'.
man/ChangeLog
View file @
c5f6230a
2006-12-19 Kim F. Storm <storm@cua.dk>
* major.texi (Choosing Modes): Describe match-function elements for
magic-mode-alist.
2006-12-19 Michael Albinus <michael.albinus@gmx.de>
* tramp.texi (External transfer methods): Describe new method `scpc'.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment