From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46583: 28.0.50; nested minibuffers Date: Wed, 17 Feb 2021 20:48:08 +0200 Organization: LINKOV.NET Message-ID: <87v9aqil93.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46583@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 17 20:11:28 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 1lCSER-0006LQ-Mw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 20:11:27 +0100 Original-Received: from localhost ([::1]:34830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCSEQ-00043Y-PK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 14:11:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCSE3-00042m-1g for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 14:11:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCSE2-0003tZ-Qy for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 14:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCSE2-0003wN-Mc for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 14:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2021 19:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46583 X-GNU-PR-Package: emacs Original-Received: via spool by 46583-submit@debbugs.gnu.org id=B46583.161358900314998 (code B ref 46583); Wed, 17 Feb 2021 19:11:02 +0000 Original-Received: (at 46583) by debbugs.gnu.org; 17 Feb 2021 19:10:03 +0000 Original-Received: from localhost ([127.0.0.1]:44966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCSD5-0003tp-F1 for submit@debbugs.gnu.org; Wed, 17 Feb 2021 14:10:03 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCSD3-0003tG-62 for 46583@debbugs.gnu.org; Wed, 17 Feb 2021 14:10:01 -0500 X-Originating-IP: 91.129.96.116 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id AC995FF80C; Wed, 17 Feb 2021 19:09:53 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Tue, 16 Feb 2021 23:03:45 -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:200213 Archived-At: > I save a file that is read-only, so I am asked > > File phones is write-protected; try to save anyway? (yes or no) > > Then I type C-x b and it tries to read a buffer name. > > But enable-recursive-minibuffers is nil! Let-binding enable-recursive-minibuffers temporarily to t was necessary to fix bug#17272/bug#19064. So when the minibuffer is already activated, and a minibuffer command wants to ask a question, displaying another recursive minibuffer with such question should override the value of enable-recursive-minibuffers. But you found the problem that is a side-effect of this fix. The problem is that currently it's impossible for a command to override enable-recursive-minibuffers only for its own use, while keeping it disabled for more recursive minibuffer calls. Maybe enable-recursive-minibuffers should support a numeric value that is decremented in every recursive minibuffer calls until reaching zero value that disables more recursive calls? Then a command that needs to use the recursive minibuffer could let-bind enable-recursive-minibuffers to 1, allowing this only for own use, while it will be 0 in more recursive calls.