|
From: | Chong Yidong |
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 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> 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).
[Prev in Thread] | Current Thread | [Next in Thread] |