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

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

[nongnu] elpa/helm fd7e458dc1 2/3: Fix helm-grep-mode--sentinel when rev


From: ELPA Syncer
Subject: [nongnu] elpa/helm fd7e458dc1 2/3: Fix helm-grep-mode--sentinel when reverting helm-grep-mode buffer
Date: Thu, 10 Feb 2022 03:02:33 -0500 (EST)

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

    Fix helm-grep-mode--sentinel when reverting helm-grep-mode buffer
    
    from somewhere else.
---
 helm-grep.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-grep.el b/helm-grep.el
index f1d82bf47a..958e057daf 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -921,7 +921,9 @@ Special commands:
 
 (defun helm-grep-mode--sentinel (process event)
   (when (string= event "finished\n")
-    (with-current-buffer (current-buffer)
+    (with-current-buffer (if (eq major-mode 'helm-grep-mode)
+                             (current-buffer)
+                           (next-error-find-buffer))
       (let ((inhibit-read-only t))
         (save-excursion
           (cl-loop for l in (with-current-buffer (process-buffer process)



reply via email to

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