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

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

[elpa] externals/urgrep 0de93bfdb9 068/115: Fix use of wgrep on long urg


From: ELPA Syncer
Subject: [elpa] externals/urgrep 0de93bfdb9 068/115: Fix use of wgrep on long urgrep results
Date: Wed, 10 May 2023 03:00:45 -0400 (EDT)

branch: externals/urgrep
commit 0de93bfdb9f5d6979a00cbbd1e93d55be7fb5c9a
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    Fix use of wgrep on long urgrep results
    
    Previously, this looked for `compilation-message', but that's set lazily. 
Now,
    look for `compilation-handle-exit', which marks the exit status at the end 
of
    the buffer.
---
 urgrep-wgrep.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/urgrep-wgrep.el b/urgrep-wgrep.el
index 9da9592f1a..967f868130 100644
--- a/urgrep-wgrep.el
+++ b/urgrep-wgrep.el
@@ -101,9 +101,9 @@ This lets wgrep know what to ignore."
                            '(read-only t wgrep-header t))
       ;; Look for the end of the results.
       (goto-char (point-max))
-      (text-property-search-backward 'compilation-message)
+      (text-property-search-backward 'compilation-handle-exit)
       ;; If there's a footer, mark it.
-      (when (zerop (forward-line 1))
+      (unless (eobp)
         (add-text-properties (point) (point-max)
                              '(read-only t wgrep-footer t))))))
 



reply via email to

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