[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse.el patch for region tracking

From: Stefan Monnier
Subject: Re: mouse.el patch for region tracking
Date: Sun, 01 Jan 2006 18:09:50 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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

> We can (easily?) do both:

> IMO, setting/let-binding mouse-region-delete-keys to nil should inhibit
> reading the next event in mouse-drag-region.

There is another reason to wait for the next event: the selected region is
highlighted until the next event.  Now this is not necessary if
transient-mark-mode is activated, so your suggestion is that code that wants
to do something like XEmacs's mouse-track should do

   (let ((transient-mark-mode t)
         (mouse-region-delete-keys nil))
     (mouse-drag-region event))

Maybe that's OK, but I really find it butt-ugly.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]