[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cua-mode binding of S-return
From: |
Kim F. Storm |
Subject: |
Re: Cua-mode binding of S-return |
Date: |
Sat, 07 May 2005 23:58:49 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Peter Heslin <address@hidden> 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-<TAB>'. 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-<RET>'
> (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-<RET>' when there's a window system
> and `M-<TAB>' when there's not. In the following, I will assume
> that a window system is being used and will therefore refer to
> `C-<RET>'.
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 <address@hidden> http://www.cua.dk