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

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

[nongnu] elpa/bash-completion cc9a3dcab4 204/313: Stop cluttering the Ba


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion cc9a3dcab4 204/313: Stop cluttering the Bash history
Date: Sat, 3 Dec 2022 10:59:31 -0500 (EST)

branch: elpa/bash-completion
commit cc9a3dcab460d1a435f33242dc1f2ca0690ae794
Author: montag451 <montag451@laposte.net>
Commit: montag451 <montag451@laposte.net>

    Stop cluttering the Bash history
---
 bash-completion.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index bffd8c683e..b8351f975d 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1364,7 +1364,10 @@ and would like bash completion in Emacs to take these 
changes into account."
         (comint-preoutput-filter-functions '(bash-completion--output-filter)))
     (with-current-buffer (bash-completion--get-buffer process)
       (erase-buffer)
-      (comint-send-string process (concat commandline "; echo -e \"\v$?\"" 
"\n"))
+      (comint-send-string process (concat
+                                   commandline
+                                   "; echo -e \"\v$?\""
+                                   "; history -d -1\n"))
       (unless (bash-completion--wait-for-output process prompt-regex timeout)
         (error (concat
                 "Timeout while waiting for an answer from "



reply via email to

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