From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: CUA mode cursor color Date: Tue, 14 May 2002 13:40:59 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200205141940.g4EJexe15167@aztec.santafe.edu> References: <200205131700.g4DH0DB13257@aztec.santafe.edu> <200205131710.g4DHA1t07920@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1021405382 32703 127.0.0.1 (14 May 2002 19:43:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 May 2002 19:43:02 +0000 (UTC) Cc: 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 177iCM-0008VD-00 for ; Tue, 14 May 2002 21:43:02 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177iNX-00061f-00 for ; Tue, 14 May 2002 21:54:35 +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 177iCM-0002ga-00; Tue, 14 May 2002 15:43:02 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177iAP-0001sv-00; Tue, 14 May 2002 15:41:02 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g4EJexk29862; Tue, 14 May 2002 13:40:59 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4EJexe15167; Tue, 14 May 2002 13:40:59 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: monnier+gnu/emacs@RUM.cs.yale.edu In-Reply-To: <200205131710.g4DHA1t07920@rum.cs.yale.edu> (monnier+gnu/emacs@RUM.cs.yale.edu) 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:3931 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3931 If you use define-minor-mode, then the resulting code emits a message if called interactively. That should work for menubar invocation as well as for M-x without impacting direct calls from Lisp programs. We could make that the convention and change all the toggles to do it that way. I dislike the turn-on-X-mode things because they're just redundant. Luckily, they can be ignored. One reason they are useful is that you can call them easily from hooks. In the context of a hook, you can't pass an argument. To use the toggle, you'd have to wrap it in a lambda.