all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Leo Liu <sdl.web@gmail.com>
Cc: 19355@debbugs.gnu.org, Juri Linkov <juri@linkov.net>
Subject: bug#19355: 25.0.50; limit the popup window height
Date: Sat, 13 Dec 2014 11:21:24 +0100	[thread overview]
Message-ID: <548C1324.2070605@gmx.at> (raw)
In-Reply-To: <87h9x0768r.fsf@gmail.com>

 > Thanks for the clarification. We are on the same page. I don't have
 > anything specific to add. Just want to point out that
 > fit-window-to-buffer is probably not the cause for this specific bug.
 > The contents of the elisp buffer can be a few windowful and I am still
 > seeing it being squeezed to 4 lines.

There's no specific bug here.  What you report can be easily considered
a user error like choosing a too broad base for completions or failing
to appropriately customize the option `window-min-height'.

But even if we decide that Emacs made a bad choice when making the
*Completions* that large we'd have to decide which heuristics we want to
apply instead, like

- use `shrink-window-if-larger-than-buffer' instead of
   `fit-window-to-buffer',

- explicitly pass a hardocded maximum height/width argument to
   `fit-window-to-buffer' (requires some minor changes to
   `with-displayed-buffer-window')

- add some options that allow users to specify the minimum and maximum
   sizes of _any_ window resized by `fit-window-to-buffer',

- tell users that they should customize `display-buffer' appropriately
   (in this case `with-displayed-buffer-window' would have to do much
   more work than it does now).

In any case, if you want the present behavior to change, you have to
express what you want Emacs to do instead ;-)

As an aside, I observe that displaying the *Completions* window
currently induces three calls to `fit-window-to-buffer' which aren't
that cheap, especially when the buffer is large.

martin





  reply	other threads:[~2014-12-13 10:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-12  1:49 bug#19355: 25.0.50; limit the popup window height Leo Liu
2014-12-12 12:45 ` martin rudalics
2014-12-12 13:05   ` Leo Liu
2014-12-12 17:19     ` martin rudalics
2014-12-13  0:17       ` Leo Liu
2014-12-13 10:21         ` martin rudalics [this message]
2014-12-13 14:41           ` Leo Liu
2014-12-13 20:03             ` martin rudalics
2014-12-14  0:37               ` Leo Liu
2014-12-14  9:03                 ` martin rudalics
2014-12-17  0:43                   ` Leo Liu
2014-12-17  7:08                     ` martin rudalics
2014-12-19 23:10                       ` Leo Liu
2014-12-25 10:35                         ` martin rudalics
2014-12-25 20:01                           ` Juri Linkov
2014-12-26  9:13                             ` martin rudalics
2014-12-27  0:57                               ` Juri Linkov
2014-12-30 10:15                                 ` martin rudalics
2014-12-31  0:03                                   ` Juri Linkov
2014-12-31 18:38                                     ` martin rudalics

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

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

  git send-email \
    --in-reply-to=548C1324.2070605@gmx.at \
    --to=rudalics@gmx.at \
    --cc=19355@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=sdl.web@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.