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: Tue, 01 Mar 2011 16:42:55 -0500 Message-ID: <87pqqatt40.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> <87ipw3ik43.fsf@stupidchicken.com> <4D6CC0A4.2070904@gmx.at> <83tyfmy8br.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299016029 14626 80.91.229.12 (1 Mar 2011 21:47:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 21:47:09 +0000 (UTC) Cc: martin rudalics , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 01 22:47:00 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 1PuXPH-00050L-TS for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 22:47:00 +0100 Original-Received: from localhost ([127.0.0.1]:43774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuXPH-0006em-EY for ged-emacs-devel@m.gmane.org; Tue, 01 Mar 2011 16:46:59 -0500 Original-Received: from [140.186.70.92] (port=38492 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuXLP-0003jL-HI for emacs-devel@gnu.org; Tue, 01 Mar 2011 16:43:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuXLN-0007M1-Cm for emacs-devel@gnu.org; Tue, 01 Mar 2011 16:42:58 -0500 Original-Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145]:35532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuXLN-0007Lw-B3; Tue, 01 Mar 2011 16:42:57 -0500 Original-Received: from furball (dhcp128036225133.central.yale.edu [128.36.225.133]) (authenticated bits=0) by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id p21Lgs4k004116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 1 Mar 2011 16:42:54 -0500 Original-Received: by furball (Postfix, from userid 1000) id 645C11602DE; Tue, 1 Mar 2011 16:42:55 -0500 (EST) In-Reply-To: <83tyfmy8br.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 01 Mar 2011 21:00:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.145 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:136691 Archived-At: Eli Zaretskii writes: >> But for one minor detail. `list-colors-print' produces output of the >> form >> >> ghost white ghost white, GhostWhite #f8f8ff >> >> where the number of color aliases listed in the middle is currently >> adjusted according to the actual window width. > > Couldn't you try adding more aliases until the gap between the color > name on the left and the first alias in the middle is small enough? > You could use current-column to measure the gap. Would that work? Are you referring to checking current-column using Lisp code in the display spec? (Remember, we don't know what's the limiting column when generating the buffer; we only find out at redisplay time.) I don't think it's a good idea to make the color names anything but ordinary text. I would just discard the "fitting aliases" feature, if it's too much work to implement properly (it's new to the trunk anyway).