branch: externals/urgrep commit 0de93bfdb9f5d6979a00cbbd1e93d55be7fb5c9a Author: Jim Porter <jporterb...@gmail.com> Commit: Jim Porter <jporterb...@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))))))