From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: chris Newsgroups: gmane.emacs.help Subject: Re: Font locking in PSGML mode Date: Thu, 13 Mar 2003 04:16:23 -0000 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84wuj5szi8.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1047529265 5208 80.91.224.249 (13 Mar 2003 04:21:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2003 04:21:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 13 05:21:03 2003 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 18tKDH-0001Lp-00 for ; Thu, 13 Mar 2003 05:21:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tKCo-0007v3-0A for gnu-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2003 23:20:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.7.4 (Linux) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 30 Original-Xref: shelby.stanford.edu gnu.emacs.help:111033 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7533 On Wed, 12 Mar 2003 10:30:39 +0100, Kai Großjohann spake thusly: >> When I load a file into Emacs that starts sgml mode, there is no >> syntax coloring. After I parse the DTD, the font coloring starts >> working, but only on text that I manually move my cursor through. As I >> move through each element, it becomes colorized. >> >> Is there a way to get this to happen automatically? I have the >> following in my .emacs > > Note that psgml does NOT use font-lock for its syntax highlighting. > This is because it is difficult to design regular expressions that do > the right thing: with the right SGML declaration, you can tell the > system to use different characters instead of "<" and ">", for > example. Well, I'd like to stick with PSGML for the editing rather than use another mode (though I will check xxml.el out anyway). So, is there a way to automatically simulate what happens when I hold the arrow key down through the entire page to get the syntax coloring to appear? Crude, but possibly effective... > But I've been using xxml.el for XML sources. I think xxml.el uses > font-lock. (But I haven't looked.) xxml.el works for HTML, too. So > I think as long as your SGML files use the normal pointy brackets > syntax and the SGML declaration doesn't do weird things, you should > be fine. I'll probably install this for quick editing and use SGML as primary...