[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61340: 29.0.60; Extra space in xref buffer
From: |
Juri Linkov |
Subject: |
bug#61340: 29.0.60; Extra space in xref buffer |
Date: |
Tue, 07 Feb 2023 09:40:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
This is a small problem and I didn't notice it until now when
there was an important distinction whether there is a space
character at the beginning of the line, and it was misleading
to see that xref wrongly says there is a leading space.
This is because currently xref output differs from grep and occur
where there is no space between colon and the text from file.
Here is the fix:
```
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index f01b8a1af18..6160f217afb 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -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
```
- bug#61340: 29.0.60; Extra space in xref buffer,
Juri Linkov <=
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/07
- bug#61340: 29.0.60; Extra space in xref buffer, Juri Linkov, 2023/02/08
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/08
- bug#61340: 29.0.60; Extra space in xref buffer, Juri Linkov, 2023/02/08
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/08
- bug#61340: 29.0.60; Extra space in xref buffer, Juri Linkov, 2023/02/09
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/09
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/18
- bug#61340: 29.0.60; Extra space in xref buffer, Eli Zaretskii, 2023/02/19
- bug#61340: 29.0.60; Extra space in xref buffer, Dmitry Gutov, 2023/02/19