unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: David Reitter <david.reitter@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: completion buffer - unsuitable column width
Date: Tue, 03 Mar 2009 09:21:43 -0500	[thread overview]
Message-ID: <jwvk5767kqp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <92CD418E-2240-448E-A9A6-CBC7C580AFD8@gmail.com> (David Reitter's message of "Tue, 3 Mar 2009 08:23:49 -0500")

> OK, perhaps we could use something like
> (if (assq 'default face-remapping-alist) 79 (window-width))
> to cover at least the case that I've encountered.

I'm not sure it's worth the trouble.

> A grep over the source, looking for (window-width), reveals other
> suspicious uses.

No doubt.  This is just another instance of the long standing problem
that all/most of the code presumes fixed-width fonts (and of a single
width shared by all fonts) as was the case in Emacs<21.

> "window-buffer-width", giving the average (expected) number of columns in
> a window for text in the default face applicable to the buffer shown in
> a given window.

Yes, that could help.


        Stefan




  reply	other threads:[~2009-03-03 14:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-02 19:13 completion buffer - unsuitable column width David Reitter
2009-03-03  1:33 ` Stefan Monnier
2009-03-03 13:23   ` David Reitter
2009-03-03 14:21     ` Stefan Monnier [this message]
2009-03-03 15:47       ` David Reitter
2009-03-03 18:03         ` Stefan Monnier
2009-03-03 16:46     ` Dan Nicolaescu
2009-03-03 16:33   ` Jonathan Rockway

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk5767kqp.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).