[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 ea1960b: Avoid resetting track-mouse by mouse
From: |
Eli Zaretskii |
Subject: |
Re: [Emacs-diffs] emacs-25 ea1960b: Avoid resetting track-mouse by mouse clicks |
Date: |
Wed, 21 Sep 2016 19:02:30 +0300 |
> From: Stefan Monnier <address@hidden>
> Cc: Eli Zaretskii <address@hidden>
> Date: Wed, 21 Sep 2016 11:10:34 -0400
>
> > + (old-track-mouse track-mouse))
> [...]
> > + t (lambda () (setq track-mouse old-track-mouse)))))))
>
> To allow two packages to set track-mouse without one setting being
> (temporally) nested within the other, we could do
>
> (push 'mouse-drag track-mouse)
> [...]
> (setq track-mouse (delq 'mouse-drag track-mouse))
But that wasn't the purpose of the fix. What you suggest fixes a
different problem, one that has yet to be reported; the original code
which simply gave track-mouse the nil value had the same problem.
Right?