From unknown Sat Aug 16 21:21:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16524: 24.3.50; read-string executes minibuffer-exit-hook *before* exiting minibuffer Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2014 04:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16524@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139045275827530 (code B ref -1); Thu, 23 Jan 2014 04:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jan 2014 04:52:38 +0000 Received: from localhost ([127.0.0.1]:32896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6CHN-00079x-J6 for submit@debbugs.gnu.org; Wed, 22 Jan 2014 23:52:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40570) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6CHK-00079m-I0 for submit@debbugs.gnu.org; Wed, 22 Jan 2014 23:52:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6CHE-0007iI-1j for submit@debbugs.gnu.org; Wed, 22 Jan 2014 23:52:34 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6CHD-0007iE-Ud for submit@debbugs.gnu.org; Wed, 22 Jan 2014 23:52:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6CH8-000864-AO for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2014 23:52:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6CH2-0007g0-BX for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2014 23:52:22 -0500 Received: from cobb.liquidweb.com ([50.28.13.150]:34615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6CH2-0007ft-2q for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2014 23:52:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date; bh=sVPqDcQXt12IgBAUfE5PmAVB59CJu7qXaFPC/HYN94E=; b=PkXbdNfdQpHSkQS9M2YBI7KDJ+1nmCa7rSH6a+ZyJsuHtXAsH7XL0J2FW949NJ4E2Pn3aJh6cv6WQ1IIrkO2vXeJPaYDmKo3aA8OP7M+CQyiDPheuSGBiewGG8HhRh9L; Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:55639 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1W6CGw-0003Pv-5E for bug-gnu-emacs@gnu.org; Wed, 22 Jan 2014 23:52:10 -0500 Date: Wed, 22 Jan 2014 20:52:13 -0800 Message-ID: From: Keith David Bershatsky User-Agent: / () / () APEL/10.8 Emacs/24.3.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I started a thread on Stackoverflow thinking there was something I'm missing, but I'm pretty sure it's a bug: http://stackoverflow.com/questions/21299074/how-to-use-a-minibuffer-exit-hook-with-read-string The documentation for the minibuffer-exit-hook says it runs *after* exiting the minibuffer. However, the function `minibufferp` reveals that this is not true with read-string. It should be possible to use `minibufferp` and it should not return as positive when exiting the read-string function. Essentially, I have one function that I'd like to use for a variety of situations that looks like this -- however, I would need to add it manually after every appearance of `read-string` in my setup unless this particular issue is resolved: (defun lawlist-modeline-setup-two () (cond ((minibufferp) (set-face-attribute 'mode-line nil :height 160 :foreground "gray70" :background "black" :box '(:line-width 1 :color "black")) (set-face-attribute 'minibuffer-prompt nil :background "black" :foreground "cyan") (set (make-local-variable 'face-remapping-alist) '((default :background "black" :foreground "yellow")))) ((or save-as-variable multi-extract-variable multi-attach-variable) (set-face-attribute 'mode-line nil :height 160 :foreground "black" :background "#eab700" :box nil)) ((and (featurep 'multiple-cursors) multiple-cursors-mode) (set-face-attribute 'mode-line nil :height 160 :foreground "black" :background "cyan" :box nil)) ((eq major-mode 'lawlist-calculator-mode) (set-face-attribute 'mode-line nil :height 160 :foreground "black" :background "firebrick" :box nil)) (t (set-face-attribute 'mode-line nil :height 160 :foreground "black" :background "gray70" :box nil) (set-face-attribute 'minibuffer-prompt nil :background "black" :foreground "gray70")) )) Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 24.3.50.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36) of 2014-01-19 on MP.local Repository revision: 116074 rudalics@gmx.at-20140119165951-u43soyrpvzsqubr1 Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns' Important settings: locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: hl-line-mode: t global-lawlist-scroll-bar-mode: t lawlist-scroll-bar-mode: t delete-selection-mode: t shell-dirtrack-mode: t desktop-save-mode: t tabbar-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t buffer-read-only: t transient-mark-mode: t Recent input: r y SPC 2 6 , SPC 2 0 1 4 b l a n k SPC a n d c o m p e l t e d l e t e d SPC a n d SPC I n c o m SPC e SPC a n d SPC E x p e n s e SPC D e c l a r a t i o n SPC [ F L - 1 5 0 ] s-x ; SPC s-v D e c l a r a t i o n SPC o f SPC J i z SPC P e n g SPC F e i ; SPC SPC e x h i b i t s ; SPC s-z s-o x e m a c s - r e p o r t - b u g r e p o r t - e m a c s - b u g Recent messages: Saving file /Users/HOME/.0.data/.0.emacs/.scratch... Wrote /Users/HOME/.0.data/.0.emacs/.scratch Saving file /Users/HOME/.0.data/.0.emacs/.scratch... Wrote /Users/HOME/.0.data/.0.emacs/.scratch Undo... Undo! Saving file /Users/HOME/.0.data/.0.emacs/.scratch... Wrote /Users/HOME/.0.data/.0.emacs/.scratch *beep* Focus is still in the minibuffer: *Minibuf-1* [2 times] Load-path shadows: /Users/HOME/.0.data/.0.emacs/elpa/flim/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/md4 /Users/HOME/.0.data/.0.emacs/elpa/flim/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/hex-util /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/sasl /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/sasl-ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/sasl-digest /Users/HOME/.0.data/.0.emacs/elpa/flim/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/sasl-cram /Users/HOME/.0.data/.0.emacs/elpa/flim/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/ntlm /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/hmac-md5 /Users/HOME/.0.data/.0.emacs/elpa/flim/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/net/hmac-def /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/mail/rfc2368 /Users/HOME/.0.data/.0.emacs/elpa/wanderlust/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/gnus/utf7 /Users/HOME/.0.data/.0.emacs/elpa/semi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/gnus/smime /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp5 /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg-parse /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg-gpg /Users/HOME/.0.data/.0.emacs/elpa/semi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/pgg-def /Users/HOME/.0.data/.0.emacs/elpa/utilities/longlines hides /Users/HOME/.0.data/.0.emacs/Emacs_01_19_2014.app/Contents/Resources/lisp/obsolete/longlines Features: (shadow wl-mime mime-edit pgg-parse pccl pccl-20 signature mime-setup mail-mime-setup semi-setup mime-pgp pgg-def mime-play filename mime-image modb-standard elmo-imap4 time-stamp emacsbug server init-wl wl-demo wl-draft eword-encode wl-template sendmail elmo-net elmo-cache elmo-map elmo-dop wl-news wl-address wl-thread wl-folder wl wl-e21 wl-spam wl-action wl-summary wl-refile wl-util pp elmo-flag elmo-localdir wl-message elmo-mime mmelmo-buffer mmelmo-imap mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric elmo-multi elmo-spam elsp-header elsp-generic elmo elmo-signal wl-highlight wl-vars wl-version epg-config elmo-msgdb modb modb-generic modb-entity luna mime elmo-util emu invisible inv-23 poem poem-e20 poem-e20_3 utf7 eword-decode mel mime-def alist std11 mcharset mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date elmo-vars elmo-version path-util poe pym static apel-ver product w3m-load mime-w3m w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util disp-table whitespace linum hl-line multiple-cursors-autoloads package bbdb-autoloads delsel savehist lawlist-calculator ps-print ps-def lpr flyspell ispell auto-save-buffers-enhanced bbdb timezone dired-aux dired yasnippet help-mode multiple-cursors mc-separate-operations rectangular-region-mode mc-mark-more thingatpt mc-cycle-cursors mc-edit-lines multiple-cursors-core rect saveplace lawlist-tex-mode pcase compile shell pcomplete comint ansi-color ring skeleton compare-w desktop frameset init-tabbar tabbar lawlist-org lawlist-calendar advice edmacro kmacro derived org-toodledo mailcap-toodledo lawlist-tls http-post-simple url-http tls url-auth url-gw url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core password-cache url-vars mailcap json xml w3mexcerpt noutline outline easy-mmode find-func gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message cl-macs gv format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit cl cl-loaddefs cl-lib highlight-parentheses redo time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) From unknown Sat Aug 16 21:21:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16524: 24.3.50; read-string executes minibuffer-exit-hook *before* exiting minibuffer Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2014 05:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith David Bershatsky , 16524@debbugs.gnu.org Received: via spool by 16524-submit@debbugs.gnu.org id=B16524.139045410929858 (code B ref 16524); Thu, 23 Jan 2014 05:16:01 +0000 Received: (at 16524) by debbugs.gnu.org; 23 Jan 2014 05:15:09 +0000 Received: from localhost ([127.0.0.1]:32904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6CdA-0007lW-FC for submit@debbugs.gnu.org; Thu, 23 Jan 2014 00:15:08 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:50676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W6Cd7-0007lN-Mc for 16524@debbugs.gnu.org; Thu, 23 Jan 2014 00:15:06 -0500 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0N5F3gG013141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Jan 2014 05:15:04 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0N5F23d006414 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jan 2014 05:15:03 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s0N5F2tb015819; Thu, 23 Jan 2014 05:15:02 GMT MIME-Version: 1.0 Message-ID: <42a496cf-814e-4966-8c01-a2e8d9db6892@default> Date: Wed, 22 Jan 2014 21:15:01 -0800 (PST) From: Drew Adams References: In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) See my reply on SO: http://stackoverflow.com/a/21299834/729907 IMO, this is not a bug, unless it is to say that the doc should more precisely specify when the hook is run. IOW, doc bug, yes; the behavior could be described better. From unknown Sat Aug 16 21:21:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16524: 24.3.50; read-string executes minibuffer-exit-hook *before* exiting minibuffer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Keith David Bershatsky Cc: 16524@debbugs.gnu.org Received: via spool by 16524-submit@debbugs.gnu.org id=B16524.162235133227472 (code B ref 16524); Sun, 30 May 2021 05:09:02 +0000 Received: (at 16524) by debbugs.gnu.org; 30 May 2021 05:08:52 +0000 Received: from localhost ([127.0.0.1]:58140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDgx-000792-VT for submit@debbugs.gnu.org; Sun, 30 May 2021 01:08:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDgu-00078k-W0 for 16524@debbugs.gnu.org; Sun, 30 May 2021 01:08:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bm1Qt2hnWHSz3aZ34PC1QSP1WaoMU+UT6pJDjzi81e0=; b=tbPOCGhy09O4tcJWxiMiXz34xd uv0fSBITBq2ngBGoIFClP/5HG+lIAzU78fdfRiw8bMarg4v6sklGOJ07LGtC15cKC/E2v4krUmKH3 jQ/GWok7q6I+T1HObGDNj2iykB3OpnSlNtPYGjearmEj7i97XC5TThXXogVNmDH+wwmU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnDgm-0006F9-8j; Sun, 30 May 2021 07:08:42 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Crosby, Stills, Nash & Young's _So Far_: "Guinnevere" Date: Sun, 30 May 2021 07:08:39 +0200 In-Reply-To: (Keith David Bershatsky's message of "Wed, 22 Jan 2014 20:52:13 -0800") Message-ID: <87r1ho4xm0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Keith David Bershatsky writes: > The documentation for the minibuffer-exit-hook says it runs *after* > exiting the minibuffer. Simpler test case for the problem: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Keith David Bershatsky 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 30 01:08:55 2021 Received: (at control) by debbugs.gnu.org; 30 May 2021 05:08:55 +0000 Received: from localhost ([127.0.0.1]:58143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDh1-00079G-6m for submit@debbugs.gnu.org; Sun, 30 May 2021 01:08:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnDh0-00078t-7r for control@debbugs.gnu.org; Sun, 30 May 2021 01:08:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GMfxU+6ZSHi2hzHjIOdSO8fRnfZ95eG2QK5UJZJjg7k=; b=KNU2lopFQc6EKj5/cWkZ9ohRz3 7fMAkM3lDaDceGBAOcgG9z9jABfEDQZEiBXOc+boovHzwQ4dCfkIPCCpucu3YmZVA19HV1r5fjF/B LVgIO6E/cK/9UN5GcosmZInxfA/ypDeb6oktShm4OWhE3ogngIwWobXCMWuYJfx5RQio=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnDgs-0006FI-Rt for control@debbugs.gnu.org; Sun, 30 May 2021 07:08:48 +0200 Date: Sun, 30 May 2021 07:08:46 +0200 Message-Id: <87pmx84xlt.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #16524 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 16524 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 16524 28.1 quit