From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list-colors-display): Use with-help-window (Bug#8048). Date: Tue, 01 Mar 2011 20:51:41 +0200 Message-ID: <83vd02y8qq.fsf@gnu.org> References: <4D6B6AA4.8090008@gmx.at> <4D6BD6EA.4010000@gmx.at> <87mxlg57hs.fsf@stupidchicken.com> <83wrkklzcd.fsf@gnu.org> <87ipw4aq3x.fsf@stupidchicken.com> <8762s32854.fsf@gnu.org> <87ipw3ik43.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1299006407 23568 80.91.229.12 (1 Mar 2011 19:06:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 19:06:47 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 20:06:40 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuUu7-00087g-9g for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 20:06:39 +0100 Original-Received: from localhost ([127.0.0.1]:58137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuUoP-0001Nm-Lc for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 14:00:45 -0500 Original-Received: from [140.186.70.92] (port=36573 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuUgm-00069a-3m for emacs-devel@gnu.org; Tue, 01 Mar 2011 13:53:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuUg4-000564-0y for emacs-devel@gnu.org; Tue, 01 Mar 2011 13:52:14 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuUg3-00055i-Q6 for emacs-devel@gnu.org; Tue, 01 Mar 2011 13:52:07 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LHE00D006VZHN00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 01 Mar 2011 20:51:31 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.183.216]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHE00CXB71U5CB0@a-mtaout22.012.net.il>; Tue, 01 Mar 2011 20:51:31 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:136675 Archived-At: > From: Stefan Monnier > Date: Mon, 28 Feb 2011 23:53:04 -0500 > Cc: emacs-devel@gnu.org > > >> (insert (propertize > >> " " 'display > >> '(space :align-to (- text 8))) "#123456") > > > Ah yes, I think this will work. Thanks. > > > In the general case, the stuff after stretch glyph could have arbitrary > > width, so this wouldn't work; but it's certainly good enough for what > > list-colors-display needs. > > Won't work right for proportional fonts. Would it help to have a primitive that returns the width in pixels that a given buffer substring would take on the screen?