From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: klubujevetru Newsgroups: gmane.emacs.bugs Subject: bug#46097: 27.1; Minibuffer may not be current when running minibuffer-exit-hook Date: Mon, 25 Jan 2021 11:44:32 +0100 Message-ID: <8735yp9tyn.fsf@miha-pc> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34632"; mail-complaints-to="usenet@ciao.gmane.io" To: 46097@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 25 11:58:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3zZV-0008s7-NJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jan 2021 11:58:15 +0100 Original-Received: from localhost ([::1]:46306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3zZU-00084I-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jan 2021 05:58:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3zZK-00082N-6m for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2021 05:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l3zZJ-0002FT-VZ for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2021 05:58:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l3zZJ-0003LW-Uc for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2021 05:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: klubujevetru Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Jan 2021 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46097 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161157224112810 (code B ref -1); Mon, 25 Jan 2021 10:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jan 2021 10:57:21 +0000 Original-Received: from localhost ([127.0.0.1]:38023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3zYa-0003KT-NT for submit@debbugs.gnu.org; Mon, 25 Jan 2021 05:57:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l3zIt-0002wW-3N for submit@debbugs.gnu.org; Mon, 25 Jan 2021 05:41:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3zIr-0006TK-Ng for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2021 05:41:02 -0500 Original-Received: from mail.cock.li ([37.120.193.124]:37448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3zIp-0002a7-69 for bug-gnu-emacs@gnu.org; Mon, 25 Jan 2021 05:41:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1611571234; bh=gycJap0OuUVwYKyioxJQzb7jPm7/4aIoelIX43K5JQs=; h=From:To:Subject:Date:From; b=iTDzD2zs5s+7gUHR53sP3UjEPtV0RAxNGXMzoY9+Ta87o9WAF+PRa4yCv0EDYHAhx /bZGGFGbrIyKSIIU6Zr7etIfy8fdyhuYXM7eJ9GqHOyLBMl77nulImXE2MkewvulpZ qdt9TQEw3RT5lgH7rgA284PqwkqYFC1CXauFmRVh0ma4yRyP+Bgt82hMm5s1DIi2KD Uzq5UolRtF+U0HOiNvzU22n4PTYzBifDfcdL8APvHkBuKbsx6rzDoOudUP3bGWWpAE 16W7ZlPPOeG1rzhZKRd+80QJNNIVq4yU2I4Pt4p/9L81/2P1OUVVqM/SJXBThEaH/H 7CgXMjX5NPvbg== Received-SPF: pass client-ip=37.120.193.124; envelope-from=klubujevetru@cock.li; helo=mail.cock.li X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_RP_RNBL=1.31, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 25 Jan 2021 05:57:16 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198561 Archived-At: 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: # *Minibuf-3* TEST: # *Minibuf-3* TEST: # *Minibuf-2* Quit TEST: # *Minibuf-3* Ispell process killed Local Ispell dictionary set to english Starting new Ispell process /usr/bin/aspell with english dictionary...done TEST: # *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))