unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13523: 24.2.92; [regression] mark-active
@ 2013-01-22  8:03 Leo Liu
  2013-01-22  8:28 ` Dmitry Gutov
  2013-01-23  8:06 ` Glenn Morris
  0 siblings, 2 replies; 15+ messages in thread
From: Leo Liu @ 2013-01-22  8:03 UTC (permalink / raw)
  To: 13523

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





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-02-01 23:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22  8:03 bug#13523: 24.2.92; [regression] mark-active Leo Liu
2013-01-22  8:28 ` Dmitry Gutov
2013-01-22  8:59   ` Leo Liu
2013-01-23  8:06 ` Glenn Morris
2013-01-23 12:48   ` Stefan Monnier
2013-01-27  2:16     ` Glenn Morris
2013-01-28  1:33       ` Stefan Monnier
2013-01-30  2:00         ` Glenn Morris
2013-01-31  2:47           ` Stefan Monnier
2013-01-31  3:34             ` Glenn Morris
2013-01-31  7:21               ` Glenn Morris
2013-01-31  7:48                 ` Glenn Morris
2013-01-31 14:47               ` Stefan Monnier
2013-02-01 23:41             ` Stefan Monnier
2013-01-24  1:20   ` Leo Liu

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).