reassign 370051 emacs-snapshot
thanks
Romain Francoise wrote:
reassign 370051 html-helper-mode
quit
Dan Jacobson <[EMAIL PROTECTED]> writes:
$ emacs-snapshot file.html
will invoke html-helper mode if the file didn't exist before.
But it will invoke plain html mode if the file already exists!
I can reproduce this with html-helper-mode, but not with any of the
other modes started via the Debian startup scripts... which leads me to
believe that the problem lies with html-helper-mode rather than Emacs.
If it turns out not to be the case, feel free to reassign back.
I think this is a bug in emacs-snapshot after all. The problem is that
Emacs is a bit too clever: it sees the file's contents and, noticing that
it is a HTML file (e.g., it has <!DOCTYPE HTML ...> or <html> as first text),
decides to put it in html-mode, without even looking at auto-mode-alist which
tells otherwise.
To see this in detail:
M-x debug-on-entry RET set-auto-mode RET
open some HTML file, entering the debugger
single-step through the function in the debugger with the 'd' key
This should probably forwarded to emacs-pretest-bug, so that the Emacs
maintainers can DTRT.
Cheers,
Sven
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]