[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46097: 27.1; Minibuffer may not be current when running minibuffer-e
From: |
klubujevetru |
Subject: |
bug#46097: 27.1; Minibuffer may not be current when running minibuffer-exit-hook |
Date: |
Mon, 25 Jan 2021 11:44:32 +0100 |
Open the minibuffer with C-x C-f, switch to another window with C-x o
and abort the minibuffer with C-] (abort-recursive-edit).
minibuffer-exit-hook ends up running without the minibuffer being the
current buffer.
This may cause problems if a minibuffer adds a cleanup function the hook
locally, see for example discussion at
https://github.com/oantolin/embark/issues/114
The cleanup function fails to run in this situation because the local
value of the hook isn't considered.
In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo
version 1.17.3)
of 2020-08-28 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12010000
System Description: Arch Linux
Recent messages:
TEST: #<window 8181 on *Minibuf-3*> *Minibuf-3*
TEST: #<window 8181 on *Minibuf-3*> *Minibuf-3*
TEST: #<window 8181 on *Minibuf-2*> *Minibuf-2*
Quit
TEST: #<window 8181 on *Minibuf-3*> *Minibuf-3*
Ispell process killed
Local Ispell dictionary set to english
Starting new Ispell process /usr/bin/aspell with english dictionary...done
TEST: #<window 8181 on *Minibuf-1*> *Minibuf-1*
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-wide-int
--with-modules --with-cairo --with-harfbuzz 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON
PDUMPER LCMS2 GMP
Important settings:
value of $LANG: en_US.utf8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Memory information:
((conses 16 37731258 4232377)
(symbols 48 94311 3643)
(strings 32 2626060 933887)
(string-bytes 1 79259002)
(vectors 16 624752)
(vector-slots 8 7835270 2124558)
(floats 8 19039 20108)
(intervals 56 5766073 96670)
(buffers 1000 521))
- bug#46097: 27.1; Minibuffer may not be current when running minibuffer-exit-hook,
klubujevetru <=