lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

lsp-ui-doc sets track-mouse to 't' but this triggers spurious "<tab-bar> <mouse-movement>" events

Open mtk opened this issue 2 years ago • 1 comments

setting track-mouse to 't' triggers the generation of spurious " " events when the mouse moves anywhere with the tab-bar. since the event is unbound, it triggers an annoying bell error.

this can be trivially worked around, for example, if you load LSP via use-package:

:hook 	 (lsp-after-initialize . (lambda () (keymap-local-set "<tab-bar> <mouse-movement>" #'ignore))))

but it might make sense to do this automatically for the user? or at least document this behavior so the user can resolve the problem easily?

thoughts/comments?

mtk avatar Jan 20 '22 01:01 mtk

@mtk 's work around does not work for me. What works is: :hook (lsp-after-initialize . (lambda () (local-set-key (kbd "<tab-bar> <mouse-movement>") #'ignore)))

Also I would consider this an important bug, since lsp with tab-bar-mode (which is a built-in mode) is unusable out of the box.

t-c-acc avatar Jul 26 '23 14:07 t-c-acc