From: Tino Calancha Date: Wed, 7 Dec 2016 12:36:38 +0000 (+0900) Subject: ibuffer-unmark-backward: Unmark the region when is active X-Git-Tag: emacs-26.0.90~1186 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0fa281fe2f3f104ec954dde096fd085eba42021f;p=emacs.git ibuffer-unmark-backward: Unmark the region when is active * lisp/ibuffer.el (ibuffer-unmark-backward): Use 'ibuffer-get-region-and-prefix'; call 'ibuffer-unmark-forward' with the region boundary as the first 2 arguments (Bug#24987). --- diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 8898afd4fbf..ef1ef4b8aeb 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -1431,11 +1431,11 @@ If point is on a group name, this function operates on that group." (interactive (ibuffer-get-region-and-prefix)) (ibuffer-mark-region-or-n-with-char start end arg ?\s)) -(defun ibuffer-unmark-backward (arg) - "Unmark the ARG previous buffers. +(defun ibuffer-unmark-backward (start end arg) + "Unmark the buffers in the region, or previous ARG buffers. If point is on a group name, this function operates on that group." - (interactive "p") - (ibuffer-unmark-forward nil nil (- arg))) + (interactive (ibuffer-get-region-and-prefix)) + (ibuffer-unmark-forward start end (- arg))) (defun ibuffer-mark-region-or-n-with-char (start end arg mark-char) (if (use-region-p)