emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completion buffer - unsuitable column width


From: Stefan Monnier
Subject: Re: completion buffer - unsuitable column width
Date: Mon, 02 Mar 2009 20:33:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

>          (window (get-buffer-window (current-buffer) 0))
>          (wwidth (if window (1- (window-width window)) 79))
> ...

> In my case, I use face-remapping-alist to assign different faces for the
> frame default face and the buffer default face.  This causes  "window-width"
> to return a figure that does not indicate how much text  can be fit in one
> line in that window.

> I don't know how to fix this given that there seems to be no way to
> calculate the (average) character width of text with a given face.

That's unfortunate, indeed.

> I haven't encountered such an issue with 22.

The code in Emacs-22, just used a hard-coded 79.


        Stefan




reply via email to

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