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

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

[nongnu] elpa/helm fbedd3f680 1/2: No need to set helm-current-error in


From: ELPA Syncer
Subject: [nongnu] elpa/helm fbedd3f680 1/2: No need to set helm-current-error in next-error fns
Date: Thu, 21 Jul 2022 02:58:44 -0400 (EDT)

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

    No need to set helm-current-error in next-error fns
    
    as it is done in jump fns called in these functions.
---
 helm-grep.el  | 3 ++-
 helm-occur.el | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/helm-grep.el b/helm-grep.el
index 5f3cd481e1..b222f96529 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -944,7 +944,8 @@ This is the `next-error-function' for `helm-grep-mode'."
     (helm-aif (funcall fun (point) 'helm-grep-fname)
         (progn
           (goto-char it)
-          (setq helm-current-error (point-marker))
+          ;; `helm-current-error' is set in
+          ;; `helm-grep-mode-jump'.
           (helm-grep-mode-jump))
       (user-error "No more matches"))))
 (put 'helm-grep-next-error 'helm-only t)
diff --git a/helm-occur.el b/helm-occur.el
index 5c89e157fb..14a831b645 100644
--- a/helm-occur.el
+++ b/helm-occur.el
@@ -717,7 +717,8 @@ This is the `next-error-function' for `helm-occur-mode'."
         (progn
           (goto-char it)
           (forward-line 0)
-          (setq helm-current-error (point-marker))
+          ;; `helm-current-error' is set in
+          ;; `helm-occur-mode-goto-line'.
           (helm-occur-mode-goto-line))
       (user-error "No more matches"))))
 



reply via email to

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