@@ -47,7 +47,7 @@ Set this to an absolute path if the executable is not in your `PATH`."
4747
4848(defcustom crs-grep-default-filter " now"
4949 " Default filter for `crs-grep` when opening the CRs buffer.
50- Should be one of: all, crs, xcrs, now, soon, someday, invalid."
50+ Should be one of: all, crs, xcrs, now, soon, someday, invalid, summary ."
5151 :type
5252 '(choice
5353 (const " all" )
@@ -56,7 +56,8 @@ Should be one of: all, crs, xcrs, now, soon, someday, invalid."
5656 (const " now" )
5757 (const " soon" )
5858 (const " someday" )
59- (const " invalid" ))
59+ (const " invalid" )
60+ (const " summary" ))
6061 :group 'crs-grep )
6162
6263(defcustom crs-grep-enable-next-error-follow nil
@@ -158,6 +159,8 @@ Always a string, e.g. \"now\", \"all\", etc.")
158159 " emacs-grep"
159160 " --path-display-mode=absolute"
160161 (concat " --" crs-grep-current-filter))))
162+ (when (fboundp 'ansi-color-apply-on-region )
163+ (ansi-color-apply-on-region (point-min ) (point-max )))
161164 (if (eq exit-code 0 )
162165 (progn
163166 (crs-grep-mode)
@@ -208,12 +211,13 @@ If `crs-grep-repo-root` is nil, shows an error message."
208211(defun crs-grep-set-filter (filter-name )
209212 " Set the CRs type filter to FILTER-NAME (string) and refresh the CRs buffer.
210213Prompts if called interactively."
211- (interactive (list
212- (completing-read
213- " Filter (all, crs, xcrs, now, soon, someday, invalid): "
214- '(" all" " crs" " xcrs" " now" " soon" " someday" " invalid" )
215- nil
216- t )))
214+ (interactive
215+ (list
216+ (completing-read
217+ " Filter (all, crs, xcrs, now, soon, someday, invalid, summary): "
218+ '(" all" " crs" " xcrs" " now" " soon" " someday" " invalid" " summary" )
219+ nil
220+ t )))
217221 (setq crs-grep-current-filter filter-name)
218222 (crs-grep-refresh))
219223
@@ -266,6 +270,13 @@ Further refreshing the buffer will continue to show invalid CRs only."
266270 (interactive )
267271 (crs-grep-set-filter " invalid" ))
268272
273+ (defun crs-grep-set-filter-summary ()
274+ " Set the CRs type filter to \" summary\" and refresh the CRs buffer.
275+ This will show only the summary box.
276+ Further refreshing the buffer will continue to show the summary only."
277+ (interactive )
278+ (crs-grep-set-filter " summary" ))
279+
269280; ;; Mode
270281
271282(defvar crs-grep-mode-map
@@ -280,6 +291,7 @@ Further refreshing the buffer will continue to show invalid CRs only."
280291 (define-key map " d" 'crs-grep-set-filter-someday )
281292 (define-key map " i" 'crs-grep-set-filter-invalid )
282293 (define-key map " a" 'crs-grep-set-filter-all )
294+ (define-key map " s" 'crs-grep-set-filter-summary )
283295 map)
284296 " Keymap for `crs-grep-mode`.
285297
@@ -293,6 +305,7 @@ Keys:
293305 o Show only CRs to be worked on \" soon\" (set filter)
294306 d Show only CRs to be worked on \" someday\" (set filter)
295307 i Show only invalid CRs (set filter)
308+ s Show only the summary box (set filter)
296309 q Quit" )
297310
298311;;;### autoload
@@ -310,6 +323,7 @@ Keys:
310323 o Show only CRs to be worked on \" soon\" (set filter)
311324 d Show only CRs to be worked on \" someday\" (set filter)
312325 i Show only invalid CRs (set filter)
326+ s Show only the summary box (set filter)
313327 q Quit"
314328 :keymap crs-grep-mode-map)
315329
0 commit comments