[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/urgrep 133d308eec 004/115: Don't add `-face' to face na
From: |
ELPA Syncer |
Subject: |
[elpa] externals/urgrep 133d308eec 004/115: Don't add `-face' to face names |
Date: |
Wed, 10 May 2023 03:00:37 -0400 (EDT) |
branch: externals/urgrep
commit 133d308eecdfa913ad3634dcb6cf5d4884bb60cd
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
Don't add `-face' to face names
---
urgrep.el | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/urgrep.el b/urgrep.el
index 3557757581..40237272fd 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -44,15 +44,15 @@
:type 'boolean
:group 'urgrep)
-(defface urgrep-hit-face '((t :inherit compilation-info))
+(defface urgrep-hit '((t :inherit compilation-info))
"Face for matching files."
:group 'urgrep)
-(defface urgrep-match-count-face '((t :inherit compilation-info))
+(defface urgrep-match-count '((t :inherit compilation-info))
"Face for match counts."
:group 'urgrep)
-(defface urgrep-match-face '((t :inherit match))
+(defface urgrep-match '((t :inherit match))
"Face for matching text."
:group 'urgrep)
@@ -104,7 +104,7 @@
(defconst urgrep-mode-line-matches
`(" [" (:propertize (:eval (int-to-string urgrep-num-matches-found))
- face urgrep-match-count-face
+ face urgrep-match-count
help-echo "Number of matches so far")
"]"))
@@ -113,7 +113,7 @@
(0 '(face nil compilation-message nil help-echo nil mouse-face nil) t))
("^Urgrep finished with \\(?:\\(\\(?:[0-9]+ \\)?match\\(?:es\\)?
found\\)\\|\\(no matches found\\)\\).*"
(0 '(face nil compilation-message nil help-echo nil mouse-face nil) t)
- (1 'urgrep-match-count-face nil t)
+ (1 'urgrep-match-count nil t)
(2 'compilation-warning nil t))
("^Urgrep \\(exited
abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code
\\([0-9]+\\)\\)?.*"
(0 '(face nil compilation-message nil help-echo nil mouse-face nil) t)
@@ -128,7 +128,7 @@
"Look forwards for the match highlight to compute the beginning column."
(let* ((beg (match-end 0))
(end (save-excursion (goto-char beg) (line-end-position)))
- (mbeg (text-property-any beg end 'font-lock-face 'urgrep-match-face)))
+ (mbeg (text-property-any beg end 'font-lock-face 'urgrep-match)))
(when mbeg
(- mbeg beg))))
@@ -136,7 +136,7 @@
"Look forwards for the match highlight to compute the ending column."
(let* ((beg (match-end 0))
(end (save-excursion (goto-char beg) (line-end-position)))
- (mbeg (text-property-any beg end 'font-lock-face 'urgrep-match-face))
+ (mbeg (text-property-any beg end 'font-lock-face 'urgrep-match))
(mend (and mbeg (next-single-property-change mbeg 'font-lock-face nil
end))))
(when mend
@@ -229,8 +229,7 @@ This function is called from `compilation-filter-hook'."
;; Highlight matches and delete ANSI escapes.
(while (re-search-forward "\033\\[0?1;31m\\(.*?\\)\033\\[0?m" end 1)
(replace-match
- (propertize (match-string 1) 'face nil 'font-lock-face
- 'urgrep-match-face)
+ (propertize (match-string 1) 'face nil 'font-lock-face
'urgrep-match)
t t)
(cl-incf urgrep-num-matches-found))
;; Highlight matching filenames and delete ANSI escapes.
@@ -238,8 +237,8 @@ This function is called from `compilation-filter-hook'."
(goto-char beg)
(while (re-search-forward "\033\\[1;32m\\(.*?\\)\033\\[0?m" end 1)
(replace-match
- (propertize (match-string 1) 'face nil 'font-lock-face
- 'urgrep-hit-face 'urgrep-file-name t)
+ (propertize (match-string 1) 'face nil 'font-lock-face 'urgrep-hit
+ 'urgrep-file-name t)
t t)))
;; Delete all remaining escape sequences.
@@ -250,7 +249,7 @@ This function is called from `compilation-filter-hook'."
(define-compilation-mode urgrep-mode "Urgrep"
"A compilation mode for various grep-like tools."
(setq-local compilation-process-setup-function 'urgrep-process-setup
- compilation-error-face 'urgrep-hit-face
+ compilation-error-face 'urgrep-hit
compilation-error-regexp-alist urgrep-regexp-alist
compilation-mode-line-errors urgrep-mode-line-matches
compilation-disable-input t
- [elpa] branch externals/urgrep created (now 7823d384e6), ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep ccd6fe0d4c 002/115: Add a basic keymap, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 8832dc103f 003/115: Add support for find/grep by delegating to Emacs' built-in `rgrep', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 133d308eec 004/115: Don't add `-face' to face names,
ELPA Syncer <=
- [elpa] externals/urgrep 4ec9d9febd 010/115: Fix behavior of temporarily overriding `urgrep-search-regexp', ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 7780887977 005/115: Add initial support for git grep, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep d965e6b848 007/115: Add the ability to toggle regexp mode when entering a search, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 764742fd14 006/115: Recurse submodules with git grep, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 6d9217c344 013/115: Rename urgrep-test.el to urgrep-tests.el, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep aba02cc3f9 017/115: Add support for ripgrep and ack, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 53d72fe09c 023/115: Don't cache tool results for hosts which can use VC-specific tools, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 266965a0a2 024/115: Add support for intelligent editing of previous search commands, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 350d6d1889 027/115: Add support for regexp-syntax and context with the grep backend, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 887114113c 001/115: Initial revision, ELPA Syncer, 2023/05/10