all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org, john@yates-sheets.org
Subject: Re: Emphasizing the top of the frame
Date: Wed, 26 Oct 2016 15:00:35 +0300	[thread overview]
Message-ID: <83funjuxp8.fsf@gnu.org> (raw)
In-Reply-To: <581064F8.5060804@gmx.at> (message from martin rudalics on Wed, 26 Oct 2016 10:10:32 +0200)

> Date: Wed, 26 Oct 2016 10:10:32 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: emacs-devel@gnu.org
> 
>  >> The relevant places to look are xdisp.c, dispnew.c, and dispextern.h.
>  >> IOW, the Emacs display engine.  It currently _knows_ that the
>  >> minibuffer is at bottom and that the mode line is the last screen line
>  >> of any window.
>  >
>  > That was somewhat inaccurate: the fact that the minibuffer window is
>  > at bottom is coded in frame.c:make_frame, where the frame's window
>  > tree is set such that the minibuffer window is on the 'next' pointer
>  > from the frame's root window.  Switching the order shouldn't be hard,
>  > but I'd like Martin's opinion on how many things this could break.
> 
> Does the display engine anywhere rely on that order?

Not that I've seen (by looking at all users of FRAME_MINIBUF_WINDOW),
but I could miss something.  And there is init_xdisp, which you
mentioned, that hardcodes the top coordinate of the minibuffer window.
But see below.

> The frame/window code doesn't and conceptually should even tolerate
> the next window of the root window being nil all the time.

But doesn't the frame's window tree have to start with the root
window?  If it does, then how do we make the minibuffer window be its
"prev"?

> Note, however, that enlarging the minibuffer window currently tries to
> "adjust the trailing edge" of the root window (see that comment in
> ‘window--resize-root-window-vertically’
> 
>        ;; When shrinking the root window, emulate an edge drag in order
>        ;; to not resize other windows if we can avoid it (Bug#12419).
> 
> and the bug mentioned there for why that is important).

And that is at least one implicit dependency on this in the display
engine.  I wonder how many more are there.

IME, eventually there's no other way but to make the changes in the
places you find, fire up Emacs, see what stops working, and debug and
fix each feature that becomes broken.

We probably should have a variable that tells where the minubuffer
window appears, and code which needs to know needs to examine its
value.

Thanks.



  reply	other threads:[~2016-10-26 12:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 17:53 Emphasizing the top of the frame John Yates
2016-10-25 18:04 ` Clément Pit--Claudel
2016-10-25 18:06 ` Drew Adams
2016-10-25 18:27 ` Eli Zaretskii
2016-10-25 18:40   ` Eli Zaretskii
2016-10-26  8:10     ` martin rudalics
2016-10-26 12:00       ` Eli Zaretskii [this message]
2016-10-26 12:31         ` martin rudalics
2016-10-26 13:13           ` Eli Zaretskii
2016-10-26 14:23             ` martin rudalics
2016-10-26 14:58               ` Eli Zaretskii
2016-10-26 17:56                 ` martin rudalics
2016-10-26 18:40                   ` Eli Zaretskii
2016-10-26 18:51                     ` Eli Zaretskii
2016-10-26 19:26                       ` Paul Eggert
2016-10-26 20:18                         ` Stefan Monnier
2016-10-27 17:35                     ` martin rudalics
2022-04-08  1:48                       ` John Yates
2022-04-08 15:11                         ` martin rudalics
2022-04-09 14:47                           ` John Yates
2022-04-10  8:42                             ` martin rudalics
2022-04-10 14:50                               ` John Yates
2022-04-11  7:13                                 ` martin rudalics
2022-04-10 16:23                               ` [External] : " Drew Adams

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