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: Sat, 16 Sep 2023 10:56:27 +0300 Message-ID: <83v8caimac.fsf@gnu.org> References: <877cos8zqf.fsf@rub.de> <83edj0ll7z.fsf@gnu.org> <8734zg8p9m.fsf@rub.de> <83bke4kn92.fsf@gnu.org> <87ttrv397d.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25606"; 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 Sat Sep 16 09:57:12 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 1qhQAx-0006TK-U2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Sep 2023 09:57:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhQAj-0008Ck-2r; Sat, 16 Sep 2023 03:56:57 -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 1qhQAh-0008BP-1z for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:56:55 -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 1qhQAg-0004u4-Pn for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:56:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhQAn-0005fU-LG for bug-gnu-emacs@gnu.org; Sat, 16 Sep 2023 03:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Sep 2023 07:57:01 +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.169485100921765 (code B ref 65980); Sat, 16 Sep 2023 07:57:01 +0000 Original-Received: (at 65980) by debbugs.gnu.org; 16 Sep 2023 07:56:49 +0000 Original-Received: from localhost ([127.0.0.1]:45315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhQAb-0005ez-GT for submit@debbugs.gnu.org; Sat, 16 Sep 2023 03:56:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhQAZ-0005ej-Qk for 65980@debbugs.gnu.org; Sat, 16 Sep 2023 03:56:48 -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 1qhQAN-0004q0-J7; Sat, 16 Sep 2023 03:56:35 -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=cED0PLFx0CtryJ0/j5JJYStSW8DKuMo5JXlYbgzelMI=; b=oc+hS9qPe2VC cPmSC4QBR09crj6q/hnpQB+Zxbu0SdgS147vzrtRRbSNQooYdTz+uiQ7Ih4iX/Vite3ueF4ps9huu XStiA+LbXdi30MSU4oaoNnPyZLwpd2oF3tNx526GoYJ3cAggiRM1mN5PK9ZZ6Qr+bC/oTWKox8ZmL 9tZyDGRYUNexP/RbsbWYTZPsMjT1sOY+kGX4nZDzV8AeVVu8pxSwb3vxMvY8+mUPDvjzg8438r6c4 iAYKECkNw3jFTsfKBVrcr4hTf/Qjr6fZxT2DbXd00+bsVWblo8u4N2icjClsg6JY5uF0Xuq5pnN7L t2Ytydk6N/u9CpLJx20Q9A==; In-Reply-To: <87ttrv397d.fsf@gmx.net> (message from Stephen Berman on Fri, 15 Sep 2023 14:35:50 +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:270590 Archived-At: > From: Stephen Berman > Cc: 65980@debbugs.gnu.org > Date: Fri, 15 Sep 2023 14:35:50 +0200 > > > 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? > > Sure. I think the easiest way is simply to take your observation about > inhibit-field-text-motion and confine it to the minibuffer: Thanks, please install your first patch on the emacs-29 branch. > However, when the text after the prompt ends before window-width, typing > C-e with point within the prompt still moves to the end of the text, > even with this patch. I currently don't see a way to confine the > movement to the prompt field in this case without changing line-move-1, > probably the code involving the test (zerop (vertical-motion 1)). I > could try to do that, but maybe it's better just to retain the current > behavior of move-end-of-line in the minibuffer, but make it consistent > with respect to the length of the text after the prompt, as the first > patch does. I agree.