all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Edward Welbourne <eddy@opera.com>
To: martin rudalics <rudalics@gmx.at>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: C-comments in sgml-mode's html-mode
Date: Tue, 24 Jul 2007 15:51:26 +0200	[thread overview]
Message-ID: <E1IDKnO-0000EJ-Li@whorl> (raw)
In-Reply-To: <46A5F814.2000701@gmx.at> (message from martin rudalics on Tue, 24 Jul 2007 15:01:08 +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.

  reply	other threads:[~2007-07-24 13:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-19 11:33 M-x compile re-uses name of old compilation buffer, contrary to documentation Edward Welbourne
2007-07-20 13:42 ` Richard Stallman
2007-07-20 14:54   ` Edward Welbourne
2007-07-21 10:23     ` martin rudalics
2007-07-23 11:50       ` C-comments in sgml-mode's html-mode Edward Welbourne
2007-07-23 12:02         ` Lennart Borgman (gmail)
2007-07-23 13:24           ` Edward Welbourne
2007-07-23 14:51             ` martin rudalics
2007-07-23 17:49               ` Edward Welbourne
2007-07-23 12:27         ` martin rudalics
2007-07-23 16:59           ` Edward Welbourne
2007-07-23 18:41             ` martin rudalics
2007-07-24  8:57               ` Edward Welbourne
2007-07-24 13:01                 ` martin rudalics
2007-07-24 13:51                   ` Edward Welbourne [this message]
2007-07-24 14:51                     ` Lennart Borgman (gmail)
2007-07-24 15:46                       ` Edward Welbourne
2007-07-24 16:47                         ` martin rudalics
2007-07-24 20:05                           ` Edward Welbourne
2007-07-25  7:59                             ` martin rudalics
2007-07-24 20:42                           ` Edward Welbourne
2007-07-24 21:53                           ` Lennart Borgman (gmail)
2007-07-24 22:05                             ` Dan Nicolaescu
2007-07-25  8:19                               ` martin rudalics
2007-07-25  8:48                                 ` Edward Welbourne
2007-07-24 16:44                     ` martin rudalics
2007-07-24 14:39                   ` Edward Welbourne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1IDKnO-0000EJ-Li@whorl \
    --to=eddy@opera.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.