From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Heslin Newsgroups: gmane.emacs.devel Subject: Re: Cua-mode binding of S-return Date: Sat, 7 May 2005 00:46:48 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1115428233 22850 80.91.229.2 (7 May 2005 01:10:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 May 2005 01:10:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 07 03:10:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUDpL-0007qt-Se for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 03:09:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUDx7-0006cE-AD for ged-emacs-devel@m.gmane.org; Fri, 06 May 2005 21:17:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DUDkL-0002Ep-G5 for emacs-devel@gnu.org; Fri, 06 May 2005 21:04:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DUDjx-00026E-2a for emacs-devel@gnu.org; Fri, 06 May 2005 21:04:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUDjs-00022G-EV for emacs-devel@gnu.org; Fri, 06 May 2005 21:04:16 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DUDfI-0001iB-2W for emacs-devel@gnu.org; Fri, 06 May 2005 20:59:32 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DUDT9-0003QA-Vg for emacs-devel@gnu.org; Sat, 07 May 2005 02:46:59 +0200 Original-Received: from 213-152-32-235.dsl.eclipse.net.uk ([213.152.32.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 May 2005 02:46:59 +0200 Original-Received: from public by 213-152-32-235.dsl.eclipse.net.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 May 2005 02:46:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-152-32-235.dsl.eclipse.net.uk User-Agent: slrn/0.9.8.0 (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:36787 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36787 Apologies for coming late to this thread ... On 2005-04-28, Kim F. Storm wrote: > > Currently cua-mode uses S-return to toggle rectangle marking. > > This works nicely most of the time, but it is just too easy to > accidentally hit it after another shifted key, e.g. an upper case > letter. I have never had this problem, even though I use cua-mode and I am a very bad, horribly sloppy typist. > Therefore, I would like to move this to another binding, but I > don't quite know which. > > C-return seems like a good candidate, analogue to C-space for the normal mark. C-return is used by nxml-mode for nxml-complete, its incredibly useful context-sensitive autocompletion function. nxml-mode is not a part of Emacs (yet), so strictly speaking it's not a conflict, but ... Here is a bit more detail from James Clark (in nxml-mode.texi) The traditional GNU Emacs key combination for completion in a buffer is `M-'. However, many window systems and window managers use this key combination themselves (typically for switching between windows) and do not pass it to applications. It's hard to find key combinations in GNU Emacs that are both easy to type and not taken by something else. `C-' (i.e. pressing the Enter or Return key, while the Ctrl key is held down) is available. It won't be available on a traditional terminal (because it is indistinguishable from Return), but it will work with a window system. Therefore we adopt the following solution by default: use `C-' when there's a window system and `M-' when there's not. In the following, I will assume that a window system is being used and will therefore refer to `C-'. > But we have talked about separating the cua-mode rectangle code > from cua, and as such a good binding to toggle rectangle marking > will have to be found anyway. Have you really had complaints about S-return? Peter