From: Jorgen Schaefer <contact@jorgenschaefer.de>
To: 20260@debbugs.gnu.org
Subject: bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations
Date: Sun, 05 Apr 2015 00:29:21 +0200 [thread overview]
Message-ID: <87iodb4jem.fsf@loki.jorgenschaefer.de> (raw)
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
next reply other threads:[~2015-04-04 22:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-04 22:29 Jorgen Schaefer [this message]
2015-04-07 18:53 ` bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations Stefan Monnier
2015-04-08 10:41 ` Vasilij Schneidermann
2015-04-08 14:26 ` Stefan Monnier
2015-04-10 19:04 ` Jorgen Schäfer
2015-04-13 14:18 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iodb4jem.fsf@loki.jorgenschaefer.de \
--to=contact@jorgenschaefer.de \
--cc=20260@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).