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:31:39 +0200 Message-ID: <83czyynmuc.fsf@gnu.org> References: <834kkcr1eo.fsf@gnu.org> <43b24209-fa65-0e26-7cbd-f99175a7ffd8@gmx.at> <87wnx7j5is.fsf@mail.linkov.net> <95b662f2-2492-4cf2-a09d-66b38b283db5@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14380"; 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:33:28 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 1kslLc-0003fP-5B for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 12:33:28 +0100 Original-Received: from localhost ([::1]:60918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kslLb-0000bf-6W for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Dec 2020 06:33:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kslKV-0008Eg-Ng for emacs-devel@gnu.org; Fri, 25 Dec 2020 06:32:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33534) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kslKT-0008KV-QE; Fri, 25 Dec 2020 06:32:17 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1495 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kslKC-0000Qj-Hs; Fri, 25 Dec 2020 06:32:02 -0500 In-Reply-To: <95b662f2-2492-4cf2-a09d-66b38b283db5@gmx.at> (message from martin rudalics on Fri, 25 Dec 2020 09:42:10 +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:261736 Archived-At: > Cc: Eli Zaretskii , Richard Stallman , > emacs-devel@gnu.org > From: martin rudalics > Date: Fri, 25 Dec 2020 09:42:10 +0100 > > > Here is a possible way to make the minibuffer modal: > > > > (defun minibuffer-lock () > > (when (active-minibuffer-window) > > (select-window (active-minibuffer-window)))) > > > > (add-hook 'post-command-hook #'minibuffer-lock) > > That's too harsh because it would affect all minibuffer interactions. Not if done only by the relevant commands/functions, right?