[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-comments in sgml-mode's html-mode
From: |
Edward Welbourne |
Subject: |
Re: C-comments in sgml-mode's html-mode |
Date: |
Tue, 24 Jul 2007 15:51:26 +0200 |
> > However, C-h m gives me a buffer full of mode information in which
> > searching for css gets no hits, as does searching for helper.
> C-h m won't tell about any remnants left by a mode in a buffer after the
> mode has been turned off.
However, everything I've reported has been based on freshly-opened
buffers looking at the simple test file from my Help -> Report a bug
menu report. Although there seems to be something odd in my *session*
the problem isn't due to anything odd in any particular *buffer*, or
its history. Presumably a data structure associated with html-mode
has been mangled.
> In your case someone has set up the syntax of / and * much as a
> css-mode would do. What does C-h f css-mode say on your system?
<quote src="C-h f css-mode RET">
css-mode is an interactive compiled Lisp function in `css-mode.el'.
(css-mode)
Major mode for editing CSS style sheets.
key binding
--- -------
C-c Prefix Command
ESC Prefix Command
" cssm-insert-quotes
( cssm-insert-parenthesises
[ cssm-insert-brackets
{ cssm-insert-curlies
} cssm-insert-right-brace-and-indent
M-TAB cssm-complete-property
C-c C-c cssm-insert-comment
C-c C-u cssm-insert-url
</quote> and I don't believe I've used it directly ('though I may have
looked at a .css file at some point, which would cause it to load
automagically). However, when I open up comment.html in a fresh clean
emacs -Q, it doesn't believe in css-mode at all. I just get a bell
(and [No match] in minibuffer) when I try C-h f css-mode RET. No
script in my usual .emacs (a minimal .emacs which adds an entry to
load-path and loads a bunch of little fragments from a directory of
mine) mentions css-mode.
In an emacs -q session, it knows it would autoload css-mode if asked
for: loading a css file, I now find I am able to reproduce the bug in
a new session :-)
So, steps to reproduce: in an emacs -q session evaluate <quote>
(autoload 'html-mode "sgml-mode" "Edit HTML docs" t)
(setq auto-mode-alist (cons (cons "\\.x?html?$" 'html-mode) auto-mode-alist))
</quote>, visit a .css file (it need not exist / can be empty),
open a .html file containing: <quote>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en"><head><title>Test page for HTML-mode /* comment issue
</title><!-- */ sanity
--></head><body><h1>Test page for HTML-mode /* comment issue </h1><!-- */
sanity --></body></html>
</quote>
It would appear that css-mode is hacking html-mode !
Eddy.
- Re: C-comments in sgml-mode's html-mode, (continued)
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Lennart Borgman (gmail), 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/23
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/24
- Re: C-comments in sgml-mode's html-mode,
Edward Welbourne <=
- Re: C-comments in sgml-mode's html-mode, Lennart Borgman (gmail), 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/25
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Lennart Borgman (gmail), 2007/07/24
- Re: C-comments in sgml-mode's html-mode, Dan Nicolaescu, 2007/07/24
- Re: C-comments in sgml-mode's html-mode, martin rudalics, 2007/07/25
- Re: C-comments in sgml-mode's html-mode, Edward Welbourne, 2007/07/25