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: Vasilij Schneidermann <v.schneidermann <at> gmail.com>
To: 20260 <at> debbugs.gnu.org
Cc: contact <at> jorgenschaefer.de, monnier <at> iro.umontreal.ca
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
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.




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.