From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Confused by y-or-n-p Date: Fri, 25 Dec 2020 13:32:49 +0200 Message-ID: <83bleinmse.fsf@gnu.org> References: <834kkcr1eo.fsf@gnu.org> <43b24209-fa65-0e26-7cbd-f99175a7ffd8@gmx.at> <87wnx7j5is.fsf@mail.linkov.net> <83im8qnyca.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19803"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, rms@gnu.org, juri@linkov.net To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 25 12:34:42 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kslMo-00052X-Nb for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 12:34:42 +0100 Original-Received: from localhost ([::1]:34674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kslMn-0001QH-Qv for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 06:34:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kslLR-0000Zx-Ei for emacs-devel@gnu.org; Fri, 25 Dec 2020 06:33:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33607) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kslLR-0000MN-6F; Fri, 25 Dec 2020 06:33:17 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1567 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kslLG-0001Lx-BQ; Fri, 25 Dec 2020 06:33:06 -0500 In-Reply-To: (message from martin rudalics on Fri, 25 Dec 2020 10:07:17 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261737 Archived-At: > Cc: emacs-devel@gnu.org, rms@gnu.org > From: martin rudalics > Date: Fri, 25 Dec 2020 10:07:17 +0100 > > >> (defun minibuffer-lock () > >> (when (active-minibuffer-window) > >> (select-window (active-minibuffer-window)))) > >> > >> (add-hook 'post-command-hook #'minibuffer-lock) > > > > Would something like that work to give users an option discussed in > > this thread for y-or-n-p? > > There are two orthogonal issues here: Whether to enable recursive > minibuffers and whether to allow leaving the minibuffer window while > asking a 'y-or-n-p' question. The above addresses the latter only. Isn't that enough to solve the problem which started this thread?