]> git.eshelyaron.com Git - sweep.git/commit
Only enable right-click actions on region when click is in region
authorEshel Yaron <me@eshelyaron.com>
Fri, 8 Sep 2023 20:29:06 +0000 (22:29 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 8 Sep 2023 20:29:06 +0000 (22:29 +0200)
commit47749819094c70f9e279226dc0500101399f5fae
tree427be3394b5bad4887b47353249c3a6db5f47cf2
parentbf88762ed552b6bb4bd1acc0bdc980381743dcd1
Only enable right-click actions on region when click is in region

* sweeprolog.el (sweeprolog-context-menu-region-beg-at-click)
(sweeprolog-context-menu-region-end-at-click): New variables.
(sweeprolog-context-menu-function): Let-bind them.
(sweeprolog-context-menu-for-region): Use them to reliably check that
click is actually inside the selected region.
sweeprolog.el