all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, JD Smith <jdsmith@as.arizona.edu>
Subject: Re: mouse.el patch for region tracking
Date: Sat, 31 Dec 2005 11:38:06 -0500	[thread overview]
Message-ID: <87psndut5y.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <jeoe2xl174.fsf@sykes.suse.de> (Andreas Schwab's message of "Sat, 31 Dec 2005 16:45:51 +0100")

>> Recently I found that Emacs 22 breaks a simple usage of mouse-drag- 
>> region for defining regions by mouse drag.  When transient-mark-mode  
>> is set, mouse-drag-region under Emacs 21 would let you define a  
>> region by dragging, and when the drag is released, it completes (at  
>> which point you can operate on the region).

> I can still do that with an Emacs built from CVS yesterday.

How?  The mouse-drag-region function doesn't end when you release the mouse
but only after the next event (this is because it's waiting to see if the
next event is in mouse-region-delete-keys).  That makes it unusable in other
contexts (when you try to do something similar to what XEmacs's mouse-track
function does).

In Emacs-21, there was a bug which was that when transient-mark-mode was
enabled, mouse-region-delete-keys wasn't obeyed (and the function returned
immediately upon the release of the mouse button).  JD unknowingly relied on
this bug to get the behavior he needs.

My vote would be to kill mouse-region-delete-keys, but it seems that Richard
insists on this functionality so it looks like JD's patch is a good and safe
way to recover the old feature which is used by several third party
elisp packages.


        Stefan

  reply	other threads:[~2005-12-31 16:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-31  7:00 mouse.el patch for region tracking JD Smith
2005-12-31 15:13 ` Chong Yidong
2005-12-31 19:19   ` JD Smith
2005-12-31 15:45 ` Andreas Schwab
2005-12-31 16:38   ` Stefan Monnier [this message]
2006-01-01 22:48     ` Kim F. Storm
2006-01-01 23:09       ` Stefan Monnier
2006-01-02  9:38         ` Kim F. Storm
2006-01-02 21:20           ` JD Smith
2006-01-03  1:45             ` Stefan Monnier
2006-01-03  4:40               ` JD Smith
2006-01-03 15:37                 ` Stefan Monnier
2006-01-03 17:25                   ` JD Smith
2006-01-01  2:15 ` Richard M. Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87psndut5y.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=jdsmith@as.arizona.edu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.