From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: change cursor type when idle Date: Tue, 12 Feb 2008 16:35:12 +0100 Message-ID: References: <000d01c86c82$700dccc0$7051908d@us.oracle.com> <200802121430.m1CEUc6k013361@sallyv1.ics.uci.edu> <002601c86d8a$a0454db0$405a908d@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202830545 28819 80.91.229.12 (12 Feb 2008 15:35:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 15:35:45 +0000 (UTC) Cc: dann@ics.uci.edu, rms@gnu.org, emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 12 16:36:08 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JOxAk-0002eO-7W for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 16:35:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOxAG-00045b-Iy for ged-emacs-devel@m.gmane.org; Tue, 12 Feb 2008 10:35:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOxAB-00044q-Nh for emacs-devel@gnu.org; Tue, 12 Feb 2008 10:35:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOxAB-00044a-0P for emacs-devel@gnu.org; Tue, 12 Feb 2008 10:35:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOxAA-00044X-SB for emacs-devel@gnu.org; Tue, 12 Feb 2008 10:35:14 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JOxAA-0006qx-IP for emacs-devel@gnu.org; Tue, 12 Feb 2008 10:35:14 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2705385wah.10 for ; Tue, 12 Feb 2008 07:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4MehjcPD2m2uoVHQ94YyyValwDz8OmOvO+mGTR/wgOo=; b=S9h+FGaPz/u9PrCBDUnOPlpUgoWgdsCaRaD4tPm6fWHAC+m4Ln9Ip8aFsR/+6TvocL2V7o3EweJK5fsEaePKlEm8WkWbrlo8pk6dytwgjCR/2m+uY/bgKP8R1MjThvzfC0puMRjsupVd8mA/xtfWW215MwqIR/ei472BE5StGp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pLVTfYuoZFQ5rxSD4cFM30KmvjjAQwbV0LgyNWo+pBhu4ZA1s4oHFLeo8nFjOc1BSvMEPqkTMXyN2BCaalnRZ1w00A9dbf4r6N4U/a9jmFJH2eIvfRB/UZTJkej0PsqnLmd/jVWuhypgCVSuF/g/lAtpKTe8IvesHUi4P8s5y+s= Original-Received: by 10.114.209.1 with SMTP id h1mr1566844wag.130.1202830512924; Tue, 12 Feb 2008 07:35:12 -0800 (PST) Original-Received: by 10.115.72.13 with HTTP; Tue, 12 Feb 2008 07:35:12 -0800 (PST) In-Reply-To: <002601c86d8a$a0454db0$405a908d@us.oracle.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 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:88872 Archived-At: On Feb 12, 2008 4:19 PM, Drew Adams wrote: > I don't know when this was added to CUA; I wasn't aware of that when I wrote > this, which was in November 2005. C:\...\lisp> grep-changelog --reverse --text=cua-.*cursor 2002-05-13 Kim F. Storm * emulation/cua-base.el (cua-enable-cursor-indications): Default off. (cua-mode): Print Enabled/Disabled messages if interactive. Disable delete-selection-mode and pc-selection-mode when cua-mode is enabled; reenable if cua-mode is turned off. Remember setting of transient-mark-mode when cua-mode is enabled; restore if cua-mode is disabled. 2002-10-07 Kim F. Storm * emulation/cua-base.el (cua-normal-cursor-color): Fixed initialization to make "Erase Customization" work. 2004-04-14 Kim F. Storm * emulation/cua-base.el (cua-read-only-cursor-color) (cua-overwrite-cursor-color, cua-global-mark-cursor-color): Doc fix. 2004-04-30 Kim F. Storm * emulation/cua-base.el: Add support for changing cursor types; based on patch from Michael Mauger. (cua-normal-cursor-color, cua-read-only-cursor-color) (cua-overwrite-cursor-color, cua-global-mark-cursor-color): Customization cursor type and/or cursor color. (cua--update-indications): Handle cursor type changes. (cua-mode): Update cursor indications if enabled. [etc] But I think when was the code written is now irrelevant, as cua-mode is already in 22.X. > If a merge or refactoring with CUA code is in order, then I would think it > would be for CUA to use the code from a separate library, as opposed to > making users who want only the cursor changes use cua-mode. It would perhaps make sense to move the cursor-related stuff from cua-base to a new cua-cursor, like the global mark and rectangle support are, or even to a non-cua library (compatibility should be maintained, though, so we'll end with a bunch of cua-*-cursor-* aliases). But anyway, your "using cua-mode" is a bit misleading; you can use cua-mode features without using CUA keys or the like. Juanma