unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Michael Heerdegen <michael_heerdegen@web.de>,
	ndame <emacsuser@freemail.hu>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Shouldn't emacs print long lists with newlines?
Date: Thu, 29 Aug 2019 09:46:12 +0200	[thread overview]
Message-ID: <5705f993-6baf-e1ac-acd4-652bd785379d@gmx.at> (raw)
In-Reply-To: <jwv7e6xcioi.fsf-monnier+emacs@gnu.org>

 >> Since you can now customize 'resize-mini-frames' this restriction no
 >> longer applies (at least not as stated here).
 >
 > FWIW, resize-mini-frames doesn't work very well for me:
 >
 > - at startup it resizes the frame to a one-line frame of maybe 10-20
 >    chars long, which is oddly short.  The length is updated on the fly,
 >    but I find this a bit annoying.  Nothing too serious tho.

You could try to customize 'fit-frame-to-buffer-sizes' for this.

 > - I have my minibuffer frame at the bottom of the screen.  When it grows
 >    to two or more lines, it correctly moves up.  But when it shrinks back
 >    to a single line, it doesn't move back down, so it ends up "near" the
 >    bottom rather than at the bottom.

Attaching a frame to the bottom of the screen is more tricky.  I'm
afraid it wouldn't even help to set the second element of
'fit-frame-to-buffer-margins' to a value that just fits into the
display.

 > The second problem is probably partly linked to the window-manager, but
 > I've found size-varying windows at the bottom of the screen to be poorly
 > handled under X11 in general (not only with the window-manager
 > I'm using), so I think I'd have to move my minibuffer-only frame to the
 > top of the screen to avoid those problem :-(

The solution is to write your own function to (1) resize your frame
less noisily and, once you know its size, (2) make sure the minibuffer
frame's bottom aligns with the bottom of the workarea where it appears
and (3) set 'resize-mini-frames' to that function.

 >>> , so spreading the output on several
 >>>     lines is not always a good solution.  ]
 >
 > So this still holds :-(

It shouldn't since it negatively impacts the design of solutions for
adjustable minibuffer windows.

martin



  reply	other threads:[~2019-08-29  7:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05 20:05 Shouldn't emacs print long lists with newlines? ndame
2019-08-07  7:05 ` Michael Heerdegen
2019-08-07 10:51   ` Stefan Monnier
2019-08-07 12:04     ` martin rudalics
2019-08-28 17:23       ` Stefan Monnier
2019-08-29  7:46         ` martin rudalics [this message]
2019-08-07 12:43   ` ndame
2019-08-07 14:28     ` Michael Heerdegen

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=5705f993-6baf-e1ac-acd4-652bd785379d@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=emacsuser@freemail.hu \
    --cc=michael_heerdegen@web.de \
    --cc=monnier@iro.umontreal.ca \
    /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).