emacs-devel
[Top][All Lists]
Advanced

[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: Tue, 01 Mar 2011 20:51:41 +0200

> From: Stefan Monnier <address@hidden>
> Date: Mon, 28 Feb 2011 23:53:04 -0500
> Cc: address@hidden
> 
> >> (insert (propertize
> >> " " 'display
> >> '(space :align-to (- text 8))) "#123456")
> 
> > Ah yes, I think this will work.  Thanks.
> 
> > In the general case, the stuff after stretch glyph could have arbitrary
> > width, so this wouldn't work; but it's certainly good enough for what
> > list-colors-display needs.
> 
> Won't work right for proportional fonts.

Would it help to have a primitive that returns the width in pixels
that a given buffer substring would take on the screen?



reply via email to

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