From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39627: [PATCH] Skip shell prompt on current line even if it's protected Date: Fri, 21 Feb 2020 10:56:11 +0200 Message-ID: <83k14gjp3o.fsf@gnu.org> References: <20200215231359.83506-1-steven@stebalien.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="95085"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39627-done@debbugs.gnu.org To: Steven Allen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 21 09:57:18 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 1j547a-000Oeb-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 09:57:18 +0100 Original-Received: from localhost ([::1]:54006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j547Z-0000r7-63 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 03:57:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49093) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j547L-0000h7-PB for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 03:57:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j547K-0000W7-Lm for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 03:57:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j547K-0000Un-9z for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 03:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j547K-0003yc-AT for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 03:57:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2020 08:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 39627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 39627@debbugs.gnu.org, eliz@gnu.org, steven@stebalien.com Original-Received: via spool by 39627-done@debbugs.gnu.org id=D39627.158227539415240 (code D ref 39627); Fri, 21 Feb 2020 08:57:02 +0000 Original-Received: (at 39627-done) by debbugs.gnu.org; 21 Feb 2020 08:56:34 +0000 Original-Received: from localhost ([127.0.0.1]:46358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j546s-0003xk-4O for submit@debbugs.gnu.org; Fri, 21 Feb 2020 03:56:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j546q-0003xV-LP for 39627-done@debbugs.gnu.org; Fri, 21 Feb 2020 03:56:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j546l-0006Zt-AN; Fri, 21 Feb 2020 03:56:27 -0500 Original-Received: from [176.228.60.248] (port=4593 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j546f-00006t-Vu; Fri, 21 Feb 2020 03:56:24 -0500 In-reply-to: <20200215231359.83506-1-steven@stebalien.com> (message from Steven Allen on Sat, 15 Feb 2020 15:13:59 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176351 Archived-At: > From: Steven Allen > Date: Sat, 15 Feb 2020 15:13:59 -0800 > > * lisp/eshell/em-prompt.el (eshell-previous-prompt): Really go to the > beginning of the line, even if it's protected. > > When the eshell prompt is protected (e.g., with rear non-sticky, > inhibited movements, etc.), `beginning-of-line' won't move to the > actual beginning of the line and therefore won't skip over the > prompt. This change simply switches to (forward-line 0). Thanks, pushed to the emacs-27 branch. Please note that I needed to massage your log message a little, to make it more according to our conventions (described in CONTRIBUTE). Please study the changes I made and try to follow this style in the future.