]> git.eshelyaron.com Git - emacs.git/commit
Perform cleanup on errors in mouse-drag-track
authorYuri D'Elia <wavexx@thregr.org>
Wed, 6 Oct 2021 08:43:22 +0000 (10:43 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 6 Oct 2021 08:43:22 +0000 (10:43 +0200)
commitdc5bb729589ce10734a1a03536026ded8745eba0
tree33a0d6065f3758211c225789343bc67e96278a16
parente62d1fa9831cc4f046b330f438f8bd49a27a2458
Perform cleanup on errors in mouse-drag-track

* lisp/mouse.el (mouse-drag-track): Disable both scroll-margin and
auto-hscroll-mode in mouse-drag-region and do not re-enable them until
dragging is over, making selections work as expected when inside the
margins.
* lisp/mouse.el (mouse-drag-track): Correctly reset original values
changed during execution if errors occur.
lisp/mouse.el