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 13:10:00 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205131710.g4DHA1t07920@rum.cs.yale.edu> References: <200205131700.g4DH0DB13257@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021309929 22192 127.0.0.1 (13 May 2002 17:12:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 May 2002 17:12:09 +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 177JMm-0005lo-00 for ; Mon, 13 May 2002 19:12:08 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177JXQ-0003m6-00 for ; Mon, 13 May 2002 19:23:08 +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 177JMt-00073u-00; Mon, 13 May 2002 13:12:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177JKm-0006kI-00; Mon, 13 May 2002 13:10:04 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4DHA1t07920; Mon, 13 May 2002 13:10:01 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman 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:3885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3885 > 1. Using `M-x cua-mode' doesn't print a message in the mode-line, > whereas using the menu option does. Why not always print a message > (many other mode toggles do, and they probably all should), and make > the menu option and `M-x cua-mode' exactly the same? > > There is a possible problem with making these toggles display a > message inthe echo area: Lisp programs may want to call them, and > often it is inappropriate to print messages in those cases. 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. > At present, we have turn-on-X-mode functions for some minor modes, and > variables you can set or bind for other minor modes. And there may be > some cases which have neither one. It is a confusing situation. > I wonder if we can straighten it out. The way I see it, the only standard part is (minor-mode 1) to turn it on and (minor-mode -1) to turn it off. I dislike the turn-on-X-mode things because they're just redundant. Luckily, they can be ignored. Stefan