Subject: bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations

From: Stefan Monnier <[email-masked]>
Date: Wed, 08 Apr 2015 10:26:59 -0400

> The patch does indeed fix the test case for me, but the real use case
> stays unchanged.

Hmm... Can you provide another recipe that still isn't fixed with the patch?

> Meanwhile, I've found a way to make the test case pass on 24.4,
> let-binding `deactivate-mark`:

Yes, that works around the problem, but it shouldn't be necessary in Emacs-25.

The workaround you use was needed in many places: deactivate-mark was
global, so modifying one buffer could end up deactivating the mark in
some unrelated buffer.  In Emacs-25, we've changed it to be
buffer-local, so modifications in one buffer should not affect the
activation of the mark in another any more.

> Why it is needed in 24.4, but not in 24.3 is beyond my
> understanding of Emacs.

I don't know either, actually.

        Stefan