unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org, zhenya1007@gmail.com, john@yates-sheets.org
Subject: Re: Minibuffer positioned at a location other than the bottom of the frame?
Date: Sun, 26 Nov 2017 18:01:47 +0200	[thread overview]
Message-ID: <83efol6nbo.fsf@gnu.org> (raw)
In-Reply-To: <5A1A96C5.1040203@gmx.at> (message from martin rudalics on Sun, 26 Nov 2017 11:26:13 +0100)

> Date: Sun, 26 Nov 2017 11:26:13 +0100
> From: martin rudalics <rudalics@gmx.at>
> CC: zhenya1007@gmail.com, emacs-devel@gnu.org
> 
>  >> There I raised the notion of (optionally) moving the modeline to the top of each window and positioning the
>  >> minibuffer to the top of the frame.
>  >
>  > This should be much easier, see
>  >
>  >    https://lists.gnu.org/archive/html/emacs-devel/2016-10/msg00895.html
>  >
>  > and followups.
> 
> I doubt that "Positioning the minibuffer to the top of the frame" would
> be "much easier"

"Much easier" than positioning it dynamically below the selected
window, or some other dynamic positioning.  I'm sure you will agree.

> When Emacs enlarges the minibuffer window it then has
> to move all windows beneath down by the number of lines the minibuffer
> window has been enlarged.

Why "all"? why not just the next window below the minibuffer?  That's
what we do now: we resize only the window immediately above the
minibuffer.  Right?

> To not make these windows' texts move down
> accordingly (which would constitute a very unpleasent visual experience)
> we would have to try to change these windows' start positions and
> restore them accordingly when shrinking the minibuffer window back.

That's probably true, but we need to redisplay that window anyway, so
we can choose a different window-start while we are at that.

> Obviously, with point near the top of the window or varying line heights
> such an attempt might become very tricky or even impossible.

I don't see why it would be impossible.  And in any case, this will be
an opt-in feature, so those who don't like the result will not use it.

> Putting the minibuffer window below some arbitrary (maybe even internal)
> window of a frame would not run into such difficulties.

I'm okay with that as well, if someone figures out how to implement
it.



  reply	other threads:[~2017-11-26 16:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 21:24 Minibuffer positioned at a location other than the bottom of the frame? Evgeny Roubinchtein
2017-11-21  9:27 ` martin rudalics
2017-11-21 15:49   ` Eli Zaretskii
2017-11-25 14:43     ` John Yates
2017-11-25 16:05       ` Eli Zaretskii
2017-11-26 10:26         ` martin rudalics
2017-11-26 16:01           ` Eli Zaretskii [this message]
2017-11-27  8:49             ` martin rudalics
2017-11-26 16:29       ` Yuri Khan
2017-11-26 18:55         ` John Yates
2017-11-26 23:00       ` very large displays Stephen Leake

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=83efol6nbo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=john@yates-sheets.org \
    --cc=rudalics@gmx.at \
    --cc=zhenya1007@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 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).