From: Akio Burns <akioburns@icloud.com>
To: emacs-devel@gnu.org
Subject: Setting arbitrary windows as frame's minibuffer
Date: Tue, 09 Oct 2018 17:04:44 -0400 [thread overview]
Message-ID: <6B8BB5CB-70E7-4B02-BEB3-BA4B2CDF6704@icloud.com> (raw)
I would like to set an arbitrary window as the frame's minibuffer so that I may position the minibuffer adjacent to the focused window when it is invoked rather that at the bottom of the frame.
After removing the validation in frame.c
if (!MINI_WINDOW_P (XWINDOW (val)))
error ("The `minibuffer' parameter does not specify a valid minibuffer window");
I tried setting the frame's minibuffer with
(set-frame-parameter (selected-frame) 'minibuffer (selected-window))
This works for the first minibuffer invocation. Unfortunately, once the minibuffer quits/closes Emacs becomes stuck trying to resize the window and the minibuffer visually migrates back to the bottom of the frame.
Given that minibuffer window can be placed in a separate frame, it seems to me this should not be difficult. Am I missing something simple that would permit arbitrary minibuffer positioning?
—Akio
next reply other threads:[~2018-10-09 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-09 21:04 Akio Burns [this message]
2018-10-10 6:20 ` Setting arbitrary windows as frame's minibuffer martin rudalics
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=6B8BB5CB-70E7-4B02-BEB3-BA4B2CDF6704@icloud.com \
--to=akioburns@icloud.com \
--cc=emacs-devel@gnu.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.