From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong 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: Mon, 28 Feb 2011 22:40:28 -0500 Message-ID: <87ipw3ik43.fsf@stupidchicken.com> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298951411 24450 80.91.229.12 (1 Mar 2011 03:50:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 03:50:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 04:50:07 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 1PuGb7-0007vG-E8 for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 04:50:05 +0100 Original-Received: from localhost ([127.0.0.1]:58163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuGST-0005Tg-9r for ged-emacs-devel@m.gmane.org; Mon, 28 Feb 2011 22:41:09 -0500 Original-Received: from [140.186.70.92] (port=54947 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuGRr-0004zf-Gw for emacs-devel@gnu.org; Mon, 28 Feb 2011 22:40:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuGRq-0007uv-1m for emacs-devel@gnu.org; Mon, 28 Feb 2011 22:40:31 -0500 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]:51322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuGRp-0007up-Rg for emacs-devel@gnu.org; Mon, 28 Feb 2011 22:40:30 -0500 Original-Received: from furball (dhcp128036014052.central.yale.edu [128.36.14.52]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p213eSEF011888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 28 Feb 2011 22:40:28 -0500 Original-Received: by furball (Postfix, from userid 1000) id 6987D16016E; Mon, 28 Feb 2011 22:40:28 -0500 (EST) In-Reply-To: <8762s32854.fsf@gnu.org> ("Johan =?utf-8?Q?Bockg=C3=A5rd=22's?= message of "Mon, 28 Feb 2011 21:53:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.146 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:136634 Archived-At: Johan Bockg=C3=A5rd writes: > Chong Yidong writes: > >> I'm thinking of something like `(space :width maximum)', i.e. a way to >> specify a stretch glyph that's exactly wide enough to align the end of >> the current line with the right edge of the text area. > > (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.