emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/shell-command+ 64c0fcf 06/36: delete shell output inste


From: Stefan Monnier
Subject: [elpa] externals/shell-command+ 64c0fcf 06/36: delete shell output instead of killing it
Date: Fri, 25 Sep 2020 11:01:22 -0400 (EDT)

branch: externals/shell-command+
commit 64c0fcf4abdbd45880eac935da6db0ae911b8d6d
Author: Philip K <philip@warpmail.net>
Commit: Philip K <philip@warpmail.net>

    delete shell output instead of killing it
---
 bang.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bang.el b/bang.el
index 070018d..973d94f 100644
--- a/bang.el
+++ b/bang.el
@@ -142,7 +142,7 @@ insert a literal % quote it using a backslash."
             (t (shell-command command nil shell-command-default-error-buffer)))
       (when (or has-! has->)
         (with-current-buffer "*Shell Command Output*"
-          (kill-ring-save (point-min) (point-max))))
+          (delete-region (point-min) (point-max))))
       (unless (or num-! arg-!)
         (bang--remember-command command)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]