Skip to content

Commit

Permalink
Disable ansi-color-compilation-filter in Urgrep buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed Oct 25, 2024
1 parent 7e452a8 commit ae3c5e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Urgrep News

## v0.5.2 (in progress)

### Bug fixes
- Disable `ansi-color-compilation-filter` in Urgrep buffers

---

## v0.5.1 (2024-08-22)

### Bug fixes
Expand Down
3 changes: 2 additions & 1 deletion urgrep.el
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@ See `compilation-error-regexp-alist' for format details.")
(when-let ((tool-setup (urgrep--get-prop 'process-setup urgrep-current-tool)))
(funcall tool-setup))
(setq-local urgrep-num-matches-found 0
compilation-exit-message-function #'urgrep-exit-message)
compilation-exit-message-function #'urgrep-exit-message
ansi-color-for-compilation-mode nil)
(run-hooks 'urgrep-setup-hook))

(defun urgrep-exit-message (status code msg)
Expand Down

0 comments on commit ae3c5e2

Please sign in to comment.