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: cua-mode and the tutorial Date: Wed, 23 Aug 2006 09:21:54 +0200 Message-ID: References: <44C8F069.1070002@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156317826 11161 80.91.229.2 (23 Aug 2006 07:23:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 07:23:46 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 23 09:23:42 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 1GFn5L-0006Q6-Ta for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2006 09:23:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFn5L-0000sf-B6 for ged-emacs-devel@m.gmane.org; Wed, 23 Aug 2006 03:23:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFn57-0000rj-G9 for emacs-devel@gnu.org; Wed, 23 Aug 2006 03:23:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFn55-0000qn-L3 for emacs-devel@gnu.org; Wed, 23 Aug 2006 03:23:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFn55-0000qh-EA for emacs-devel@gnu.org; Wed, 23 Aug 2006 03:23:19 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFnCn-0005Uv-BU; Wed, 23 Aug 2006 03:31:17 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id D6A588A0022; Wed, 23 Aug 2006 09:23:08 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 23 Aug 2006 00:06:21 -0400") 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:58762 Archived-At: Richard Stallman writes: > In any case, I think that emacs should simply reject to run the > tutorial if VIPER is enabled > > I tend to agree. And I think it should be the same for CUA mode. The only key-binding in the tutorial which CUA mode really messes up is C-v. But that is the first key which the user is asked to type. Other than that, the tutorial is quite useful even for users of CUA! So one approach is to just bind locally bind cua-enable-cua-keys to nil in the tutorial buffer and make a note like this: The purpose of the tutorial is to teach you the basic, standard Emacs key bindings. Therefore, CUA mode's C-z C-x C-c and C-v bindinds have been disabled in this tutorial buffer. [Details] We could do similar things for viper, ie. The purpose of the tutorial is to teach you the basic, standard Emacs key bindings. Therefore, VIPER mode's key bindinds have been disabled in this tutorial buffer. [Details] And if both viper and cua are enabled, something like The purpose of the tutorial is to teach you the basic, standard Emacs key bindings. Therefore, CUA and VIPER mode's key bindinds have been disabled in this tutorial buffer. [Details] And if other key bindings have been disabled: The purpose of the tutorial is to teach you the basic, standard Emacs key bindings. Therefore, some non-standard key bindinds have been disabled in this tutorial buffer. [Details] The [Details] button will open a *Help* window which shows all the differences in key bindings. > I don't see much point in teaching an absolute beginner standard Emacs > if that is not what he will get when he runs Emacs normally. True, but it is still good to know about C-b C-f C-n and C-p !!! > Another idea occurs to me: display the list of changed bindings > together with a message like this: > > The tutorial won't work for you, because someone > has customized your Emacs, changing these basic commands. > Probably whoever set up Emacs for you did it in a nonstandard way. > Please ask him to teach you to use this nonstandard Emacs > or else ask him to change your Emacs setup back to standard. > > That has the benefit of being simple, avoiding all the problems > people are talking about now, and encouraging people not to > customize Emacs when they set it up for others. Actually the last example I gave above may cover all cases, i.e. show the following paragraph at the beginning of the tutorial and disable all non-standard bindings in the tutorial: The purpose of the tutorial is to teach you the basic, standard Emacs key bindings. Therefore, some non-standard key bindinds have been disabled in this tutorial buffer. [Details] The [Details] button will open a *Help* window which shows all the non-standard key bindings. -- Kim F. Storm http://www.cua.dk