From: Gustav Hållberg Date: Mon, 8 Dec 2008 20:24:37 +0000 (+0100) Subject: stgit.el: Add stgit-unmark-down X-Git-Tag: v0.15-rc1~86 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/9b151b27a360a22177b8b5336ead5658ef0bf5e9 stgit.el: Add stgit-unmark-down Signed-off-by: Gustav Hållberg Signed-off-by: Karl Hasselström --- diff --git a/contrib/stgit.el b/contrib/stgit.el index 4d957c3..9e92ad7 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -161,7 +161,8 @@ (unless stgit-mode-map (mapc (lambda (arg) (define-key stgit-mode-map (car arg) (cdr arg))) '((" " . stgit-mark) ("m" . stgit-mark) - ("\d" . stgit-unmark) + ("\d" . stgit-unmark-up) + ("u" . stgit-unmark-down) ("?" . stgit-help) ("h" . stgit-help) ("p" . previous-line) @@ -257,13 +258,19 @@ (defun stgit-mark () (stgit-reload)) (next-line)) -(defun stgit-unmark () - "Mark the patch on the previous line" +(defun stgit-unmark-up () + "Remove mark from the patch on the previous line" (interactive) (forward-line -1) - (let ((patch (stgit-patch-at-point))) - (stgit-remove-mark patch) - (stgit-reload))) + (stgit-remove-mark (stgit-patch-at-point)) + (stgit-reload)) + +(defun stgit-unmark-down () + "Remove mark from the patch on the current line" + (interactive) + (stgit-remove-mark (stgit-patch-at-point)) + (forward-line) + (stgit-reload)) (defun stgit-rename (name) "Rename the patch under point"