From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: linum and AUCTeX: line number face Date: Sun, 16 Sep 2007 23:11:44 +0200 Message-ID: <87zlzm9uy7.fsf@escher.local.home> References: <46ea83d1$0$16117$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189977174 23209 80.91.229.12 (16 Sep 2007 21:12:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2007 21:12:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 16 23:12:49 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IX1Q7-0006oN-WE for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2007 23:12:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX1Q6-0007XN-Mm for ged-emacs-devel@m.gmane.org; Sun, 16 Sep 2007 17:12:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IX1PX-00073I-Pg for emacs-devel@gnu.org; Sun, 16 Sep 2007 17:12:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IX1PW-00071X-4S for emacs-devel@gnu.org; Sun, 16 Sep 2007 17:12:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IX1PV-00071H-Ry for emacs-devel@gnu.org; Sun, 16 Sep 2007 17:12:09 -0400 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 1IX1PV-0005Nl-CB for emacs-devel@gnu.org; Sun, 16 Sep 2007 17:12:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IX1PJ-00047T-N8 for emacs-devel@gnu.org; Sun, 16 Sep 2007 23:11:57 +0200 Original-Received: from i577bd0df.versanet.de ([87.123.208.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Sep 2007 23:11:57 +0200 Original-Received: from Stephen.Berman by i577bd0df.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Sep 2007 23:11:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bd0df.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79046 Archived-At: On Sun, 16 Sep 2007 12:30:46 +0200 Stephan Hennig wrote: > [This question has formerly been sent to gnu.emacs.help. Resending now > to gmane.emacs.devel (with test case).] > > Hi, > > when linum-mode is activated in LaTeX-mode, line numbers are not set in > uniform face, but it seems their face is inherited from the current > line's face, at least with regard to font weight. [...] > Is there any way to configure linum to do what I want? If you customize the linum face to default, then all line numbers have the default face. It seems the default face does not "inherit" the face properties of the string that the linum display property is on, whereas, for example, the shadow face, used by default by linum.el version 0.9n and later, does inherit at least some face properties or attributes. You can also see the difference with parenthesis highlighting, for example: if linum face is shadow, then highlighting a parenthesis in column 0 also highlights the line number, but not if linum face is default. I don't know just which other faces behave like default and which like shadow (though the face (not just the weight) bold seems to inherit even more attributes than shadow), nor do I know why there is this difference. But I do know that this has to do generally with display properties and display margins, not just with linum.el. Steve Berman