emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

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

Open mtk opened 2 years ago

mtk commented 2 years ago

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?

t-c-acc commented 11 months ago

@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.