bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18939: 24.4; middle-click sometimes pastes data other than the PRIMA


From: Vincent Lefevre
Subject: bug#18939: 24.4; middle-click sometimes pastes data other than the PRIMARY selection
Date: Sun, 4 Jan 2015 03:23:37 +0100
User-agent: Mutt/1.5.23-6371-vl-r75100 (2014-11-04)

[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@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)

Attachment: emacs24-primarysel2.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]