From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#47150: [External] : bug#47150: 28.0.50; Incorrect major-mode in minibuffer Date: Mon, 22 Mar 2021 16:11:19 -0400 Message-ID: References: <877dm9nsii.fsf@gmail.com> <40f3c845-ba30-4112-bb3c-9c06c1f106d3@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37232"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "47150@debbugs.gnu.org" <47150@debbugs.gnu.org>, Alan Mackenzie , Sheng Yang To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 21:13:41 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 1lOQvk-0009Yt-48 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 21:13:40 +0100 Original-Received: from localhost ([::1]:52850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOQvj-00005e-3X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 16:13:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOQuB-0007Ch-0z for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 16:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOQuA-0002vN-CS for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lOQuA-0000BK-8N for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47150 X-GNU-PR-Package: emacs Original-Received: via spool by 47150-submit@debbugs.gnu.org id=B47150.1616443889613 (code B ref 47150); Mon, 22 Mar 2021 20:12:02 +0000 Original-Received: (at 47150) by debbugs.gnu.org; 22 Mar 2021 20:11:29 +0000 Original-Received: from localhost ([127.0.0.1]:58911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOQtd-00009l-1b for submit@debbugs.gnu.org; Mon, 22 Mar 2021 16:11:29 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOQtb-00009P-Ns for 47150@debbugs.gnu.org; Mon, 22 Mar 2021 16:11:28 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 568F3100236; Mon, 22 Mar 2021 16:11:22 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 88DEF100225; Mon, 22 Mar 2021 16:11:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1616443880; bh=wRgtCkFQYVIrG5DnU272X4rNRVtkAMr4TA5SJZJ2hTI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TuQlTzR0WFB1cabZd8uBcs62j/0OcSkI34lLc/vIjR00taoHQaR6mlVQfvFtyy0eM McabnFgYh+Ky2ppdvz2OiOl5YkEauYNcMb5ZgodkL0dqlD5QAXDj7Kt8fTqSfjCIuT a1QdTgqWYcSedTJ1XEuYET3SvhXaANcIPgMcd54DROTbhB0YeL9VNU9mHgn7WVk75o gaLSD82fBNESGUHiT0A3QUfxNU5CtN5Gk/9mqE8ilxcOlyF6I1L33lRRHGfE6Ma+c8 /gpByrbZEFdo/1dt5G0GTXsH9PIIwKII+CqEe56N+6usD8ebXqpphDb2Pe+hzL4bt/ CPUmO5+Fru6Lg== Original-Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3D2A912021E; Mon, 22 Mar 2021 16:11:20 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Mon, 22 Mar 2021 19:42:21 +0000") 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:202870 Archived-At: >> So a minibuffer isn't affected by what happened in its previous invocation. > Can you give a quick example? I don't think I've > ever noticed a minibuffer affected by what happened > in a previous invocation. Those problems have mostly been fixed indirectly by the introduction of `minibuffer-inactive-mode`, which happened to kill the local variables at the end of an activation. Before that (i.e. in Emacs<24) there were cases where `indent-line-function` was "inherited" from one minibuffer to the next. The remaining problems (that is, until Alan fixed it by re-instating fundamental-mode upon activation of a minibuffer) were those of an active minibuffer inheriting the settings from `minibuffer-inactive-mode`. > I thought you were saying it would be cleaner for _users_. > My question was/is how it would be cleaner for users. I don't think this should affect users either way (except indirectly by the likelihood of lingering corner case bugs). > Can I ask what's wrong with what I suggested: One mode, not two; just > change the name and provide a helpful doc-string that covers both > active and inactive? What's the benefit? Have you tried to implement it? Stefan