]> git.eshelyaron.com Git - emacs.git/commit
Ibuffer: Erase output buffer before shell commands
authorTino Calancha <tino.calancha@gmail.com>
Thu, 9 Feb 2017 09:14:10 +0000 (18:14 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 9 Feb 2017 09:14:10 +0000 (18:14 +0900)
commitd9fd1d32632816aa7833bcfcc116a0a01a53a4b7
tree4a8cab4c595931f6cdc485a0786bef78e22bc7f2
parent1e23bf5c513fafb9d14a8e07232101515386a912
Ibuffer: Erase output buffer before shell commands

* lisp/ibuf-macs.el (define-ibuffer-op): Add keyword arguments
BEFORE and AFTER; they are forms to run before/after the operation.
* lisp/ibuf-ext.el (ibuffer--maybe-erase-shell-cmd-output):
New defun; if shell-command-dont-erase-buffer is nil, then
erase shell command output buffer.
(ibuffer-do-shell-command-pipe, ibuffer-do-shell-command-file): Use it.
lisp/ibuf-ext.el
lisp/ibuf-macs.el