GNU bug report logs - #13523
24.2.92; [regression] mark-active

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Tue, 22 Jan 2013 08:21:02 UTC

Severity: important

Tags: confirmed, help

Found in versions 24.2, 24.1, 24.2.92

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#13523: closed (24.2.92; [regression] mark-active)
Date: Fri, 01 Feb 2013 23:43:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 01 Feb 2013 18:41:52 -0500
with message-id <jwva9rnob59.fsf-monnier+bug#13523 <at> gnu.org>
and subject line Re: bug#13523: 24.2.92; [regression] mark-active
has caused the debbugs.gnu.org bug report #13523,
regarding 24.2.92; [regression] mark-active
to be marked as done.

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


-- 
13523: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13523
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.92; [regression] mark-active
Date: Tue, 22 Jan 2013 16:03:53 +0800
I have just wasted a few hours wondering some odd behaviour in js2-mode
but to discover it is due to change between Emacs 23 and 24.

1. (global-set-key [mouse-1] (lambda (e) (interactive "e")))
2. Mouse-1 click on a buffer and check the value of mark-active

In emacs 23 it is nil; but in emacs 24.2/24.2.92, it is t.

With mark-active set to t, some commands following mouse-1 activate the
region unexpectedly and inconveniently, for example, in js2-mode, C-a
activate the region between the mouse and line beginning.

It seems 23 and 24 is consistent only if [mouse-1] is bound to
mouse-set-point.

As a result of this bug, most customised [mouse-1] commands fail to
handle mark-active i.e. it is subtle and hard to get the customised
mouse-1 command behave like mouse-set-point leaving users with creepy
behaviour like the one I am seeing in js2 mode.

Leo


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Chong Yidong <cyd <at> gnu.org>, 13523-done <at> debbugs.gnu.org
Subject: Re: bug#13523: 24.2.92; [regression] mark-active
Date: Fri, 01 Feb 2013 18:41:52 -0500
> Can someone point out why the patch below wouldn't work?

I've installed the patch in emacs-24.


        Stefan


This bug report was last modified 12 years and 108 days ago.

Previous Next


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