]> git.eshelyaron.com Git - emacs.git/commit
Select the right buffer for event in context-menu functions (bug#9923)
authorJuri Linkov <juri@linkov.net>
Mon, 6 Dec 2021 17:24:09 +0000 (19:24 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 6 Dec 2021 17:24:09 +0000 (19:24 +0200)
commitda23e607d33260c9aabaa3d136722a45457930dc
tree0f55701c4e3f25a1ed8a82fe9f4983ec0821af85
parentd529207b0eb26b623fadf4716581add58f2cc282
Select the right buffer for event in context-menu functions (bug#9923)

* lisp/mouse.el (context-menu-region):
* lisp/progmodes/prog-mode.el (prog-context-menu):
Switch to the buffer displayed by the window of the event
before using syntax-ppss, char-after.
lisp/mouse.el
lisp/progmodes/prog-mode.el