all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: John Yates <john@yates-sheets.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Emphasizing the top of the frame
Date: Sun, 10 Apr 2022 10:42:23 +0200	[thread overview]
Message-ID: <af2db36a-e4fe-2ce7-86f5-037f401429b0@gmx.at> (raw)
In-Reply-To: <CAJnXXoiugcSoxccFZa5ZETP=Kz+Oz91E-QwOH4fcn7h-M=oD3w@mail.gmail.com>

 > Indeed.  And I like it.  Except that some packages assume
 > upward growth and so position the prompt at the bottom of
 > the frame, whereas in my case the more natural position
 > would be at the top.

Please don't ignore one important design principle here: The windows
within an Emacs frame, including the minibuffer window, do not overlap.
Hence, enlarging one window inevitably will shrink another window.  If
you want overlapping windows, you have to use child frames.

 > I suspect that if I used a child frame then at least some
 > of the glitches that I encounter would disappear.  The
 > reason that I cannot use a child frame is that doing so
 > constrains the minibuffer frame to reside within the space
 > managed by emacs.  As such it would be guaranteed to
 > hide something.

Right.  But IIUC your minibuffer frame also hides the menubar and, when
it grows (downwards), will hide other parts on top of the Emacs frame
too.  And didn't you claim initially that hiding is a feasible strategy,
something on which I agree because I do it myself.

 > It is interesting that you mention that your separate
 > minibuffer frame "rarely has let [you] down".  From
 > that I conclude that you too know that the separate
 > minibuffer experience is not as polished as that with
 > a traditional minibuffer.

It is occasionally problematic when switching focus between two or more
normal frames and a minibuffer interaction is going on and when trying
to quit the minibuffer.  And since my minibuffer frame auto-hides when
I don't need it, I have to turn off all sorts of things Emacs wants to
show in the echo area that I never want to see.

 > To avoid visible flashing and resizing during frame
 > creation, I initially marked the frame invisible, making
 > it visible at the last moment once all setup was done.
 > Part of the setup was an attempt to get the main and
 > the minibuffer frames into a proper stacking relationship.
 > It took a night's sleep and a shower for me to realize
 > that perhaps restacking an invisible frame might not
 > be supported.

The Elisp manual warns that

    Note that the effect of restacking will only hold as long as neither
of the involved frames is iconified or made invisible.

so you have to restack the minibuffer window also, for example, after
you deiconified the underlying normal frame.  This is a problem child
frames solve automagically.

 > (I am a C++ compiler writer by trade
 > and gui concepts are quite foreign.  I am having to
 > learn as I go. :-)
 >
 >> (add-hook
 >>    'move-frame-functions
 >>    (lambda (frame)
 >>      (message "Frame %s moved to %s" frame (frame-position frame))))
 >>
 >> If you don't see them, please tell us which toolkit and window manager
 >> you use.
 >
 > I had tried essentially that same experiment on my
 > own.  Just to be sure, I retried with your text verbatim.
 > Nothing shows up in *Messages*, neither with my
 > init.el loaded nor when I run emacs -Q.
 >
 > I am on vanilla Ubuntu 21.10.
 > I build emacs regularly from the tip thusly:
 >
 > ./configure \
[...]
 >    --with-pgtk \

I think that's the culprit.  You should use --with-pgtk if and only if
you use the Wayland backend.  If the problem persists even with a normal
X build, then the window manager might interfere.

[...]

 > As I stated earlier, one goal is to demonstrate an
 > attractive layout and experience.  Were this part
 > of core emacs, a minibuffer at the top of the frame
 > would never overlay the title bar.  Overlaying the
 > menubar, by contrast, places the minibuffer visually
 > in a very natural position.

Nowadays you could also try overlaying the tabbar.

 >>   > I hope that the existence of mbmb prompts owners
 >>   > of minibuffer-resizing packages to support growth
 >>   > downward in addition to today's growth upward.
 >>   > (Could we standardize a frame parameter to record
 >>   > this direction?)
 >>
 >> Do you mean we should resize the frame whenever the minibuffer window
 >> changes size?  That sounds hardly feasible.
 >
 > No.  Not at all.  I mean various packages assume
 > that, in a multi-line minibuffer layout, the persistent
 > minibuffer line is at the bottom and any additional
 > space has been added above.  Similarly, there are
 > packages that assume adjacency of the minibuffer
 > and the completions buffer is achieved by having
 > the completions buffer sit above the minibuffer.

OK.  But what would you change in core Emacs?  My own modified version
of Emacs can show minibuffer and/or echo area combined/separately on
bottom and/or top of a frame or in an arbitrary window and hide them
away when they are empty.  The one restriction that remains is the one I
cited on top of my mail - resizing any of these windows will resize at
least one other window.

martin



  reply	other threads:[~2022-04-10  8:42 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
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 [this message]
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=af2db36a-e4fe-2ce7-86f5-037f401429b0@gmx.at \
    --to=rudalics@gmx.at \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=john@yates-sheets.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 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.