From: Vasilij Schneidermann <v.schneidermann@gmail.com>
To: 20260@debbugs.gnu.org
Cc: contact@jorgenschaefer.de
Subject: bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations
Date: Wed, 8 Apr 2015 12:41:06 +0200 [thread overview]
Message-ID: <20150408104106.GA13929@odonien.bevuta.com> (raw)
In-Reply-To: <87iodb4jem.fsf@loki.jorgenschaefer.de>
The patch does indeed fix the test case for me, but the real use case
stays unchanged.
Meanwhile, I've found a way to make the test case pass on 24.4,
let-binding `deactivate-mark`:
(defun repro-filter (fun beg end delete)
(let ((string (funcall fun beg end delete))
deactivate-mark)
(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)))
This change makes triple-clicking "World" in the *Bug* buffer no longer
deselect it. Why it is needed in 24.4, but not in 24.3 is beyond my
understanding of Emacs.
next prev parent reply other threads:[~2015-04-08 10:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-04 22:29 bug#20260: 24.4.1; Triple-clicking selects and deselects the line in weird situations Jorgen Schaefer
2015-04-07 18:53 ` Stefan Monnier
2015-04-08 10:41 ` Vasilij Schneidermann [this message]
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=20150408104106.GA13929@odonien.bevuta.com \
--to=v.schneidermann@gmail.com \
--cc=20260@debbugs.gnu.org \
--cc=contact@jorgenschaefer.de \
/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).