* Global font lock mode in SGML files
@ 2005-03-08 18:16 Jens Kubieziel
2005-03-08 21:03 ` David Hansen
0 siblings, 1 reply; 2+ messages in thread
From: Jens Kubieziel @ 2005-03-08 18:16 UTC (permalink / raw)
Hi,
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?
Thanks for any suggestions
--
Jens Kubieziel http://www.kubieziel.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Global font lock mode in SGML files
2005-03-08 18:16 Global font lock mode in SGML files Jens Kubieziel
@ 2005-03-08 21:03 ` David Hansen
0 siblings, 0 replies; 2+ messages in thread
From: David Hansen @ 2005-03-08 21:03 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-08 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 18:16 Global font lock mode in SGML files Jens Kubieziel
2005-03-08 21:03 ` David Hansen
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.