unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: 13523@debbugs.gnu.org
Subject: bug#13523: 24.2.92; [regression] mark-active
Date: Tue, 22 Jan 2013 16:03:53 +0800	[thread overview]
Message-ID: <m2zk01hceu.fsf@gmail.com> (raw)

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





             reply	other threads:[~2013-01-22  8:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22  8:03 Leo Liu [this message]
2013-01-22  8:28 ` bug#13523: 24.2.92; [regression] mark-active 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

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=m2zk01hceu.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=13523@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).