From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output Date: Wed, 18 Apr 2018 09:10:52 +0300 Message-ID: <8336zt2ger.fsf@gnu.org> References: <87bmhleki3.fsf@gmail.com> <87lgdlh996.fsf@mouse.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1524031812 5859 195.159.176.226 (18 Apr 2018 06:10:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 06:10:12 +0000 (UTC) Cc: alex.branham@gmail.com, 30212@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 08:10:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8gIC-0001SG-4R for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 08:10:08 +0200 Original-Received: from localhost ([::1]:33399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8gKI-0002WZ-I0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 02:12:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8gK9-0002Vc-8F for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 02:12:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8gK4-00020c-8e for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 02:12:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8gK4-00020Y-4z for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 02:12:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8gK3-0006dk-QC for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 02:12:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2018 06:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix patch Original-Received: via spool by 30212-submit@debbugs.gnu.org id=B30212.152403186425455 (code B ref 30212); Wed, 18 Apr 2018 06:12:02 +0000 Original-Received: (at 30212) by debbugs.gnu.org; 18 Apr 2018 06:11:04 +0000 Original-Received: from localhost ([127.0.0.1]:58367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8gJ0-0006c9-MH for submit@debbugs.gnu.org; Wed, 18 Apr 2018 02:11:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8gIv-0006bt-TI for 30212@debbugs.gnu.org; Wed, 18 Apr 2018 02:10:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8gIl-00015L-Qw for 30212@debbugs.gnu.org; Wed, 18 Apr 2018 02:10:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8gIl-00015H-Mi; Wed, 18 Apr 2018 02:10:43 -0400 Original-Received: from [176.228.60.248] (port=3346 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f8gIl-0001Hx-6M; Wed, 18 Apr 2018 02:10:43 -0400 In-reply-to: <87lgdlh996.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Tue, 17 Apr 2018 22:24:05 +0200) 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145552 Archived-At: > From: Lars Ingebrigtsen > Date: Tue, 17 Apr 2018 22:24:05 +0200 > Cc: 30212@debbugs.gnu.org > > Alex Branham writes: > > > Since shell commands move point, I find it useful to push the mark so > > that I can navigate around different output using C-u C-SPC. This > > patch adds the push-mark call that's necessary to > > shell-command--save-pos-or-erase. > > [...] > > > (when pos > > + (push-mark pos t) > > (goto-char (point-max)) > > Hm... I don't think it would be a good idea to set the mark > unexpectedly -- people have certain expectations on what commands set > the mark, and setting it for every command in shell mode would be > unusual and get in the way of people's work habits, I think. If the commands in questions tend to move very far away, it is accepted Emacs behavior to push a mark before such large moves.