[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30212: 26.0.91; [PATCH] push mark before moving point in shell outpu
From: |
Alex Branham |
Subject: |
bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output |
Date: |
Mon, 22 Jan 2018 13:55:32 -0600 |
User-agent: |
mu4e 0.9.18; emacs 26.0.91 |
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 <branham@utexas.edu>
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
0001-lisp-simple.el-shell-command-save-pos-or-erase-push-.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#30212: 26.0.91; [PATCH] push mark before moving point in shell output,
Alex Branham <=