From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Default Emacs keybindings (was: Re: Menu suggestion) Date: 27 Apr 2004 00:33:10 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083012122 2809 80.91.224.253 (26 Apr 2004 20:42:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2004 20:42:02 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 26 22:41:53 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BICvJ-0003sv-00 for ; Mon, 26 Apr 2004 22:41:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BICvJ-0007w3-00 for ; Mon, 26 Apr 2004 22:41:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BICpe-0002gR-Q1 for emacs-devel@quimby.gnus.org; Mon, 26 Apr 2004 16:36:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BICpJ-0002cu-L7 for emacs-devel@gnu.org; Mon, 26 Apr 2004 16:35:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BICol-0002Xx-SJ for emacs-devel@gnu.org; Mon, 26 Apr 2004 16:35:40 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BICna-00021T-81; Mon, 26 Apr 2004 16:33:54 -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 B99F35EE05A; Mon, 26 Apr 2004 22:33:24 +0200 (CEST) Original-To: David Kastrup In-Reply-To: Original-Lines: 97 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22192 David Kastrup writes: > Me neither. If we have a need for a separate significantly different > traditional mode, we lose most of our advantage. CUA-mode, IIRC, > assigns special meaning to its characters only when there is an active > selection. Right. > It is a compromise, of course. (I think we still are not > there with regard to consistent selection behavior where we should be, > but that's a somewhat different problem). Can you emphasize on what's missing... > If what I think I understood from the CUA descriptions is correct, no > key sequences starting with C-c or C-x can be used with an active > selection. For example, selecting an active region and using > C-c C-e in AUCTeX (inserts environment around an active region, if > there is one) would not work in CUA mode, ever. That's completely untrue!! There are actually three ways to enter C-c C-e even when the region is active: 1) Type the C-c C-e very quickly (the quicklyness is configurable). 2) Type C-c C-c quickly, followed by C-e 3) Type S-C-c C-e 1 can be used for a sequence of control characters (i.e. where you hold down CTRL during the whole sequence). 2 can be used generally, typing C-c C-c (or C-x C-x) very quickly is trivial, then you can complete the rest of the sequence at your own pace. 3 can be used generally, at any pace. Which method to prefer is a personal choice. I use all of them, but in reality, I use them VERY rarely -- and I have cua mode turned on permanently, and have been using it (in many versions) since 1997. One reason I don't need them is that cua has integrated register and rectangle support in the normal C-c and C-x bindings, i.e. I never use any of the standard register or rectangle commands. Example: Mark a rectangle, copy it to a register, move to another place and insert the rectangle from that register: S-RET (start marking of rectangle) move the cursor to extend the rectangle (notice that with cua you can extend the rectangle beyond the end of the current line). M-2 C-c => copy rectangle to register 2 .. move somewhere else M-2 C-v => insert rectangle from register 2 It's just so simple, that I don't need the "efficient" emacs bindings (that I never manage to remember anyway). So for me, this is practically a non-problem. > > Emacs is very solidly in the "easy to use, a pig to learn" camp. If > > you make make CUA bindings default so as to make it easier to learn > > superficially, you'll make it harder to learn "properly". I don't see how C-x r r 2 is "easier to use" than M-2 C-c -- but I agree that it is "a pig to learn" :-) > > Even if Emacs was equipped with CUA bindings, it still wouldn't be a > > good tool to give nitrogen hackers. > > So we need more changes if we want to have Emacs at one time something > which does not require turning people into hackers before they can > expect to be comfortable using Emacs. Could we have some comments from users of CUA, please! The current thread of emacs users who have never used CUA discuss whether it is useful or not seems like a waste of time... > > That's ok. Nobody expects that we will finish this task in a single > step. And blindly enabling any mode that is supposed to make things > more mainstream-like, without assessing its drawbacks and trying to > remove them where possible, would be insane. Please list those drawbacks -- so I can fix them. -- Kim F. Storm http://www.cua.dk