GNU bug report logs -
#18939
24.4; a left-click in Emacs sometimes modifies the PRIMARY selection
Previous Next
Reported by: Vincent Lefevre <vincent <at> vinc17.net>
Date: Mon, 3 Nov 2014 20:58:01 UTC
Severity: important
Tags: security
Found in version 24.4
Done: Jan Djärv <jan.h.d <at> swipnet.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
[Cc to the Debian bug]
On 2014-12-30 12:45:12 +0200, Riku Saikkonen wrote:
> I tried to trace where the bug occurs, and got as far as this:
>
> mouse-drag-track contains the lines
>
> ;; Otherwise, run binding of terminating up-event.
> (deactivate-mark)
> (if do-multi-click
> (goto-char start-point)
> (unless moved-off-start
> (pop-mark)))
>
> (lines 858-863 of mouse.el in Emacs 24.4.1)
[...]
How about locally setting select-active-regions to nil for
(deactivate-mark)? See attached patch, which seems to work
for me, though I don't know all the consequences.
It is inspired from the patch suggested at
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6872#8
and the one that was really applied as
1c409d0b963ebdb1f48b90ddce85c56d989bee5f.
--
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
[emacs24-primarysel2.patch (text/plain, attachment)]
This bug report was last modified 10 years and 147 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.