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

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

[elpa] externals/dtache 99fd5c5b5c 025/158: Make sure to erase the outpu


From: ELPA Syncer
Subject: [elpa] externals/dtache 99fd5c5b5c 025/158: Make sure to erase the output buffer
Date: Wed, 19 Jan 2022 18:57:41 -0500 (EST)

branch: externals/dtache
commit 99fd5c5b5c19cafa56bc1d8929cff6070a0f16ff
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Make sure to erase the output buffer
    
    This patch fixes the problem of not erasing the output buffer, meaning
    if the buffer is re-used it will start to contain multiple outputs.
---
 dtache.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dtache.el b/dtache.el
index c65c89e9bf..d6102d699b 100644
--- a/dtache.el
+++ b/dtache.el
@@ -264,6 +264,7 @@
         (progn
           (with-current-buffer (get-buffer-create buffer-name)
             (setq-local buffer-read-only nil)
+            (erase-buffer)
             (insert (dtache-session-output session))
             (setq-local default-directory (dtache--session-working-directory 
session))
             (dtache-log-mode)



reply via email to

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