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: 19 Jun 2002 15:10:51 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x4rfzquqs.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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024488745 22090 127.0.0.1 (19 Jun 2002 12:12:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2002 12:12:25 +0000 (UTC) Cc: 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 17KeK1-0005kB-00 for ; Wed, 19 Jun 2002 14:12:25 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17KelC-00064U-00 for ; Wed, 19 Jun 2002 14:40:31 +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 17KeJn-0007vO-00; Wed, 19 Jun 2002 08:12:11 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17KeHr-0007oj-00; Wed, 19 Jun 2002 08:10:11 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 286EE7C016; Wed, 19 Jun 2002 12:10:10 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <5xsn3qhihm.fsf@kfs2.cua.dk> Original-Lines: 48 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:4986 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4986 storm@cua.dk (Kim F. Storm) writes: > Richard Stallman writes: > > > > Thanks. Could you make it pass through the properties, though? > > > > This can be done, but do we really need it? > > > > I think it is a bug not to do that. > > Ok, I'll fix it. Well, it turns out to be a bigger problem than I expected to do so. I have most of the functionality working now, but I still have a big problem with faces. Consider the buffer name shown in the mode line. It is shown in bold, but otherwise uses the mode-line face. In the display engine, this is implemented by creating a new unnamed face which using mode-line as the base font, but with the (:weight bold) attribute added to it. 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. Instead, I'll have to create a face specification to match the actual appearence of the buffer name. I guess it can be done, but it seems a lot of work to achieve a simple goal. Any ideas how to simplify this task? Maybe we should reconsider whether we really want a 100% accurate appearence. Can we perhaps accept that face attributes in the mode-line are ignored when we copy the mode-line to a string, i.e. the whole string will simply have the mode-line or header-line face property? That's what my current code does... BTW, it also copies the help-echo text, but the mouse doesn't work as the help describes, since the mouse binding is like [mode-line mouse-1], and it obviously doesn't work inside a buffer's text area. -- Kim F. Storm http://www.cua.dk