[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list
From: |
martin rudalics |
Subject: |
Re: [Emacs-diffs] /srv/bzr/emacs/trunk r103444: * lisp/facemenu.el (list-colors-display): Use with-help-window (Bug#8048). |
Date: |
Wed, 02 Mar 2011 09:09:37 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> 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?
The current algorithm already does something along these lines. It's
just that it has to know the width of the window first.
>> 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.
>
> But that's not what we want here. We don't want to truncate, we want
> to insert text that fits without truncation.
If the text doesn't fit, we have to truncate anyway. But if we were
able to adjust rigid text (that is, truncate-lines equals t text) during
redisplay we'd be able to selectively display more important parts of a
text when the window is narrow and the entire text when the window is
wide. This would also allow to implement line numbers for rigid text.
martin