emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shift Tab should move backward in help buffers


From: David Hunter
Subject: Re: Shift Tab should move backward in help buffers
Date: Mon, 27 Jun 2005 00:39:52 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

Andreas Schwab wrote:

Depends on the terminal.  At least S-tab is sometimes recognizable as
backtab, like on xterm (where S-tab sends "ESC [ Z", detected via terminfo
kcbt).

Hmm... so, in all keymaps that want to bind a backwards tab, you'd have to do 
this to make everyone happy:

   (define-key map [backtab] 'backward-button)
   (define-key map [(shift tab)] 'backward-button)
   (define-key map [iso-lefttab] 'backward-button)
   (define-key map [(shift iso-lefttab)] 'backward-button)

Ugh.  Why not force the window terminal customizations (e.g., w32-term.el) to 
"bind" such tabs to [backtab], just like x-win.el already does:

   (define-key function-key-map [(shift tab)] [backtab])
   (define-key map [iso-lefttab] 'backward-button)
   (define-key map [(shift iso-lefttab)] 'backward-button)

So far, the only downside I've seen is that pressing Shift-TAB in a buffer that doesn't bind 
<backtab> causes a "<backtab> is undefined" error, instead of translating to 
plain ol' TAB.

-Dave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]