From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.bugs Subject: Re: [gparis@CoLi.Uni-SB.DE: quotes in sgml mode] Date: Wed, 04 Sep 2002 12:20:20 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200209041620.g84GKKL19711@rum.cs.yale.edu> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031156370 12080 127.0.0.1 (4 Sep 2002 16:19:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2002 16:19:30 +0000 (UTC) Cc: Richard Stallman , bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mcsK-00038Z-00 for ; Wed, 04 Sep 2002 18:19:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mctw-0005Jc-00; Wed, 04 Sep 2002 12:21:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17mctH-0005FT-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 12:20:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17mctE-0005BW-00 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2002 12:20:26 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17mctC-0005Ac-00; Wed, 04 Sep 2002 12:20:22 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g84GKKL19711; Wed, 4 Sep 2002 12:20:20 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Garance PARIS Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3417 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3417 > I pasted some XML code including the following in my > *scratch* buffer: > > > > > " > > > > > > lexeme="machin" ortho="machin" colorGrammLex="Nom"> > > machin > > > > > > " > > > > 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 " or you use a hack like " to fool Emacs. Stefan