bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61340: 29.0.60; Extra space in xref buffer


From: Dmitry Gutov
Subject: bug#61340: 29.0.60; Extra space in xref buffer
Date: Thu, 9 Feb 2023 21:58:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 09/02/2023 19:51, Juri Linkov wrote:
Here's the change I was suggesting.

The difference is subtle, but seems like an improvement:

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 63e065e696e..581eda0513e 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -1126,7 +1126,9 @@ xref--insert-xrefs
                                     maximize (xref-location-line
                                               (xref-item-location xref)))
             for line-format = (and max-line
-                                  (format "%%%dd:" (1+ (floor (log
                                    max-line 10)))))
+                                  (format
+                                   #("%%%dd:" 0 4 (face xref-line-number)
5 6 (face shadow))
Thanks, this looks nice and closer to the grep output fontification.

Thanks for testing, pushed to master.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]