From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output Date: Mon, 22 Jan 2018 13:55:32 -0600 Message-ID: <87bmhleki3.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1516650905 16517 195.159.176.226 (22 Jan 2018 19:55:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2018 19:55:05 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 26.0.91 To: 30212@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 20:55:00 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 1ediB5-0003Iu-Q7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 20:54:48 +0100 Original-Received: from localhost ([::1]:33923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ediD6-0005lB-3l for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jan 2018 14:56:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ediCN-0005G7-UA for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:56:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ediCK-0000nx-MO for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:56:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ediCK-0000nq-I6 for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:56:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ediCK-0005sX-7j for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:56:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jan 2018 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151665094122562 (code B ref -1); Mon, 22 Jan 2018 19:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2018 19:55:41 +0000 Original-Received: from localhost ([127.0.0.1]:38508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ediBx-0005rq-88 for submit@debbugs.gnu.org; Mon, 22 Jan 2018 14:55:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ediBu-0005ra-S7 for submit@debbugs.gnu.org; Mon, 22 Jan 2018 14:55:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ediBo-0000bs-Rt for submit@debbugs.gnu.org; Mon, 22 Jan 2018 14:55:33 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ediBo-0000bh-NH for submit@debbugs.gnu.org; Mon, 22 Jan 2018 14:55:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ediBn-0004jt-6S for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:55:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ediBk-0000aB-4h for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:55:31 -0500 Original-Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:41406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ediBj-0000Zu-UB for bug-gnu-emacs@gnu.org; Mon, 22 Jan 2018 14:55:28 -0500 Original-Received: by mail-oi0-x234.google.com with SMTP id m83so4360279oik.8 for ; Mon, 22 Jan 2018 11:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=wyvR549zHc/ul1S37+zRqGclQ+tTjJ1HoCDhIwAbtu4=; b=KRFILE3feYwTjiBEfMJlvqaJey8+VX6wGu2uPg1Bbwf1n2l7BLsLgAL2CiMDwVXbRk pUYVeTRZ/mZuJUvbuGtLTrmaSd43KlLQpCEFk5VQpGgjuMAYv85wJkHfNI4mYlFg3h33 8U7AXuSNHlnWKunsLDy5/5Y1wGvebnyAjtHLP1JT2wF45AVMFAm4m8OWHPNtEE7BdwT4 0TOCZ19YIgcnmvm+FYZesV6sdSs4UpKX2q948/Wr8g74WpaeYz866kRi0EXOKhbVkuEy tZ3odCPp/dLhIn0NsvTeaVJ/cg/vrEoy1MKiPLeiUKBx8PRhkqOblH3ku1qf3L/hQlIx 9j3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=wyvR549zHc/ul1S37+zRqGclQ+tTjJ1HoCDhIwAbtu4=; b=nWEw0wo3lYsKlWrznpBAWkE+9JePrm7ALOvwBKmgx/5jXqRUzmb7+jx9HGwuLVx5M4 CZr39n+/8GhWHi6LC1+02bJUA+5v9MimRWaOmbIYT4zegm6DFqB9Anwch6lkB10O/7Qi vbfWI5ha5st/iZ86NxCzcuhQ/qjwEIeWv9vI3Sab59dWuSUcerteo77PbN7fTgAM3+W6 CEDxypwaWNyUGelue16bokAjKCFA2f/1Or7pHR4eT7h8uhTcgl/cXJmpUaO1OG335YOf 48YYVMv4LIFTRG7faIAh4+vEWF1//ELMXTsO3VclYn1I41StV6kIfADTsmeLV/oMnnbM jQMA== X-Gm-Message-State: AKwxytdRt673jfy9Zfwpa9/nEv6zCar43uoTe0k96OM7pk58uQvKo5rf bdra6/8GpOBPHt3plF9pjASEKWbF X-Google-Smtp-Source: AH8x226sRmaKPsB8LcsJhHWjEsK9Y1KvqMw81VCpyUL+hMCClegpmkQ5YY0qNJNhM8bSh8QkwuBFTQ== X-Received: by 10.202.114.66 with SMTP id p63mr4546989oic.202.1516650926402; Mon, 22 Jan 2018 11:55:26 -0800 (PST) Original-Received: from mars (nat-128-62-63-165.public.utexas.edu. [128.62.63.165]) by smtp.gmail.com with ESMTPSA id g50sm8137465otd.10.2018.01.22.11.55.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jan 2018 11:55:25 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:142389 Archived-At: --=-=-= Content-Type: text/plain 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. Thanks, Alex >From fc14474033fe1d678ae774ca77b61b80a3988610 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Mon, 22 Jan 2018 13:51:06 -0600 Subject: [PATCH] * lisp/simple.el (shell-command--save-pos-or-erase): push-mark then move point --- lisp/simple.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/simple.el b/lisp/simple.el index 3ac6b86381c..fdd56b67115 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3311,6 +3311,7 @@ shell-command--save-pos-or-erase (let ((inhibit-read-only t)) (erase-buffer) nil)))) (when pos + (push-mark pos t) (goto-char (point-max)) (push (cons (current-buffer) pos) shell-command-saved-pos)))) -- 2.16.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-simple.el-shell-command-save-pos-or-erase-push-.patch >From fc14474033fe1d678ae774ca77b61b80a3988610 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Mon, 22 Jan 2018 13:51:06 -0600 Subject: [PATCH] * lisp/simple.el (shell-command--save-pos-or-erase): push-mark then move point --- lisp/simple.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/simple.el b/lisp/simple.el index 3ac6b86381c..fdd56b67115 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3311,6 +3311,7 @@ shell-command--save-pos-or-erase (let ((inhibit-read-only t)) (erase-buffer) nil)))) (when pos + (push-mark pos t) (goto-char (point-max)) (push (cons (current-buffer) pos) shell-command-saved-pos)))) -- 2.16.0 --=-=-=--