From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: `mouse-drag-cursor-type' suggestion Date: Sat, 09 Nov 2002 06:55:12 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036843939 13561 80.91.224.249 (9 Nov 2002 12:12:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2002 12:12:19 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AUTI-0003WL-00 for ; Sat, 09 Nov 2002 13:12:16 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18AUdF-0003hU-00 for ; Sat, 09 Nov 2002 13:22:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18AUTQ-0000R6-00; Sat, 09 Nov 2002 07:12:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18AUDL-00046S-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 06:55:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18AUCo-00042Q-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 06:55:45 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18AUCn-00042B-00 for emacs-devel@gnu.org; Sat, 09 Nov 2002 06:55:13 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18AUCm-0001Bg-00; Sat, 09 Nov 2002 06:55:12 -0500 Original-To: jpw@shootybangbang.com In-reply-to: (jpw@shootybangbang.com) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9277 I like the effect. Perhaps it could be offered as a customizable variable in Emacs. A patch follows. WDYT? I tried it and noted the drawback that the bar cursor remains after I stop dragging. That looks wrong. I thought that adding a call (sit-for 0) at the end of mouse-drag-region, outside the let, would fix this, but it did not. Perhaps now redisplay only looks at cursor-type if it needs to redisplay the cursor for other reasons. If so, it would need to be changed to notice if the type of cursor has changed, and redisplay the cursor if so.