]> git.eshelyaron.com Git - emacs.git/commitdiff
Fontify the group and the line number
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Dec 2020 00:52:39 +0000 (02:52 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 5 Dec 2020 01:01:34 +0000 (03:01 +0200)
* lisp/progmodes/xref.el (xref--show-defs-minibuffer):
Fontify the group and the line number.

lisp/progmodes/xref.el

index e304a7beae2ff98b2348ea65af3f39e46a2e0116..a78fed282cf602e29d355c05b8b0558e508821fa 100644 (file)
@@ -951,8 +951,15 @@ local keymap that binds `RET' to `xref-quit-and-goto-xref'."
                (cl-loop for (xref . more2) on xrefs do
                         (with-slots (summary location) xref
                           (let* ((line (xref-location-line location))
-                                 (line-fmt (if line (format "%s:" line) ""))
-                                 (group-fmt (substring group group-prefix-length))
+                                 (line-fmt
+                                  (if line
+                                      (format #("%d:" 0 2 (face xref-line-number))
+                                              line)
+                                    ""))
+                                 (group-fmt
+                                  (propertize
+                                   (substring group group-prefix-length)
+                                   'face 'xref-file-header))
                                  (candidate
                                   (if show-summary
                                       (format "%s:%s%s" group-fmt line-fmt summary)