From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: mouse.el patch for region tracking Date: Mon, 2 Jan 2006 21:40:59 -0700 Message-ID: References: <87psndut5y.fsf-monnier+emacs@gnu.org> <874q4nwns3.fsf-monnier+emacs@gnu.org> <1136236858.14167.86.camel@turtle.as.arizona.edu> <87k6dit7c2.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136263284 7344 80.91.229.2 (3 Jan 2006 04:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2006 04:41:24 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 03 05:41:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Etdz6-00006o-HD for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2006 05:41:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ete0i-0005eo-9K for ged-emacs-devel@m.gmane.org; Mon, 02 Jan 2006 23:43:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ete0Y-0005ef-Lv for emacs-devel@gnu.org; Mon, 02 Jan 2006 23:42:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ete0V-0005eS-TW for emacs-devel@gnu.org; Mon, 02 Jan 2006 23:42:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ete0U-0005eO-Km for emacs-devel@gnu.org; Mon, 02 Jan 2006 23:42:47 -0500 Original-Received: from [204.127.202.59] (helo=sccrmhc14.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ete1e-0001dH-Sa for emacs-devel@gnu.org; Mon, 02 Jan 2006 23:43:58 -0500 Original-Received: from [192.168.1.3] (c-69-252-140-73.hsd1.ar.comcast.net[69.252.140.73]) by comcast.net (sccrmhc14) with SMTP id <200601030441030140031ughe>; Tue, 3 Jan 2006 04:41:04 +0000 In-Reply-To: <87k6dit7c2.fsf-monnier+emacs@gnu.org> Original-To: Stefan Monnier X-Mailer: Apple Mail (2.746.2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48641 Archived-At: On Jan 2, 2006, at 6:45 PM, Stefan Monnier wrote: >> The one question remaining is whether it is appropriate to delete the >> overlay (as I currently do) when transient-mark-mode is nil, and >> terminating events aren't being processed. This means the >> highlighted >> region vanishes just after the drag completes. > > I have a question about this part: why do you not delete the > overlay when > transient-mark-mode is active? I guess because the region is still active, so, as normally in transient-mark-mode, the active region should remain highlighted until mark is deactivated, just as in normal selection. Maybe this isn't necessary. I'd just as soon have it always delete. In my mode, I place another overlay there more temporarily, so it doesn't affect me. > As for the extra argument handle-terminating-event, I'd call it > "do-mouse-drag-region-post-process" and I wouldn't document what it > does, but just say that it should only be used by mouse-drag-region. Done. One thing bothered me while playing with transient mark mode: 'mouse- region-delete-keys', while nice, is very inconsistent in transient mark mode. If you define a region with the mouse, it works. If you define a region with C-space and then move point, it does not work. I know the name implies this, but the semantics of "mark something yellow, hit the delete key" seem fairly intuitive. JD