From: "Drew Adams" <drew.adams@oracle.com>
To: <13641@debbugs.gnu.org>
Subject: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong
Date: Wed, 6 Feb 2013 15:55:57 -0800 [thread overview]
Message-ID: <7F99775CA6C6422AACBB09E0DE386CB4@us.oracle.com> (raw)
In-Reply-To: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com>
> (add-hook 'minibuffer-inactive-mode-hook #'make-frame-invisible)
>
> This is how I started. I was expecting the minibuffer frame to
> essentially stay hidden except when the minibuffer was activated.
>
> With *Messages* selected, M-x makes *Messages* disappear. Then C-g
> makes the minibuffer frame disappear and brings back *Messages*.
Thinking it might have something to do with the minibuffer level, I tried this:
(add-hook 'minibuffer-inactive-mode-hook
(lambda ()
(message "fr: %S, active: %S, depth: %S"
(selected-frame)
(active-minibuffer-window)
(minibuffer-depth))
(unless (> (minibuffer-depth) 0)
(make-frame-invisible))))
Then M-x followed by C-g works, but only every other time.
The inactive minibuffer reappears every other time (why?).
It reappears even when the message shows that the depth is 0 and the minibuffer
is inactive.
next prev parent reply other threads:[~2013-02-06 23:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 23:04 bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong Drew Adams
2013-02-06 23:55 ` Drew Adams [this message]
2013-03-07 2:59 ` Drew Adams
2021-07-15 6:49 ` Lars Ingebrigtsen
2021-07-15 7:21 ` Eli Zaretskii
2021-07-15 7:26 ` Lars Ingebrigtsen
2021-08-12 15:16 ` Lars Ingebrigtsen
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=7F99775CA6C6422AACBB09E0DE386CB4@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=13641@debbugs.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 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).