From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: cua-mode and the tutorial Date: Sun, 27 Aug 2006 10:35:31 +0200 Message-ID: <44F15953.6060405@student.lu.se> References: <44C8F069.1070002@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156667774 7879 80.91.229.2 (27 Aug 2006 08:36:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 08:36:14 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 27 10:36:13 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 1GHG7p-0007XH-GQ for ged-emacs-devel@m.gmane.org; Sun, 27 Aug 2006 10:36:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHG7o-0000xw-T8 for ged-emacs-devel@m.gmane.org; Sun, 27 Aug 2006 04:36:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHG7T-0000xG-66 for emacs-devel@gnu.org; Sun, 27 Aug 2006 04:35:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHG7Q-0000wq-4A for emacs-devel@gnu.org; Sun, 27 Aug 2006 04:35:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHG7P-0000wn-U0 for emacs-devel@gnu.org; Sun, 27 Aug 2006 04:35:47 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GHGG3-0007ms-Pk; Sun, 27 Aug 2006 04:44:44 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.075) id 44A135F100CE9BA5; Sun, 27 Aug 2006 10:35:33 +0200 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: "Kim F. Storm" In-Reply-To: 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:58931 Archived-At: Kim F. Storm wrote: > Richard Stallman writes: > > >> 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] >> >> I have no objection to that. If you think it does a good job of >> dealing with CUA mode, then let's do it. >> > > IMO, it is ok. > > >> But we should make it offer to delete the customization >> in case the user was not asked about it. >> > > Too complex for very little benefit IMHO. > > We don't know what method was used to enable CUA-mode. It could be a > customization, but it could also be an explicit call to CUA-mode in > emacs. So that is not trivial to do right in all cases. > > >> In theory we could do this, but is it adequate for learning to use >> Emacs with viper? I doubt it. >> > > Ok, I agree. So we seem to agree that the tutorial should not start > at all if viper is enabled, but just list the differences in > key bindings. > > >> 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] >> >> No, in general this is not a useful way to deal with the situation. >> > > Ok. > > >> So I reject this approach in general, but I will accept it for CUA mode. >> > > Ok. > > Lennart, comments? > Sorry, I have not had time to comment for some days. I have however followed the discussion. Based on this and my own thoughts I suggest the following solution for the tutorial: 1) Remove all non-default key bindings in the tutorial. I used that approach from the beginning so I have code for that. 2) If there were non-default key bindings then put a note with yellow background like in my latest tutorial.el I sent. However make this note shorter. As Kim pointed out a long note can make the first steps in the tutorial non-working. 3) From this note make a link called "Details" that shows the non-standard key bindings in a help buffer in a way similar to those in my latest tutorial.el. 4) Since there has also been some concern about telling the user how to disable CUA mode and Viper I think it will be good to put some information in the help buffer about this if anyone of those has been turned on. This could tell about customization as the best approach to turn them on/off if the user has not been using that. What do you think about this solution?