--- Begin Message ---
Subject: |
xref copies keymap properties to minibuffer |
Date: |
Mon, 08 Mar 2021 22:03:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
0. emacs -Q
1. C-x p g expose_frame RET
2. put point e.g. on "tab_bar_window"
3. C-x p g M-n
4. click mouse on the default value
Instead of moving point to the clicked position, it visits the xref hit.
This is because the copied default value is not stripped from the
text property 'keymap'.
I noticed this problem after adding RET binding to xref--button-map,
so typing RET on the default value doesn't accept it for new search,
but uses its local keymap to visit old reference.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#47012: xref copies keymap properties to minibuffer |
Date: |
Tue, 9 Mar 2021 04:08:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
Hi!
On 08.03.2021 22:03, Juri Linkov wrote:
0. emacs -Q
1. C-x p g expose_frame RET
2. put point e.g. on "tab_bar_window"
3. C-x p g M-n
4. click mouse on the default value
Instead of moving point to the clicked position, it visits the xref hit.
This is because the copied default value is not stripped from the
text property 'keymap'.
I noticed this problem after adding RET binding to xref--button-map,
so typing RET on the default value doesn't accept it for new search,
but uses its local keymap to visit old reference.
Thanks for the report, should now be fixed in master, commit 8538108132836.
FWIW, it's was project.el's problem, not xref's.
--- End Message ---