From unknown Tue Jun 24 20:52:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13641 <13641@debbugs.gnu.org> To: bug#13641 <13641@debbugs.gnu.org> Subject: Status: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong Reply-To: bug#13641 <13641@debbugs.gnu.org> Date: Wed, 25 Jun 2025 03:52:07 +0000 retitle 13641 24.3.50; `minibuffer-inactive-mode' - hook seems wrong reassign 13641 emacs submitter 13641 "Drew Adams" severity 13641 minor tag 13641 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 18:06:25 2013 Received: (at submit) by debbugs.gnu.org; 6 Feb 2013 23:06:25 +0000 Received: from localhost ([127.0.0.1]:40132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3E4O-0007eD-Gh for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:06:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44953) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3E4L-0007e6-WF for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:06:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3E34-0000C3-8k for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:05:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3E34-0000Bl-5s for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:05:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3E32-0008TX-GW for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:05:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3E31-00009j-6O for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:05:00 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:24041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3E30-00009T-Vy for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:04:59 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r16N4vEk025373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 6 Feb 2013 23:04:58 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r16N4tXj010407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 6 Feb 2013 23:04:57 GMT Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r16N4tqb004409 for ; Wed, 6 Feb 2013 17:04:55 -0600 Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 06 Feb 2013 15:04:55 -0800 From: "Drew Adams" To: Subject: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong Date: Wed, 6 Feb 2013 15:04:53 -0800 Message-ID: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac4Evl/VnVDB7LAWQhaGmOAXfLuBQw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) I don't have the C sources, so cannot see just how/when the hook `minibuffer-inactive-mode-hook' gets called. I see this behavior with my own setup, which has a standalone minibuffer frame: It seems like the hook is invoked for each toggle between states active & inactive, i.e., including from inactive to active, which would be wrong. I would expect the hook to be invoked only when the minibuffer becomes inactive. E.g.: (defun move-frame-right (&optional n frame) (interactive "p") (unless n (setq n 1)) (setq n (* n (frame-char-width frame))) (modify-frame-parameters frame (list (list 'left '+ (new-frame-position frame 'left n))))) (add-hook 'minibuffer-inactive-mode-hook #'move-frame-right) Start with the minibuffer inactive and some frame other than the minibuffer frame selected, and do M-x. That selected frame moves to the right. Why? Then hit C-g to cancel M-x. The minibuffer frame moves to the right. The latter makes sense, because C-g inactivates the minibuffer. The former invocation of the hook seems like a bug to me. Then remove that hook function and do this instead: Show buffer *Messages* in its own frame, then: (add-hook 'minibuffer-inactive-mode-hook (lambda () (message "fr: %S, active: %S" (selected-frame) (active-minibuffer-window)))) Then, with frame *Messages* selected, do M-x, then C-g. This confirms the double invocation. This is what I see (my minibuffer frame has a long name): fr: #, active: # [2 times] fr: #, active: nil The first message, including the [2 times], appears after M-x. The second message appears after C-g. Note that the first message indicates that the minibuffer is _active_ - so why is the hook firing? Now remove that hook function and then do this: (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*. Seems broken to me, but perhaps I'm missing something. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2013-01-30 on ODIEONE Bzr revision: 111631 michael.albinus@gmx.de-20130130192046-nx4rskw7jemmtrw8 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib' From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 18:57:23 2013 Received: (at 13641) by debbugs.gnu.org; 6 Feb 2013 23:57:23 +0000 Received: from localhost ([127.0.0.1]:40205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Eri-0001Mi-ID for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:57:23 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:29979) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Erg-0001MZ-HR for 13641@debbugs.gnu.org; Wed, 06 Feb 2013 18:57:21 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r16Nu0sc001208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <13641@debbugs.gnu.org>; Wed, 6 Feb 2013 23:56:01 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r16NtxvN029209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <13641@debbugs.gnu.org>; Wed, 6 Feb 2013 23:56:00 GMT Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r16Ntwo9015832 for <13641@debbugs.gnu.org>; Wed, 6 Feb 2013 17:55:59 -0600 Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 06 Feb 2013 15:55:59 -0800 From: "Drew Adams" To: <13641@debbugs.gnu.org> References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> Subject: RE: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong Date: Wed, 6 Feb 2013 15:55:57 -0800 Message-ID: <7F99775CA6C6422AACBB09E0DE386CB4@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> Thread-Index: Ac4Evl/VnVDB7LAWQhaGmOAXfLuBQwABlVnw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 13641 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) > (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. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 06 21:59:48 2013 Received: (at 13641) by debbugs.gnu.org; 7 Mar 2013 02:59:48 +0000 Received: from localhost ([127.0.0.1]:35049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDR3c-0001LD-F7 for submit@debbugs.gnu.org; Wed, 06 Mar 2013 21:59:48 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:46333) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDR3a-0001L0-7D for 13641@debbugs.gnu.org; Wed, 06 Mar 2013 21:59:47 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r272xA2T006723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <13641@debbugs.gnu.org>; Thu, 7 Mar 2013 02:59:11 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r272x9ZC004705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <13641@debbugs.gnu.org>; Thu, 7 Mar 2013 02:59:10 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r272x9Am007445 for <13641@debbugs.gnu.org>; Wed, 6 Mar 2013 20:59:09 -0600 Received: from dradamslap1 (/10.159.178.227) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 06 Mar 2013 18:59:09 -0800 From: "Drew Adams" To: <13641@debbugs.gnu.org> References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> <7F99775CA6C6422AACBB09E0DE386CB4@us.oracle.com> Subject: RE: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong Date: Wed, 6 Mar 2013 18:59:06 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-reply-to: <7F99775CA6C6422AACBB09E0DE386CB4@us.oracle.com> Thread-Index: Ac4Evl/VnVDB7LAWQhaGmOAXfLuBQwABlVnwBYavj1A= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 13641 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) Any chance someone could please take a look at this behavior and explain what is going on? Thx. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 02:49:50 2021 Received: (at 13641) by debbugs.gnu.org; 15 Jul 2021 06:49:50 +0000 Received: from localhost ([127.0.0.1]:46574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vBu-0003ZZ-Fb for submit@debbugs.gnu.org; Thu, 15 Jul 2021 02:49:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vBs-0003ZJ-Bn for 13641@debbugs.gnu.org; Thu, 15 Jul 2021 02:49:48 -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=8l3aXe9PDAbnOfBQ/e7Lt+5Am9bnZXtjry5GhIyXtNs=; b=lCkrbNQ011+TLBHz+Ao6UMwaF7 PA7GefONaCgCbZw4X/PbRMmP18t5FNAn5LRhIhZ45sqN/E3+ytcwJtudnAp5lG+bs2Ukf2bGznHeu 0H3FBW/9wd0Ay9iKambW6+LDiOEC/0GR7w57djPV9V71IxWD00npJJYWhMcVqjKK8B6I=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vBj-00050a-1E; Thu, 15 Jul 2021 08:49:41 +0200 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> X-Now-Playing: Duplex's _Fabric 94: Steffi_: "Voidfiller" Date: Thu, 15 Jul 2021 08:49:38 +0200 In-Reply-To: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> (Drew Adams's message of "Wed, 6 Feb 2013 15:04:53 -0800") Message-ID: <87v95cm5q5.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: "Drew Adams" writes: > I don't have the C sources, so cannot see just how/when > the hook `minibuffer-inactive-mode-hook' gets called. It seems that it's called twice. To test: 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: -2.3 (--) X-Debbugs-Envelope-To: 13641 Cc: 13641@debbugs.gnu.org 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: -3.3 (---) "Drew Adams" writes: > I don't have the C sources, so cannot see just how/when > the hook `minibuffer-inactive-mode-hook' gets called. It seems that it's called twice. To test: (add-hook 'minibuffer-inactive-mode-hook 'debug) M-x Debugger entered: nil (closure (t) nil (debug) (message "foo"))() run-hooks(change-major-mode-after-body-hook minibuffer-inactive-mode-hook) apply(run-hooks (change-major-mode-after-body-hook minibuffer-inactive-mode-hook)) run-mode-hooks(minibuffer-inactive-mode-hook) minibuffer-inactive-mode() read-from-minibuffer("M-x " nil (keymap (10 . minibuffer-complete-and-exit) ( completing-read-default("M-x " #f(compiled-function (string pred action) #) id 1m3vBx-0003Zr-Na for submit@debbugs.gnu.org; Thu, 15 Jul 2021 02:49:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vBw-0003ZQ-4Y for control@debbugs.gnu.org; Thu, 15 Jul 2021 02:49:52 -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=XwWTxUZTdoWAS1weHifHx1cRPwDQsdVnUbSBOprFpxs=; b=bGOx0xdi7oiwe+cSBSOs5vIleZ 9Bd2sA/Q2q7yrddVwAzQyamgog1rEZay+c99Vu+wzvx41CXemObq0dYF2Luf8c5TFmpdj42rX9Cc+ yJJDD81JUOR+j+zIi8sF1u3cRIcESCFMmGI3dS6bPDvjEoOcHpaLsJzHgPkstwY3957A=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vBo-00050h-G7 for control@debbugs.gnu.org; Thu, 15 Jul 2021 08:49:46 +0200 Date: Thu, 15 Jul 2021 08:49:44 +0200 Message-Id: <87tukwm5pz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #13641 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: tags 13641 + moreinfo 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: -2.3 (--) 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: -3.3 (---) tags 13641 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:22:05 2021 Received: (at 13641) by debbugs.gnu.org; 15 Jul 2021 07:22:05 +0000 Received: from localhost ([127.0.0.1]:46622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vh7-0006bU-JZ for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:22:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vh5-0006au-I0 for 13641@debbugs.gnu.org; Thu, 15 Jul 2021 03:22:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39242) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3vh0-0007ed-7e; Thu, 15 Jul 2021 03:21:58 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2565 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3vgz-0001mn-Pd; Thu, 15 Jul 2021 03:21:58 -0400 Date: Thu, 15 Jul 2021 10:21:41 +0300 Message-Id: <83a6mo6nzu.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87v95cm5q5.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 15 Jul 2021 08:49:38 +0200) Subject: Re: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> <87v95cm5q5.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 13641 Cc: 13641@debbugs.gnu.org, drew.adams@oracle.com 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: -3.3 (---) > From: Lars Ingebrigtsen > Date: Thu, 15 Jul 2021 08:49:38 +0200 > Cc: 13641@debbugs.gnu.org > > The mode is called both on entering and exiting the minibuffer, which > sounds slightly surprising Isn't it generally true that a mode function is called both when turning a mode on and when turning it off? Then why is the above surprising? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 15 03:26:52 2021 Received: (at 13641) by debbugs.gnu.org; 15 Jul 2021 07:26:52 +0000 Received: from localhost ([127.0.0.1]:46643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vlk-0006jV-Hr for submit@debbugs.gnu.org; Thu, 15 Jul 2021 03:26:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3vlj-0006jG-84 for 13641@debbugs.gnu.org; Thu, 15 Jul 2021 03:26:51 -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=/mdyY+oQ1xw7GW4kkC8SF90zFKtiRnKnrXVihVkII2M=; b=jmZyxm4y0Y8tnC1qL39mlM41z5 yWDO87vG5Wxo9lc97nZMXpSnnWAqqL2df+tCCGjcoU/0t5Mt8uMUyubdSIbx+2j3iULNZL4GzFpFl BKO/xzSEt34oTVTj6mH+ruLTUFlvdoDTTdbX8ovPucQrk+qPKgtJCcXaVgn8kAedzyhY=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3vlZ-0005PG-PN; Thu, 15 Jul 2021 09:26:44 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> <87v95cm5q5.fsf@gnus.org> <83a6mo6nzu.fsf@gnu.org> X-Now-Playing: Mr. Jones's _Sounds For The Mute_: "Reversible" Date: Thu, 15 Jul 2021 09:26:40 +0200 In-Reply-To: <83a6mo6nzu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Jul 2021 10:21:41 +0300") Message-ID: <8735sgm40f.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: Eli Zaretskii writes: >> The mode is called both on entering and exiting the minibuffer, which >> sounds slightly surprising > > Isn't it generally true that a mode function is called both when > turning a mode on and when [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 13641 Cc: 13641@debbugs.gnu.org, drew.adams@oracle.com 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: -3.3 (---) Eli Zaretskii writes: >> The mode is called both on entering and exiting the minibuffer, which >> sounds slightly surprising > > Isn't it generally true that a mode function is called both when > turning a mode on and when turning it off? Then why is the above > surprising? `minibuffer-inactive-mode' is a major mode, so I don't know whether the concept "turning it off" makes sense? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 11:16:14 2021 Received: (at 13641) by debbugs.gnu.org; 12 Aug 2021 15:16:15 +0000 Received: from localhost ([127.0.0.1]:39738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECRK-00063S-MV for submit@debbugs.gnu.org; Thu, 12 Aug 2021 11:16:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECRI-0005wK-1R for 13641@debbugs.gnu.org; Thu, 12 Aug 2021 11:16:13 -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=Nt2xtR7ScsvoMIImvQXBVy1hXXMDK/V64Qrh1zSVkUM=; b=Pu9AEHrcs4Yh4+AmH+fHGtmRfL GWSz1xjORv8DuMe6/CMqWn6LZJSO2P61QiH4xyVsINe5wkSxs6dOGDcA61jCQ/rVP0oldGxmI9Pu4 glVrAsl/vu8rgxkVp5WaXElaPE+xV7V/C8FS4psLWQ1MioUWFSPRQHJfx1RYplH1YdTg=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mECR6-0007Lf-PC; Thu, 12 Aug 2021 17:16:05 +0200 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#13641: 24.3.50; `minibuffer-inactive-mode' - hook seems wrong References: <1FC09B5AA7D44DCDA241D3947B30BFA1@us.oracle.com> <87v95cm5q5.fsf@gnus.org> Date: Thu, 12 Aug 2021 17:16:00 +0200 In-Reply-To: <87v95cm5q5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 15 Jul 2021 08:49:38 +0200") Message-ID: <87tujuhexb.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: Lars Ingebrigtsen writes: > Perhaps the doc string of `minibuffer-inactive-mode' should mention that > it may be called several times, and that people looking at the mode's > hook should probably be looking at minibuffer-exit- [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 13641 Cc: 13641@debbugs.gnu.org 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: -3.3 (---) Lars Ingebrigtsen writes: > Perhaps the doc string of `minibuffer-inactive-mode' should mention that > it may be called several times, and that people looking at the mode's > hook should probably be looking at minibuffer-exit-hook instead? Now done in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 11:16:21 2021 Received: (at control) by debbugs.gnu.org; 12 Aug 2021 15:16:21 +0000 Received: from localhost ([127.0.0.1]:39741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECRN-00066F-TZ for submit@debbugs.gnu.org; Thu, 12 Aug 2021 11:16:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mECRL-0005zj-Ja for control@debbugs.gnu.org; Thu, 12 Aug 2021 11:16:15 -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=7DM5tDY8Iutx8ReURdZMs5bPdnEOJwbwVBTK5Q7Sonw=; b=UqTkC526Jx6RU5ZrLiYLS7YJKm vDbMO2eOEa0em6bOtkS7SVklROj2AwgmE/FQfTZQKsmKTqruDIhRO8wJOjnX+DFQwSyk9IqeysQY0 kLNjhPNhoVcku60yyjy0Vnqx/FxMZ6Ki4k8Tc4nPUGIvZRycss3TdUEGLR5wP43oDu58=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mECRE-0007O1-1q for control@debbugs.gnu.org; Thu, 12 Aug 2021 17:16:10 +0200 Date: Thu, 12 Aug 2021 17:16:07 +0200 Message-Id: <87sfzehex4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #13641 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 13641 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: -2.3 (--) 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: -3.3 (---) close 13641 28.1 quit From unknown Tue Jun 24 20:52:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Sep 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator