From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#17272: bug#19064: bug#17272: bug#19064: bug#17272: bug#19064: 25.0.50; `message' overwrites `y-or-n-p' prompt, so user misses it Date: Tue, 19 Nov 2019 23:38:20 +0000 Message-ID: References: <8ea0a3fa-5169-4493-bd54-3ebe47836a35@default> <87y4chjdop.fsf@gnus.org> <87o8ys3131.fsf@gnus.org> <875zjx6hs6.fsf@mail.linkov.net> <87sgmy3x22.fsf@gnus.org> <871rugbqmy.fsf@mail.linkov.net> <87d0dxyh7z.fsf@gnus.org> <53c55db5-d623-4946-af2e-d141e7bc7acd@default> <87sgmrpir5.fsf@web.de> <87mucya2a7.fsf@web.de> <87mucy4cb2.fsf@web.de> <621b98dc-0fe9-4eef-9e11-7580fb446e97@default> <87k1822ocn.fsf@web.de> <87lfsfmtk0.fsf@mail.linkov.net> <874kz3gibu.fsf@gnus.org> <87bltaw3xz.fsf@mail.linkov.net> <87r224x54p.fsf@mail.linkov.net> <87v9rgnv0o.fsf@gnus.org> <877e3vqx9r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="176557"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Michael Heerdegen , 17272@debbugs.gnu.org, Lars Ingebrigtsen , 19064@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 20 00:39:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXD5T-000jpB-Ho for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Nov 2019 00:39:11 +0100 Original-Received: from localhost ([::1]:52390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXD5R-0002sg-U7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2019 18:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45475) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXD5L-0002sG-9a for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 18:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXD5K-00013E-1j for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 18:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXD5J-000130-T6 for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 18:39:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXD5J-0004yn-Np for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 18:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2019 23:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 17272-submit@debbugs.gnu.org id=B17272.157420672119105 (code B ref 17272); Tue, 19 Nov 2019 23:39:01 +0000 Original-Received: (at 17272) by debbugs.gnu.org; 19 Nov 2019 23:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:48731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXD4y-0004y2-VJ for submit@debbugs.gnu.org; Tue, 19 Nov 2019 18:38:41 -0500 Original-Received: from mail-il1-f172.google.com ([209.85.166.172]:42418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iXD4v-0004xi-IN; Tue, 19 Nov 2019 18:38:39 -0500 Original-Received: by mail-il1-f172.google.com with SMTP id n18so273534ilt.9; Tue, 19 Nov 2019 15:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=51z1xrtrB2UI6g+gjGP+WUWcQbofg1MATSJm9ZHHVRI=; b=E0y/fIHXULuh38JOilOr4ujnvRyXdeVN0wpellSVZUAWIMSywREeGKXU1juRMR9V3k KN3y/dwoUbbEar8scEaODrh0JFd7VEo0R6/yoIrTaGeyGQ5kBZjcf82tOqhgKyNPtU+0 5rFc2u7ND2vmD7rl+Zvt4JykwPbeGvjk3XpJBN1mBMHGKomLmNsPyJCTnH//D3abp8nZ bmqlubT01l+231us/eBZvP4P34ACN3vNOGfb8N7EFhALz/KunW1+epELZgdOvFgJR5Nr E1HtZ+v9/GmpgH/5ba2r0tjHeDHV0CtPiWtTwtLK5MxsyjSENyMvYM3Lzth50SUSR69W K/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=51z1xrtrB2UI6g+gjGP+WUWcQbofg1MATSJm9ZHHVRI=; b=CBZBSzmlF0P8RZd335Cp9bqoy8wgZIfR9oNOCLvA1ceRmivRO+qUG+eAj8Mm2q1HLL 3EQNLbRUFZU934a1YkzRYjW82AHZl+vlWiTG8mSiTcDYVgn3FY4nO/RqHIhij5fwCKnn LF9BMveR+vJb+eq7RHnWpn8ls1sEDRUQpEKSe8zGL6i0fhRUnonFXRgV8PTDsm1Ml6yl 1HpJDRrKuzDIohvUu3UskL95gOHiRKKjzS3ZsHhbOvqTB58AIXpUXUq0C+Wf1B6i7MPJ ldql04gwGeE/WSjaPQ2eqJVOpg02k6vBfBeHr6XFY6gQo/K6om+0VRYs0ZkfFDLTCZdu Wyyg== X-Gm-Message-State: APjAAAUoueOvT5QqFFjPyS8yOlebj30P2WK7KkgXHT8GVbnBtbI6odlh ZKE0F5SZe88Mr3cslUJti/tWS7wP6iNN8jv9PEE= X-Google-Smtp-Source: APXvYqzw990rUycByROw4zkF62pkWP9AxUnKuCmqvpErgJHhdY1qzP2HJrK57T1jcKoZyCbsLlq31GqXxqwmVN3UQ/U= X-Received: by 2002:a92:dd12:: with SMTP id n18mr403074ilm.9.1574206711770; Tue, 19 Nov 2019 15:38:31 -0800 (PST) In-Reply-To: <877e3vqx9r.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172031 Archived-At: On Tue, Nov 19, 2019 at 11:20 PM Juri Linkov wrote: > > > I can't confirm 100% if this is the right bug to report this to, but > > the recent changes by Juri, which make yes-or-no-p use the minibuffer > > for reading, break fido-mode's icomplete-magic-kill command > > (apologies if that's not the exact name). > > Please provide step-by-step recipe, it's hard to see what is wrong. > I tried everything, and don't see anything unusual. Sorry Juri, I was reporting from my mobile phone. An easy recipe: Emacs -Q M-x fido-mode (defalias 'yes-or-no-p 'y-or-n-p) ;; a common custmization C-x b C-k ;; to kill the Messages buffer Before your changes to `y-or-n-p` this worked well, afterwards I get the "Attempt to use minibuffer inside minibuffer" error. Bear in mind that fido-mode is very new. Also bear in mind that the problem is already present when yes-or-no-p is used. I think a good fix is for icomplete to do this (and for you to do nothing :-) ) diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 8410ca5c3e..bf1d69a4c5 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -241,6 +241,8 @@ icomplete-fido-kill (category (alist-get 'category (cdr md))) (all (completion-all-sorted-completions)) (thing (car all)) + (enable-recursive-minibuffers t) + (icomplete-mode nil) (action (pcase category (`buffer WDYT? Jo=C3=A3o