From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: change cursor type when idle Date: Mon, 28 Aug 2006 20:18:22 -0500 (CDT) Message-ID: <200608290118.k7T1IMhk011150@jane.dms.auburn.edu> References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1156814351 30834 80.91.229.2 (29 Aug 2006 01:19:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Aug 2006 01:19:11 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 29 03:19:07 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 1GHsFu-0000JT-9k for ged-emacs-devel@m.gmane.org; Tue, 29 Aug 2006 03:19:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHsFt-0005rd-Lb for ged-emacs-devel@m.gmane.org; Mon, 28 Aug 2006 21:19:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHsFi-0005rO-VT for emacs-devel@gnu.org; Mon, 28 Aug 2006 21:18:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHsFg-0005rC-Lv for emacs-devel@gnu.org; Mon, 28 Aug 2006 21:18:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHsFg-0005r9-Fv for emacs-devel@gnu.org; Mon, 28 Aug 2006 21:18:52 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GHsOk-0003MH-L4 for emacs-devel@gnu.org; Mon, 28 Aug 2006 21:28:14 -0400 Original-Received: from jane.dms.auburn.edu (jane.dms.auburn.edu [131.204.53.201]) by manatee.dms.auburn.edu (8.13.6/8.13.6) with ESMTP id k7T1IgBo023025; Mon, 28 Aug 2006 20:18:42 -0500 (CDT) Original-Received: from jane.dms.auburn.edu (localhost [127.0.0.1]) by jane.dms.auburn.edu (8.13.4+Sun/8.13.4) with ESMTP id k7T1IMOp011153; Mon, 28 Aug 2006 20:18:22 -0500 (CDT) Original-Received: (from teirllm@localhost) by jane.dms.auburn.edu (8.13.4+Sun/8.13.3/Submit) id k7T1IMhk011150; Mon, 28 Aug 2006 20:18:22 -0500 (CDT) X-Authentication-Warning: jane.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: storm@cua.dk In-reply-to: (storm@cua.dk) 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:59045 Archived-At: Kim Storm wrote: Here is a version that does this correctly. >>From looking at your code, unless I missed something, it seems like your new feature would be turned on _by default_. If so, this would be unacceptable. If a user has set blink-cursor-mode to nil, then no code should override this and make the cursor blink anyway after a few seconds idle time. Forcing the user to customize more than one variable to make the cursor stop blinking would be user harassment. Similarly, if the user changed the cursor type, no code should override that by default behind the user's back either. If people just wants the cursor type to change after, say, 3 seconds, but don't want a blinking cursor, do: (setq cursor-type 'bar blink-cursor-delay 3.0 blink-cursor-idle-cursor-delay blink-cursor-delay blink-cursor-interval 10e7) Forcing the user to customize no less than four variables to achieve something this simple does not seem good design to me. Sincerely, Luc.