GNU bug report logs - #20260
24.4.1; Triple-clicking selects and deselects the line in weird situations

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <contact <at> jorgenschaefer.de>

Date: Sat, 4 Apr 2015 22:30:04 UTC

Severity: normal

Found in version 24.4.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20260: closed (24.4.1; Triple-clicking selects and deselects
 the line in weird situations)
Date: Mon, 13 Apr 2015 14:19:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 13 Apr 2015 10:18:02 -0400
with message-id <jwvmw2cm7u0.fsf-monnier+emacsbugs <at> gnu.org>
and subject line Re: bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations
has caused the debbugs.gnu.org bug report #20260,
regarding 24.4.1; Triple-clicking selects and deselects the line in weird situations
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20260: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20260
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jorgen Schaefer <contact <at> jorgenschaefer.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.1;
 Triple-clicking selects and deselects the line in weird situations
Date: Sun, 05 Apr 2015 00:29:21 +0200
Hello!
We came across a weird behavior in Emacs.

The graphical version (in X) will select a line if the mouse is
triple-clicked. Under certain situations, it will select but immediately
deselect the line again.

Reproduction:

Triple-click on any line in any buffer. Notice that Emacs selects the
whole line, and leaves it selected.

Evaluate the following code.

(defun repro-filter (fun beg end delete)
  (let ((string (funcall fun beg end delete)))
    (with-temp-buffer
      (insert "."))
    string))

(with-current-buffer (get-buffer-create "*Bug*")
  (set (make-local-variable 'filter-buffer-substring-functions)
       '(repro-filter))
  (insert "Hello, World!\n")
  (pop-to-buffer (current-buffer)))

Triple-click on the "World" in the *Bug* buffer. Notice that Emacs
selects the whole line only momentarily, and then deselects it again
immediately.

I expected the line to stay selected like without this piece of code.

This bug was not present in 24.3.

Regards,
Jorgen


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Vasilij Schneidermann <v.schneidermann <at> gmail.com>
Cc: contact <at> jorgenschaefer.de, 20260-done <at> debbugs.gnu.org
Subject: Re: bug#20260: 24.4.1;
 Triple-clicking selects and deselects the line in weird situations
Date: Mon, 13 Apr 2015 10:18:02 -0400
>> The patch does indeed fix the test case for me, but the real use case
>> stays unchanged.

Since it fixes Jorgen's test case I installed the patch into master, and
I'm closing this bug.

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

If/when you find another recipe to reproduce your problem, just make
a new bug report (or re-open this one).

Thank you,


        Stefan


This bug report was last modified 10 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.