all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
Subject: Re: Global font lock mode in SGML files
Date: Tue, 08 Mar 2005 22:03:30 +0100	[thread overview]
Message-ID: <87d5u9c0kd.fsf@robotron.ath.cx> (raw)
In-Reply-To: slrnd2rqv5.jsg.nospam@usenet.kubieziel.de

On 8 Mar 2005 18:16:05 GMT Jens Kubieziel wrote:

> I'm currently switching from vim to GNU Emacs (22.0.50.1) and want to
> edit an SGML file
> (http://user.cs.tu-berlin.de/~pdmef/mutt-ng/manual.sgml). Global font
> lock mode is active, but when I reach line 48 (SGML tools will start
> every paragraph with <tt/"/.) syntax highlighting breaks. The '"' seems
> to be the reason. However IMHO it's a valid SGML source. So what can I
> do that emacs does the syntax highlighting right in that case?

Does this help?

(add-to-list 'sgml-font-lock-syntactic-keywords 
             '("<[a-z]+/\\(:?[^/]*\\(\"\\)[^/]*\\)/" (1 ".")))

It's probably a lame workaround (I don't know SGML syntax).  If
you are sure that your example is valid SGML the best way to get
the problem fixed is M-x report-emacs-bug RET.

David

      reply	other threads:[~2005-03-08 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-08 18:16 Global font lock mode in SGML files Jens Kubieziel
2005-03-08 21:03 ` David Hansen [this message]

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=87d5u9c0kd.fsf@robotron.ath.cx \
    --to=david.hansen@gmx.net \
    /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.