all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: 16524@debbugs.gnu.org
Subject: bug#16524: 24.3.50; read-string executes minibuffer-exit-hook *before* exiting minibuffer
Date: Sun, 30 May 2021 07:08:39 +0200	[thread overview]
Message-ID: <87r1ho4xm0.fsf@gnus.org> (raw)
In-Reply-To: <m2y527i9ky.wl%esq@lawlist.com> (Keith David Bershatsky's message of "Wed, 22 Jan 2014 20:52:13 -0800")

Keith David Bershatsky <esq@lawlist.com> writes:

> The documentation for the minibuffer-exit-hook says it runs *after*
> exiting the minibuffer.

Simpler test case for the problem:

(push (lambda ()
	(message "exiting %s" (minibufferp)))
      minibuffer-exit-hook)

(read-string "foo")

It turns out that `minibuffer-exit-hook' is usually (always?) run in the
minibuffer, so "Normal hook run just after exit from minibuffer." is
misleading.  I've instead copied the text from the manual, which says
"Normal hook run whenever a minibuffer is exited." in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2021-05-30  5:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  4:52 bug#16524: 24.3.50; read-string executes minibuffer-exit-hook *before* exiting minibuffer Keith David Bershatsky
2014-01-23  5:15 ` Drew Adams
2021-05-30  5:08 ` Lars Ingebrigtsen [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1ho4xm0.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=16524@debbugs.gnu.org \
    --cc=esq@lawlist.com \
    /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.