unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: Richard Stallman <rms@gnu.org>, bug-gnu-emacs@gnu.org
Subject: Re: [gparis@CoLi.Uni-SB.DE: quotes in sgml mode]
Date: Wed, 04 Sep 2002 12:20:20 -0400	[thread overview]
Message-ID: <200209041620.g84GKKL19711@rum.cs.yale.edu> (raw)
In-Reply-To: E17mb3k-0007I0-00@fencepost.gnu.org

> I pasted some XML code including the following in my
> *scratch* buffer:
> 
> 
> <PUNC key="double-quote">
> 
> "
> 
> </PUNC>
> 
> <BAR cat="N" tree="hidden">
> 
> <HEAD cat="N" tool="no" gender="masc" number="sin"
> lexeme="machin" ortho="machin" colorGrammLex="Nom">
> 
> machin
> 
> </HEAD>
> 
> <PUNC key="double-quote">
> 
> "
> 
> </PUNC>
> 
> Then I switched to sgml mode with Esc-x sgml-m tab enter.

> The pasted stuff describes a text which contains quotes; the two quotes on
> separate lines are not quotes within sgml tags, but come from the text which
> is being described. So whatever is between them should NOT appear in brown
> like the "double-quote" on the first line. However everything from the 3rd
> to the 9th line is brown (well inverted: that which should be brown is black,
> and that which should be another colour is brown).

Yes, it's a known bug.  Emacs' syntax-tables are not flexible enough
to describe the syntax of sgml and xml.  While it is not impossible
to fix, it's a lot of work and risks slowing down operations significantly,

Many major modes have similar limitations, sadly.

The latest sgml-mode (in the development code of Emacs) has been improved
in some respect, but not this one.

So I suggest you either use &quot; or you use a hack like

	"  <!--"-->

to fool Emacs.


	Stefan

           reply	other threads:[~2002-09-04 16:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E17mb3k-0007I0-00@fencepost.gnu.org>]

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=200209041620.g84GKKL19711@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=rms@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).