From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Semi-unhelpful error message given when trying to (provide 'CUA-mode) Date: Sun, 21 May 2006 01:18:47 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148167275 2623 80.91.229.2 (20 May 2006 23:21:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 May 2006 23:21:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 21 01:21:12 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 1Fhakx-0000qs-7z for ged-emacs-devel@m.gmane.org; Sun, 21 May 2006 01:21:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fhakw-0004gY-P7 for ged-emacs-devel@m.gmane.org; Sat, 20 May 2006 19:21:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fhakm-0004gF-6Z for emacs-devel@gnu.org; Sat, 20 May 2006 19:21:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fhakl-0004fv-Cx for emacs-devel@gnu.org; Sat, 20 May 2006 19:20:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fhakl-0004fs-8j for emacs-devel@gnu.org; Sat, 20 May 2006 19:20:59 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FhaoO-0005TN-Pu for emacs-devel@gnu.org; Sat, 20 May 2006 19:24:45 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 500E6A50021; Sun, 21 May 2006 01:20:55 +0200 (CEST) Original-To: Alan Mackenzie In-Reply-To: (Alan Mackenzie's message of "Sat, 20 May 2006 22:57:13 +0000 (GMT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:54909 Archived-At: Alan Mackenzie writes: > Good morning, Kim! > > On Sat, 20 May 2006, Kim F. Storm wrote: > >>Alan Mackenzie writes: > >>> In Emacs-22.0.50, if you try to load a legacy cua-mode.el (or whatever), >>> an eval-after-load form tells you to set the CUA option via the menu. >>> This is useful only to users who have a mouse and like using it. >>> >>> For the benefit of other users, M-x cua-mode should also be mentioned. > >>M-x cua-mode only enables CUA for the current session, so I think this >>is better: > > People will want to enable CUA only for the current session, just to try > it out. The reason for the error message in cua-base.el is to assist existing users of CUA-mode who upgrades from 21.4 to 22.1, and experience that the CUA bindings no longer works -- or works in peculiar ways... Since those users already have CUA-mode permanently enabled in their emacs, I think it is the right thing to tell them how to enable the new cua-mode -- which is to customize cua-mode or use the Options menu. You never see the error message if you don't already use CUA-mode, so that's the wrong place to tell people how to try it out... > The canonical way of giving commands in Emacs is with M-x foo. Why > should this one be different? If your aim were to make it as difficult > as possible for a GUI hating user to find out that the command is called > `cua-mode', you could hardly do better than what you suggest. Remember, > C-h c and friends don't work in menus, unless you're willing to click the > mouse (See my other bug report from yesterday). Why the obfuscation? M-x apropos RET cua RET tells about "cua-mode" and "cua-selection-mode". That's the canonical way to find out that whe command is called... > The kind of error message which > says "... via the options menu" without giving me the option of doing it > "properly" gets me screaming with rage. What am I meant to write into my > .emacs? You still only get the hint if you already have CUA-mode in .emacs. > What on earth am I supposed to give to C-h f? Have I really got > to go through the hassle of C-h i? C-h a cua RET doesn't seem a lot of hassle to me... It tells you about cua-mode, so C-h f cua-mode RET is "no secret". > Please put the name of the command `cua-mode' into this error message > somehow. I think my suggested patch is a reasonable way of doing this. Sorry, but I think the current (updated) text is reasonable. More experienced users like yourself, is capable of finding the necessary command temselves. -- Kim F. Storm http://www.cua.dk