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#65980: 30.0.50; C-e behaves surprisingly in minibuffer Date: Fri, 15 Sep 2023 08:40:25 +0300 Message-ID: <83bke4kn92.fsf@gnu.org> References: <877cos8zqf.fsf@rub.de> <83edj0ll7z.fsf@gnu.org> <8734zg8p9m.fsf@rub.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4130"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65980@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 15 07:42:17 2023 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 1qh1aq-0000uB-SU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Sep 2023 07:42:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qh1aX-00085h-Me; Fri, 15 Sep 2023 01:41:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh1aW-00085V-CF for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 01:41:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qh1aW-0004SJ-40 for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 01:41:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qh1ac-0003vJ-Aq for bug-gnu-emacs@gnu.org; Fri, 15 Sep 2023 01:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Sep 2023 05:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65980 X-GNU-PR-Package: emacs Original-Received: via spool by 65980-submit@debbugs.gnu.org id=B65980.169475646415008 (code B ref 65980); Fri, 15 Sep 2023 05:42:02 +0000 Original-Received: (at 65980) by debbugs.gnu.org; 15 Sep 2023 05:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:41818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh1Zg-0003u0-32 for submit@debbugs.gnu.org; Fri, 15 Sep 2023 01:41:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh1Ze-0003tP-Fg for 65980@debbugs.gnu.org; Fri, 15 Sep 2023 01:41:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh1ZM-0004NX-61; Fri, 15 Sep 2023 01:40:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gWzYIYzN5nwrCEQguk3DJWI1+a/bd4iv2LoS18apSsM=; b=e2B7TIJcfRmI vt5HGQalnRp1knsvWsCz24hxaohcPKbSPxVSqXXMaGT1eDU8aBUJb4nhGMstjJDfrfksseWa6qp9N 5UOutkBK91gAfNKZBnUsIyASXrQQATzN9V+JaAYvT+dcTpOf0sTOOtyukOGB1gPZD/Q6Pp8k67NY6 72x9hdOm5Tf2NjecxWhEtqzEbXY3ljOtdZQGhhSMrBz/EYyNvSdAIonL1tAkqiabKok3h2PhtB3Ee 2Y5M3wkJvGQBjzw6z5DI5+8BGmxjd0dpCNuzOFtqxiCucUr5FaMOr3Ng0Cszuch+VvF/zcrWoJEyh 31hY93213sjDnyV3LDpz/Q==; In-Reply-To: <8734zg8p9m.fsf@rub.de> (message from Stephen Berman on Thu, 14 Sep 2023 22:37:41 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270485 Archived-At: > From: Stephen Berman > Cc: 65980@debbugs.gnu.org > Date: Thu, 14 Sep 2023 22:37:41 +0200 > > > It's because of fields. If you want this to work disregarding fields, > > set inhibit-field-text-motion non-nil, and then C-a and C-e will do > > what you expect even if you enter the prompt (which has the field > > property). > > Yes, that makes C-e in step 6 work the same as in step 2, but it doesn't > explain why the two cases are different. The point of my patch is to > make the behavior of C-e in the minibuffer the same in both cases. It's > a change for the benefit of Emacs users, not for Elisp programmers. Do > you know of any unwanted consequences of making such a change? Your patch changes one of the subroutines of next-line and previous-line. Those by now became very complex creatures, and handle many different cases of vertical cursor motion (with and without visual-line-mode, with and without line truncation, with and without R2L text, etc.) So I hesitate to even consider it for this obscure use case. I'd be much happier if the change was in move-beginning-of-line and move-end-of-line instead, so that it wouldn't have any chance of affecting other commands. Could you try to come up with such a change instead?