From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new *Help* argument highlighting Date: 13 May 2004 10:21:56 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87vfj076lr.fsf-monnier+emacs@gnu.org> References: <20040513032524.1886.LEKTU@mi.madritel.es> <87d65985pv.fsf-monnier+emacs@gnu.org> <20040513090332.FB72.JMBARRANQUERO@wke.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084462260 21315 80.91.224.253 (13 May 2004 15:31:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 May 2004 15:31:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 13 17:30:36 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOIAO-00079l-00 for ; Thu, 13 May 2004 17:30:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOIAN-00005m-00 for ; Thu, 13 May 2004 17:30:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOI66-0000yu-Ah for emacs-devel@quimby.gnus.org; Thu, 13 May 2004 11:26:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOHOA-0000f0-7A for emacs-devel@gnu.org; Thu, 13 May 2004 10:40:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOHHQ-0006qi-RO for emacs-devel@gnu.org; Thu, 13 May 2004 10:34:20 -0400 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOH68-00047R-Bw for emacs-devel@gnu.org; Thu, 13 May 2004 10:22:09 -0400 Original-Received: from alfajor ([67.68.218.161]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040513142200.YQFO11783.tomts22-srv.bellnexxia.net@alfajor>; Thu, 13 May 2004 10:22:00 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 8B068D74EC; Thu, 13 May 2004 10:21:56 -0400 (EDT) Original-To: Juanma Barranquero In-Reply-To: <20040513090332.FB72.JMBARRANQUERO@wke.es> Original-Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23322 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23322 >> I strongly doubt it, because it is not a property of the display (X11 >> always supports italics) but of the particular font used. > Patches welcome. I don't know much about that stuff. Neither do I. The best approach I can think of is to compare the font used for "A" and then for (propertize "A" 'face 'help-arg-face), but I don't think we have a function to get the font used for a given char-with-face. Of course, even if we do, it would only be valid for the current frame which might be different from the one in which *Help* will be displayed (IIRC the buffer is first constructed and then displayed via pop-to-buffer). Stefan