From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [storm@cua.dk: Re: Patch to disable links line in *info* buffer] Date: Sat, 22 Jun 2002 16:51:53 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200206222251.g5MMprs23105@aztec.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1024786505 19468 127.0.0.1 (22 Jun 2002 22:55:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 22 Jun 2002 22:55:05 +0000 (UTC) Cc: 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 17Ltmb-00053t-00 for ; Sun, 23 Jun 2002 00:55:05 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Ltmy-0000CM-00 for ; Sun, 23 Jun 2002 00:55:29 +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 17Ltmg-00050C-00; Sat, 22 Jun 2002 18:55:10 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17LtjW-0004nq-00; Sat, 22 Jun 2002 18:51:55 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g5MMpsC14853; Sat, 22 Jun 2002 16:51:54 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g5MMprs23105; Sat, 22 Jun 2002 16:51:53 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: gerd@gnu.org 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:5109 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5109 Would you please help us with this? You know this code more than anyone. ------- Start of forwarded message ------- To: rms@gnu.org Cc: "Stefan Monnier" , jasonr@gnu.org, bob@rattlesnake.com, emacs-devel@gnu.org Subject: Re: Patch to disable links line in *info* buffer From: storm@cua.dk (Kim F. Storm) Date: 22 Jun 2002 01:56:31 +0200 In-Reply-To: <5xd6ukz4wl.fsf@kfs2.cua.dk> 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 ------- End of forwarded message -------