From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Patch to disable links line in *info* buffer Date: 22 Jun 2002 01:56:31 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x7kksyymo.fsf@kfs2.cua.dk> References: <87bsaos1fl.fsf@orebokech.com> <200206072322.g57NMtK27277@aztec.santafe.edu> <5xbsam1tje.fsf@kfs2.cua.dk> <87wut9tppe.fsf@orebokech.com> <200206101359.g5ADx7b28021@rum.cs.yale.edu> <200206111925.g5BJPZh03612@aztec.santafe.edu> <5xelfd2xdq.fsf@kfs2.cua.dk> <200206121214.g5CCEHH05069@aztec.santafe.edu> <5xadq0uory.fsf@kfs2.cua.dk> <200206132146.g5DLkrg07552@aztec.santafe.edu> <5xsn3qhihm.fsf@kfs2.cua.dk> <5x4rfzquqs.fsf@kfs2.cua.dk> <200206191502.g5JF2Sl02048@rum.cs.yale.edu> <5xd6ukz4wl.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024700243 20061 127.0.0.1 (21 Jun 2002 22:57:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Jun 2002 22:57:23 +0000 (UTC) Cc: "Stefan Monnier" , jasonr@gnu.org, bob@rattlesnake.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17LXLH-0005DS-00 for ; Sat, 22 Jun 2002 00:57:23 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17LXnd-0001Nm-00 for ; Sat, 22 Jun 2002 01:26:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LXL5-0006MU-00; Fri, 21 Jun 2002 18:57:11 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17LXJp-0006Hz-00; Fri, 21 Jun 2002 18:55:53 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id AEC167C016; Fri, 21 Jun 2002 22:55:50 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <5xd6ukz4wl.fsf@kfs2.cua.dk> Original-Lines: 44 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5081 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5081 no-spam@cua.dk (Kim F. Storm) writes: > "Stefan Monnier" writes: > > > > The problem is that there is no named face which has this appearence, > > > so I cannot simply put a (face mode-line-bold) property on the string > > > returned by format-mode-line. > > > > Any reason why you can't use (face (mode-line bold)) ? > > Not anymore :-) Ok, I have changed format-mode-line to return a propertized string (changes are not committed yet), but the "face merging" doesn't always give the same result as the actual mode line: This combination works (*Help* is bold): (insert '#("-1:%% *Help* ..." 7 13 (face (mode-line :weight bold)))) but this doesn't (*Help* isn't bold): (insert '#("-1:%% *Help* ..." 7 13 (face (mode-line-inactive :weight bold)))) I haven't investigated this further, but it could be related to mode-line-inactive being derived from another face...? Also, there are some visual artifacts in the following example; there are small white lines between the bold and non-bold sections: (insert '#("-1:** *scratch* ..." 1 7 (face mode-line) 7 19 (face (mode-line (:weight bold))) 19 22 (face mode-line))) In any case, I'm going to commit my changes tomorrow (or so) -- then we'll have to look into the above issues later... -- Kim F. Storm http://www.cua.dk