From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Proposal: merge [S-tab] and [backtab]
Date: Mon, 02 Aug 2010 18:42:00 +0100 [thread overview]
Message-ID: <m11vagvrmf.fsf@cam.ac.uk> (raw)
In-Reply-To: 4C564807.7020903@gmail.com
On 2010-08-02 05:22 +0100, Paul Griepentrog wrote:
> Just a tidbit of computer evolution: the [backtab] key does not
> exist on modern keyboards. Of course, Emacs uses this key in
> several modes (grep, compile, erc, ...). So, in the place of
> [backtab] within Emacs, [S-tab] is the conventional binding for a
> poor man's backtab. For convenience, some terminals (X,
> Windows, and recently: NextStep) translate the keypress of
> [S-tab] into [backtab] and nobody is the wizer.
>
> Unless... you want to bind [S-tab] in a mode. Then you find out
> [S-tab] is NOT the key sequence you thought it was. The binding
> worked on X and Windows, but not at the terminal (or another
> platform which did not link [S-tab] to [backtab]). What
> happened?! Well, so you bind [backtab] as well.
>
> My proposal is to universally translate [S-tab] and [S-iso-tab]
> into [backtab] across all terminals. At least then you can bind
> [backtab] and know it will work across platforms and terminals.
> Included in this proposal is removing obsolete bindings to
> [S-tab] and [S-iso-tab] for modes within Emacs and updating the
> documentation. I include [S-iso-tab] since it is yet another
> abused synonym for [backtab].
>
> Note: this change will NOT ADD or REMOVE any bindings. It is to
> unify the keypresses of [S-tab], [S-iso-tab] to [backtab] where
> they already exist.
>
> I don't pretend to know the history of the keybindings or
> specific terminals, but a uniform view of [S-tab] vs [backtab]
> makes sense to me.
>
> Thoughts?
For example, eshell-cmpl-initialize has:
;; jww (1999-10-19): Will this work on anything but X?
(if (featurep 'xemacs)
(define-key eshell-mode-map [iso-left-tab] 'pcomplete-reverse)
(define-key eshell-mode-map [(shift iso-lefttab)] 'pcomplete-reverse)
(define-key eshell-mode-map [(shift control ?i)] 'pcomplete-reverse))
And yet it still fails on some systems.
Leo
next prev parent reply other threads:[~2010-08-02 17:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-02 4:22 Proposal: merge [S-tab] and [backtab] Paul Griepentrog
2010-08-02 17:42 ` Leo [this message]
2010-08-02 18:09 ` Drew Adams
2010-08-02 20:11 ` Stefan Monnier
2010-08-02 20:15 ` Drew Adams
2010-08-02 20:27 ` Chad Brown
2010-08-03 6:27 ` Paul Griepentrog
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m11vagvrmf.fsf@cam.ac.uk \
--to=sdl.web@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).