From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: CUA mode cursor color Date: Mon, 13 May 2002 14:15:39 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205131815.g4DIFdA08238@rum.cs.yale.edu> References: <200205131700.g4DH0DB13257@aztec.santafe.edu> <200205131710.g4DHA1t07920@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021354612 981 127.0.0.1 (14 May 2002 05:36:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 May 2002 05:36:52 +0000 (UTC) Cc: "Stefan Monnier" , Richard Stallman , miles@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 177UzU-0000Fi-00 for ; Tue, 14 May 2002 07:36:52 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177VAN-0003jg-00 for ; Tue, 14 May 2002 07:48:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177URF-000816-00; Tue, 14 May 2002 01:01:29 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177KMG-00084v-00; Mon, 13 May 2002 14:15:40 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4DIFdA08238; Mon, 13 May 2002 14:15:39 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Sam Steingold Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3899 > > I dislike the turn-on-X-mode things because they're just redundant. > IIUC, they are needed for hooks: if you put turn-on-X-mode into a hook, > you know you will get the X-mode, but if you put X-mode (which just > toggles) there, you might or might not get it, depending on whether > X was turned on in the mode definition or in another function added to > the hook. (add-hook 'foo-hook (lambda () (mode-X 1))) only takes 7 more chars than your alternative. Furthermore, although I know that some people are staunchly opposed to it, I think that calling (X-mode) with no argument non-interactively should behave exactly like turn-on-X-mode so that people can just say (add-hook 'foo-hook 'mode-X) and so that people who already (incorrectly) do that don't get into trouble. Stefan