From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Font-Locking for Allout Mode Date: Thu, 08 Mar 2007 14:23:33 +0100 Message-ID: <874povvpgq.fsf@escher.local.home> References: <87mz2o3jib.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173360254 9825 80.91.229.12 (8 Mar 2007 13:24:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 13:24:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 14:24:08 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPIbI-0003NA-Bs for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 14:24:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPIbU-0005l4-Ut for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 08:24:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPIbI-0005kl-87 for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 08:24:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPIbG-0005kQ-QO for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 08:24:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPIbG-0005kM-Ju for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 08:24:06 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPIb3-0006Eq-6S for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 08:23:53 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HPIar-0004df-0y for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 14:23:41 +0100 Original-Received: from i577bcf4d.versanet.de ([87.123.207.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 14:23:41 +0100 Original-Received: from Stephen.Berman by i577bcf4d.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 14:23:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bcf4d.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41794 Archived-At: On Wed, 07 Mar 2007 21:07:24 +0100 Tassilo Horn wrote: > I'm a new user of allout-mode and I really like it. The only thing that > has to be improved is the readability of the headings. I would like to > use font locking to adjust the faces like the AUCTeX sectioning faces. > > On EmacsWiki [1] I found some snippets for doing that, although the > first one seems to be outline-mode specific. So I adapted it for allout > mode and came up with this: [...] > But it seems to have no effect. [...] It works for me. However, I found that I have to add `mode: allout' to the Local Variables section in order for the fontification to be seen upon visiting the file. If allout-mode isn't specified as a file local variable, then calling font-lock-fontify-buffer makes the fontification show up. I don't know if this indicates a bug in that code. Steve Berman