]> git.eshelyaron.com Git - emacs.git/commitdiff
ibuffer-unmark-backward: Unmark the region when is active
authorTino Calancha <tino.calancha@gmail.com>
Wed, 7 Dec 2016 12:36:38 +0000 (21:36 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Wed, 7 Dec 2016 12:36:38 +0000 (21:36 +0900)
* 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).

lisp/ibuffer.el

index 8898afd4fbf610c410b31081ccdce960e1285f89..ef1ef4b8aeb8c6583b81ac19207fae33fe5b5acc 100644 (file)
@@ -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)