From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephan Hennig Newsgroups: gmane.emacs.devel Subject: Re: linum and AUCTeX: line number face Date: Mon, 17 Sep 2007 15:57:02 +0200 Message-ID: References: <46ea83d1$0$16117$9b4e6d93@newsspool1.arcor-online.net> <87zlzm9uy7.fsf@escher.local.home> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030308060701090507080800" X-Trace: sea.gmane.org 1190040437 31240 80.91.229.10 (17 Sep 2007 14:47:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 14:47:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 16:46:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1IXHrX-00037a-MI for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 16:46:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXHqj-0004gV-Kf for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 10:45:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXHqg-0004gG-Hk for emacs-devel@gnu.org; Mon, 17 Sep 2007 10:45:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXHqb-0004fX-2j for emacs-devel@gnu.org; Mon, 17 Sep 2007 10:45:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXHqa-0004fU-UA for emacs-devel@gnu.org; Mon, 17 Sep 2007 10:45:12 -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 1IXHqZ-0008W6-9u for emacs-devel@gnu.org; Mon, 17 Sep 2007 10:45:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXHRo-00076C-0N for emacs-devel@gnu.org; Mon, 17 Sep 2007 16:19:36 +0200 Original-Received: from d83-176-137-200.cust.tele2.de ([83.176.137.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Sep 2007 16:19:36 +0200 Original-Received: from mailing_list by d83-176-137-200.cust.tele2.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Sep 2007 16:19:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 135 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d83-176-137-200.cust.tele2.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 Hamster/2.1.0.1501 In-Reply-To: <87zlzm9uy7.fsf@escher.local.home> 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:79109 Archived-At: This is a multi-part message in MIME format. --------------030308060701090507080800 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Stephen Berman schrieb: > 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. Thanks! For \bfseries using default face works for all fonts I've tried. But for \section commands the behaviour is even more strange. As long as default face refers to, e.g., 'Courier New' or 'Bitstream Vera Sans Mono' all seems to be well. But when default refers to, e.g., 'Outline-Consolas' or 'Lucida Sans Typewriter' weight is still inherited from line's face if there's a \section command in that line. To reproduce the problem, put the following lines into file .emacs: (progn (cd "~/elisp") (normal-top-level-add-subdirs-to-load-path)) (require 'linum) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:stipple nil :background "SystemWindow" :foreground "SystemWindowText" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 108 :width normal :family "Bitstream Vera Sans Mono")))) '(linum ((t (:inherit default)))) ) 1. Start emacs by typing 'emacs'. 2. C-x C-f test.tex (or activate LaTeX-mode by other means). 3. Type '2 RET \section{test} RET 2 RET'. 4. M-x linum-mode 5. Compare the '2' printed by linum and the two '2's in the buffer. Both are rendered differently. I've additionally attached a small screen shot, where the problem can also be seen for a number '8' (try zooming in). System: GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600) of 2007-07-07 on NEUTRINO AUCTeX 11.84 linum.el 0.9t > 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. Hm, could it be that 'default' in general refers to a specific font whereas 'shadow' doesn't (Font Family is *)? I agree that 'shadow' shouldn't be an explicit face definition, but modify "what's already there", e.g., change a property of text set in default face. But inheriting font-locking related properties (and only for /some/ fonts) is bad, IMHO. Are there means to toggle that behaviour? > But I do know that this has to do generally with display properties > and display margins, not just with linum.el. I guess, I've never met those 'display margins' before. Could you please give a hint about what you're speaking to somebody not so good at managing Emacs (yet)? Best regards, Stephan Hennig --------------030308060701090507080800 Content-Type: image/png; name="linum-vera.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="linum-vera.png" iVBORw0KGgoAAAANSUhEUgAAALkAA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+6kFZWzh1f911xSaxo0tKGAJGkvkngnnW/hkKZH3gamve4ZO++q6pR6APd/y+2TJLbkl t+SWPJ6JenihD/7CGHKg4ostqqkp5FHYScmH4NdR3YehOT5PyQOYkcsMAuPII+iwH7cYRc4v nkcuf4rckouL9Xmx7Nhi6HgOqUybQwV5mXWLXStacktuyS25Jbfk/wdwmnyL0j3N6gAAAABJ RU5ErkJggg== --------------030308060701090507080800 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------030308060701090507080800--