From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: change cursor type when idle Date: Mon, 28 Aug 2006 16:13:28 -0700 Message-ID: References: <87wt8sk0uq.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156806836 13893 80.91.229.2 (28 Aug 2006 23:13:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 23:13:56 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 29 01:13:54 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 1GHqId-0004vC-9r for ged-emacs-devel@m.gmane.org; Tue, 29 Aug 2006 01:13:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHqIc-0006GC-Mn for ged-emacs-devel@m.gmane.org; Mon, 28 Aug 2006 19:13:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHqIQ-0006Fd-NS for emacs-devel@gnu.org; Mon, 28 Aug 2006 19:13:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHqIO-0006Dq-Ut for emacs-devel@gnu.org; Mon, 28 Aug 2006 19:13:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHqIO-0006Di-SL for emacs-devel@gnu.org; Mon, 28 Aug 2006 19:13:32 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GHqRR-00026N-SM for emacs-devel@gnu.org; Mon, 28 Aug 2006 19:22:54 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k7SNDUCe019763 for ; Mon, 28 Aug 2006 17:13:30 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw2.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k7SNDTuZ031516 for ; Mon, 28 Aug 2006 17:13:30 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <87wt8sk0uq.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:59043 Archived-At: > I actually also use code that (optionally) changes the cursor type, > depending on whether the mode is overwrite (bar) or read-only > (box), and changes the cursor color, depending on whether or not > you are using an input method (thx to a suggestion from Juri). > I mention this only to point out that users might also change the > cursor type or color independently of the idle/active state of > Emacs, so we don't want to trample on such functionality. I like your proposed feature, but I have one doubt. Usually I use the bar cursor, and sometimes it is hard to locate it in dense text areas. Changing its type to a box cursor (and/or its color) would help, but any delay before changing it (e.g. 2 sec) seems arbitrary. I need to make the cursor more visible not after some delay, but only when I need to locate it. Ah, I see... The version that lights up and screams "Here!" *ONLY* when you in fact need to locate it is an expensive option ;-). Mind-reading is never cheap, if it's accurate. Seriously, yes, 2 sec is arbitrary, and you can choose another period that you might prefer. For me, 1 sec is usually too short, and 3 is usually too long. I usually use cursor movement keys to move the cursor foreward-backward to find its location, but this is not convenient. Agreed. Been there; done that. My guess is that anyone who has tried to use the bar cursor has ended up doing that. > (And I take advantage of this opportunity to again support Juri's > suggestion to add command `set-cursor-type' to Emacs.) I guess `set-cursor-type' is not yet in Emacs, because there are more than one way to change the cursor type (via the `default-cursor-type' and `cursor-type' variables, and via the frame parameter), so it's not clear which one to use in the implementation. Is it so? I can't answer why. If that's the only reason, then let's decide. I set the `cursor-type' property of the selected frame, in my version. If it's important to be able to set the default type sometimes, then why not let the command do that with a prefix arg? End of story (no?).