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.bugs Subject: bug#45044: 28.0.50; y-or-n-p-with-timout: allows me to go with the arrow to begin of the minibuffer Date: Sat, 05 Dec 2020 10:54:31 +0200 Message-ID: <83lfecd454.fsf@gnu.org> References: <86v9dhdz04.fsf@protected.rcdrun.com> <83r1o4d77j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="814"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45044@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 09:55:10 2020 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 1klTLR-000AeZ-NB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 09:55:09 +0100 Original-Received: from localhost ([::1]:49166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klTLQ-0002kd-Io for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 03:55:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klTLK-0002kB-B4 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klTLK-0003IM-1w for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klTLJ-00052a-VU for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2020 08:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45044 X-GNU-PR-Package: emacs Original-Received: via spool by 45044-submit@debbugs.gnu.org id=B45044.160715849519360 (code B ref 45044); Sat, 05 Dec 2020 08:55:01 +0000 Original-Received: (at 45044) by debbugs.gnu.org; 5 Dec 2020 08:54:55 +0000 Original-Received: from localhost ([127.0.0.1]:46524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klTLC-000527-QO for submit@debbugs.gnu.org; Sat, 05 Dec 2020 03:54:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klTLB-00051p-JI; Sat, 05 Dec 2020 03:54:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42898) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klTL6-0003Ds-3e; Sat, 05 Dec 2020 03:54:48 -0500 Original-Received: from [176.228.60.248] (port=4334 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1klTL5-0002qL-IT; Sat, 05 Dec 2020 03:54:47 -0500 In-Reply-To: (message from Jean Louis on Sat, 5 Dec 2020 11:08:25 +0300) 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:195022 Archived-At: tags 45044 notabug close 45044 thanks > Date: Sat, 5 Dec 2020 11:08:25 +0300 > From: Jean Louis > Cc: 45044@debbugs.gnu.org > > > > (y-or-n-p-with-timeout "No parent nodes, do you wish to exit? " 2 nil) > > > > > > It allows me, and it should not, to move cursor with arrow left to begin > > > of the buffer over the words "No parent nodes..." > > > > Why shouldn't it? > > I see that those reading functions allow user to go back. Myself > I did not maybe use for decades arrows or C-b to go back, as I > always used BACKSPACE and I am relying that backspace will not > bring me into impossible situation not to be on read-only text > when I am anyway just asked to enter something, and not to edit > the non-editable prompt. You cannot edit it, but you can move around there in non-destructive ways. > Thus from experience of using always BACKSPACE and BACKSPACE does > not allow me to move to the read-only prompt comes also the > expectation that arrows or C-b should not move cursor to the > prompt itself as it is not useful to be on prompt as I just want > to enter text. BACKSPACE deletes, so it is not allowed in read-only text. C-b doesn't modify the text, so it is allowed. It can come in handy if, for example, you want to copy (M-w) the entire contents of the minibuffer, or its portions that include the prompt. > The minibuffer also does not move cursor to begin of the prompt > when using C-a and when there is all that prevention for cursor > not to move to the prompt then C-b and left arrow makes me > surprised and it appears as unwanted behavior. C-a behaves specially in these cases. In particular, try this: C-a C-b C-a > Maybe it is wanted. To me it is rather unexpected due to habit. I > expect left arrow not to be able to move onto read-only text. This expectation is outdated since Emacs 21.1, where "fields" were introduced into Emacs. Read all about fields in the node "Fields" of the ELisp manual. I'm therefore closing this bug report.