[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list
RE: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list-colors-display): Use with-help-window (Bug#8048).
Tue, 1 Mar 2011 07:23:57 -0800
> `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. If the window is wide
> enough, more aliases are displayed. So we'd still need to know the
> width of the window _before_ filling the buffer in order to
> emulate the old behavior faithfully (personally I don't think we should
> care much).
> Maybe we could provide a display specificier, say "truncate", so we
> could do something like
> (insert (propertize string 'display '(truncate (- text 9))))
> to assert that any such string never extends past the ninth column
> before the end of the text area.
IIUC what the intention is, it assumes that the user wants to fit the buffer to
the window and not vice versa. In my case (dedicated window in a separate
frame), I do not want the buffer display to expand to fill the window. Instead,
I want it to remain as compact as practical, and I then fit the frame to the
Since there can be different user preferences and use cases, can you please
provide for those too when designing such a change (e.g. for the default case)?
IOW, let's not just assume that the window size is to be fixed and
predetermined, and that the buffer text should be fit to that window size.