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: Wed, 8 Feb 2023 17:14:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 08/02/2023 09:35, Juri Linkov wrote:
close 61340 30.0.50
thanks

@@ -1108,7 +1108,7 @@ 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:" (1+ (floor (log max-line 
10)))))
              with item-text-props = (list 'mouse-face 'highlight
                                           'keymap xref--button-map
                                           'help-echo
```
This was originally an effort to give the outputted text some "breathing
room", and I think it looks a little better.
Indeed, it looks better but unfortunately at the cost of caused ambiguity.
I guess this is the reason why Grep and Occur don't add space.


I suppose we could try to tone down the colon. Occur uses 'shadow' for both the number and the colon; Grep uses the color from 'default' (with an underline).

If we fontify it with 'shadow' rather than 'xref-line-number', that might look a little better.





reply via email to

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