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 binding of S-return Date: Sat, 07 May 2005 23:58:49 +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 1115503394 27848 80.91.229.2 (7 May 2005 22:03:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 May 2005 22:03:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 08 00:03:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUXNo-0006we-Js for ged-emacs-devel@m.gmane.org; Sun, 08 May 2005 00:02:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUXVo-0003pV-NJ for ged-emacs-devel@m.gmane.org; Sat, 07 May 2005 18:11:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DUXRx-0002uD-KM for emacs-devel@gnu.org; Sat, 07 May 2005 18:07:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DUXRi-0002ok-QQ for emacs-devel@gnu.org; Sat, 07 May 2005 18:06:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUXRe-0002he-5Z for emacs-devel@gnu.org; Sat, 07 May 2005 18:06:46 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DUXPT-0007Eb-Ur for emacs-devel@gnu.org; Sat, 07 May 2005 18:04:32 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id F0CBF26283A; Sat, 7 May 2005 23:58:44 +0200 (CEST) Original-To: Peter Heslin In-Reply-To: (Peter Heslin's message of "Sat, 7 May 2005 00:46:48 +0000 (UTC)") 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:36840 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36840 Peter Heslin writes: > 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-'. As James explains, this is a general problem, i.e. not limited to nxml-mode. As such, it should be solved generally, rather than hotch-potch fixes in individual packages. Usually, I just use ESC TAB for completion when M-TAB doesn't work, and I guess other users do the same, as I don't hear many complaints that M-TAB doesn't work... I don't know what other good alternative there is for M-TAB, but although C-return could seem ok, I still think it would be better used for rectangle marking due to the analogy with C-SPC. >> 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? Yes, and I make the mistake myself too often! -- Kim F. Storm http://www.cua.dk