From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis 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, 5 Dec 2020 11:08:25 +0300 Message-ID: References: <86v9dhdz04.fsf@protected.rcdrun.com> <83r1o4d77j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35099"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: 45044@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 09:14:11 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 1klShm-00091D-Ot for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 09:14:10 +0100 Original-Received: from localhost ([::1]:41904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klShl-0005jr-AJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 03:14:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klShe-0005ji-KB for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klShe-0006Lu-DM for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klShe-000443-6H for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 03:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Dec 2020 08:14:02 +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.160715599715558 (code B ref 45044); Sat, 05 Dec 2020 08:14:02 +0000 Original-Received: (at 45044) by debbugs.gnu.org; 5 Dec 2020 08:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:46492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klSgv-00042s-A4 for submit@debbugs.gnu.org; Sat, 05 Dec 2020 03:13:17 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:58635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klSgs-00042d-VN for 45044@debbugs.gnu.org; Sat, 05 Dec 2020 03:13:16 -0500 Original-Received: from localhost ([::ffff:197.157.0.57]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0007.000000005FCB4114.00003B68; Sat, 05 Dec 2020 08:13:07 +0000 Content-Disposition: inline In-Reply-To: <83r1o4d77j.fsf@gnu.org> 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:195021 Archived-At: * Eli Zaretskii [2020-12-05 10:49]: > > From: Jean Louis > > Date: Sat, 05 Dec 2020 00:47:55 +0300 > > > > (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. 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. 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. 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.