unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: John Yates <john@yates-sheets.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Mode line at top of window
Date: Thu, 29 Apr 2021 10:17:53 +0200	[thread overview]
Message-ID: <AM9PR09MB497716A19D5DB034CCCE95C1965F9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <CAJnXXoiwLSCEE_1dLRSGsUQ9PWNopLesC_jBaMKM3i09_SXzow@mail.gmail.com> (John Yates's message of "Wed, 28 Apr 2021 22:49:45 -0400")

John Yates <john@yates-sheets.org> writes:

> Some years ago I brought up the topic of using very large screens:
>   https://lists.gnu.org/archive/html/emacs-devel/2016-10/msg00859.html
>
> More recently I brought up that topic again:
>   https://lists.gnu.org/archive/html/emacs-devel/2020-09/msg01057.html
>
> Lately, using mini-frame, I have realized a very liveable approximation
> of what I had in mind.  While normally I work with a maximized emacs
> frame, I attach here pictures of a much smaller frame, intended to give
> a sense of my current mini-buffer experience.
>
> A notable feature of my current implementation is that I position the
> minibuffer over the frame's title bar.  Positioned thus, a one line mini-
> buffer does not obscure any window content.  The downside is that,
> in order to position the popped up mini-buffer frame outside of the
> selected frame's native boundaries, that popped up frame must be
> made parentless.  That, in turn, has some rough edges.
>
> Were I able to position the mode-line at the top of each window (an
> arrangement whose virtues on a large screen I have argued  before)
> then I would make my selected frame the parent of the popped up
> mini-buffer.  The mini-buffer would have to remain within my frame's
> native boundaries.  But that would be acceptable because, with the
> mode-line at the top of each window, it would be one or more mode-
> lines that got hidden, rather than any actual buffer text.
>
> Which brings me to my ask: Would it be possible, optionally, to draw
> the mode-line at the top of each window?

When you say at top of each window, you mean in the titlebar of each
OS window as you show in your examples? That might be a problem, since
area outside of an application window, titlebar, borders, etc, usually
called a frame, is not owned by the application, but by some kind of a
window manager. In X11 it is usually a separate application (DWM, i3,
Compiz, etc), in MS Windows it is Explorer, as example.

I am not an expert at Emacs, so don't take me too seriously, but as far
as I know, I don't think you can display modeline on top of a window,
but you can display a header on top of your Emacs window (not in
titlebar) which takes same format as the modeline:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Mode-Line-Format.html

You can also hide modeline, check for example this:

https://www.emacswiki.org/emacs/HideModeLine

There was also some package that used hidden modeline and displayed
modeline info in minibuffer, but I don't remember the name, I think it
is this one, but I am not sure:

https://github.com/kiennq/emacs-mini-modeline

Also check this SX answer:

https://stackoverflow.com/questions/3050011/is-it-possible-to-move-the-emacs-minibuffer-to-the-top-of-the-screen

If you are using GNU/Linux, you can hide window titlebars and borders
with a right window manager for X11 (is what I do).

Together all those hacks are not what you are asking for exactly, but
they can give you an approximative illusion of what you are trying to
achieve :-).



      reply	other threads:[~2021-04-29  8:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  2:49 Mode line at top of window John Yates
2021-04-29  8:17 ` Arthur Miller [this message]

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=AM9PR09MB497716A19D5DB034CCCE95C1965F9@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --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 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).