unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Edward Welbourne <eddy@opera.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: C-comments in sgml-mode's html-mode
Date: Mon, 23 Jul 2007 15:24:49 +0200	[thread overview]
Message-ID: <E1ICxu5-0007n8-L0@whorl> (raw)
In-Reply-To: <46A498E4.3030001@gmail.com> (lennart.borgman@gmail.com)

> PS: -Q is new in Emacs 22.

but absent from its info documentation !

> Could you please use "Help - Send bug report" from the menus in that 
> running session?

hmm ... yes, I can turn menus back on ... ah, it's interactive and
wants to nuke this *mail* buffer ... worked round by renaming.  This
appears to be just like using M-x report-emacs-bug, like I did when
originally submitting this - but here it is anyway.  Point was in an
aflicted HTML buffer when I invoked the menu.  My .emacs executes:

(autoload 'html-mode "sgml-mode" "Edit HTML docs" t)
(setq auto-mode-alist (cons (cons "\\.x?html?$" 'html-mode) auto-mode-alist))
(global-font-lock-mode 1)
(setq font-lock-maximum-decoration t
      font-lock-support-mode 'lazy-lock-mode)

among other things.

A .html file containing <file>

<!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>

</file> displays each text from /* to */ in comment-face; and each
"sanity" as plain text.  However, syntactic movement commands such as
C-M-f correctly understand the SGML comments as comments, unconfused
by the /* ... */.

This only happens in my current session: I have started up a fresh
session and seen the file displayed perfectly sensibly (i.e. treating
/* ... */ as ordinary text).


In GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2007-07-07 on raven, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure  '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.1/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.ISO-8859-15
  locale-coding-system: iso-8859-15
  default-enable-multibyte-characters: t

Major mode: HTML

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
. SPC SPC H o w e v e r , C-a <return> M-q <backspace> 
<return> C-e SPC s y n t a c t i c SPC m o v e m e 
n t SPC o <backspace> c o m m a n d s SPC ( C - M - 
M-b M-b <backspace> s u c h SPC a s SPC C-e f <return> 
c o r r e c t l y SPC u n d e r s t a n d SPC t h e 
SPC S G M L SPC c o m m e n t s SPC a s SPC c o m m 
e n t s C-x o C-p C-e SPC c o m <backspace> <backspace> 
<backspace> s a n i t y C-n C-M-b C-M-b C-b C-b C-b 
C-b SPC s a n i t y C-x o C-p M-f M-f C-p C-p C-p C-e 
SPC s a n i t y C-n M-b M-b M-b M-f C-f C-f C-f C-f 
C-f C-f C-f C-f SPC s a n i t y C-n C-n C-n C-p M-b 
M-b M-b M-b M-f ; SPC a n d SPC e a c h SPC u s e SPC 
o f SPC t h e SPC w o r d <M-backspace> <M-backspace> 
<M-backspace> <M-backspace> " s a n i t y " SPC a s 
SPC p l a i n SPC t e x t M-q C-n C-e C-x o C-x C-s 
C-x o M-{ M-{ C-f C-p M-} M-} M-{ C-SPC M-} M-} C-x 
C-x M-w C-x k <return> C-x <return> C-x <return> C-g 
C-x k <return> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> C-x o <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Auto-saving...done
Undo! [4 times]
undo-more: No further undo information
Undo! [3 times]
Redo!
Undo! [2 times]
Redo! [2 times]
Auto-saving...done
Wrote /disk/home/eddy/work/tmp/comment.html
Mark set
Quit

  reply	other threads:[~2007-07-23 13:24 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1ICxu5-0007n8-L0@whorl \
    --to=eddy@opera.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).