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 09:58:51 -0700 Message-ID: References: <44F3181B.3020108@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156784422 4262 80.91.229.2 (28 Aug 2006 17:00:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 17:00:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 28 19:00:20 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 1GHkS5-0000ip-1l for ged-emacs-devel@m.gmane.org; Mon, 28 Aug 2006 18:59:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHkS4-0007z5-OH for ged-emacs-devel@m.gmane.org; Mon, 28 Aug 2006 12:59:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHkRt-0007yi-8I for emacs-devel@gnu.org; Mon, 28 Aug 2006 12:58:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHkRq-0007xn-PJ for emacs-devel@gnu.org; Mon, 28 Aug 2006 12:58:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHkRq-0007xa-L7 for emacs-devel@gnu.org; Mon, 28 Aug 2006 12:58:54 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GHkap-0005MV-Pw for emacs-devel@gnu.org; Mon, 28 Aug 2006 13:08:11 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k7SGwq7G006085 for ; Mon, 28 Aug 2006 11:58:52 -0500 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmgw1.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k7SGwpnZ002967 for ; Mon, 28 Aug 2006 10:58:51 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <44F3181B.3020108@student.lu.se> Importance: Normal 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:59014 Archived-At: > > In my own implementation, this feature is separate from > > whether or not the cursor should blink, which I think > > is a little better. I just use a timer > > But isn't there people who can not stand blinking (cursors)? > Yes, that was my point. The two features should be > independent: 1) whether or not the cursor blinks, 2) whether > or not the cursor changes to a box when Emacs is idle. There > is no logical connection between these. Fine! Sorry, I misread it. Should we then just leave it to the user what cursor should be shown when Emacs is idle (color, shape etc)? IMO, yes. However, in my own code, I just use `box' for the idle cursor. It doesn't make much sense to use another cursor for the idle state, but I suppose we might as well leave that up to the user: have an option for the idle cursor type, whose default value would be `box'. I hadn't thought of changing the color as well, but that is a possibility. I'm not sure it's important, but perhaps it would be, if the cursor color did not stand out and you wanted it to do so when Emacs is idle. 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. (And I take advantage of this opportunity to again support Juri's suggestion to add command `set-cursor-type' to Emacs.)