[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: Eli Zaretskii
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:57:49 +0200

> From: Chong Yidong <address@hidden>
> Cc: address@hidden, address@hidden, address@hidden,
>         address@hidden
> Date: Mon, 28 Feb 2011 14:58:10 -0500
> Eli Zaretskii <address@hidden> writes:
> >> One possibility is to improve the redisplay engine to provide a way to
> >> specify a stretch glyph that stretches as far as possible.
> >
> > I'm not following your line of thought -- is this about aligning
> > display of text "nicely" for the current window width?  If so, why a
> > display property whose value is like `(space :align-to POS)' or maybe
> > `(space :width WIDTH)' will not do this job?
> Because POS and WIDTH have to be specified.  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.

You can use `text' to mean the width of the text area, AFAIK.
Subtract the width of the text you want to display from it, and you
have your WIDTH.  Would that do the trick?

Alternatively, maybe `(space :align-to (- right-fringe 9))' will do
what you want?  (9 being the number of characters in "#XXXXXX " that
you want to end at the right margin.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]