GNU bug report logs -
#20260
24.4.1; Triple-clicking selects and deselects the line in weird situations
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 10 years and 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.