From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Indentation problems in SGML mode Date: Thu, 15 May 2003 10:35:48 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84smrgli8r.fsf@lucy.is.informatik.uni-duisburg.de> References: <84el327h68.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052988254 13773 80.91.224.249 (15 May 2003 08:44:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 May 2003 08:44:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 10:44:12 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 19GEK1-0003Qv-00 for ; Thu, 15 May 2003 10:42:41 +0200 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 19GEI6-0007hU-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 15 May 2003 04:40:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!pd951fe3c.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: pd951fe3c.dip.t-dialin.net (217.81.254.60) Original-X-Trace: fu-berlin.de 1052987752 24484053 217.81.254.60 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:E0HZBhxD97EY0ZKdhEJh0FamQec= Original-Xref: shelby.stanford.edu gnu.emacs.help:113250 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:9747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9747 Peter Lee writes: > When I open an xml file it is initially not fontified. However if I > select a region and do C-M-\ it then fontifies. That's because PSGML uses its own fontification mechanism, and avoids font-lock. PSGML does fontification lazily, in a way, so it only fontifies things that you change. You can also go to a line and hit TAB -- then it will fontify everything up to that line. When PSGML was written, font-lock was probably not powerful enough for proper SGML font-locking: you can change the < and > characters in SGML, so regular expressions don't work. -- This line is not blank.