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

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

[nongnu] elpa/helm 82c6cc87c0: Allow appending to existing wfnames-buffe


From: ELPA Syncer
Subject: [nongnu] elpa/helm 82c6cc87c0: Allow appending to existing wfnames-buffer
Date: Fri, 19 May 2023 01:01:28 -0400 (EDT)

branch: elpa/helm
commit 82c6cc87c0431f62b253a22296402dc69713e5bb
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Allow appending to existing wfnames-buffer
---
 helm-files.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-files.el b/helm-files.el
index 62355ecbf7..e6365ed909 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -106,6 +106,7 @@
 (defvar tramp-tolerate-tilde)
 (defvar password-cache)
 (defvar helm-fd-executable)
+(defvar wfnames-buffer)
 
 ;;; Internal vars
 ;;
@@ -3064,7 +3065,8 @@ editing absolute fnames in previous Emacs versions."
   "Edit marked fnames with `Wfnames' package."
   (cl-assert (require 'wfnames nil t) nil "Wfnames package not found")
   (let ((marked (helm-marked-candidates :with-wildcard t)))
-    (wfnames-setup-buffer marked)))
+    (wfnames-setup-buffer
+     marked #'switch-to-buffer (buffer-live-p (get-buffer wfnames-buffer)))))
 
 (defun helm-ff-edit-marked-files (candidate)
   "Edit marked files with `helm-ff-edit-marked-files-fn' fn."



reply via email to

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