From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hunter Newsgroups: gmane.emacs.devel Subject: Re: Shift Tab should move backward in help buffers Date: Mon, 27 Jun 2005 00:39:52 -0400 Message-ID: <42BF8318.9030307@comcast.net> References: <42BEB2F6.9010409@student.lu.se> <42BED80E.4060705@comcast.net> <42BEDE1C.1030102@wanadoo.fr> <200506261713.j5QHDWq17944@raven.dms.auburn.edu> <42BEE64C.4040405@student.lu.se> <200506261803.j5QI3Dv17974@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1119847943 20173 80.91.229.2 (27 Jun 2005 04:52:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 04:52:23 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, david.ponce@wanadoo.fr, Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 06:52:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DmlbB-00084h-Hn for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 06:51:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmlij-0000Yo-5H for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 00:59:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DmlhJ-00007I-RE for emacs-devel@gnu.org; Mon, 27 Jun 2005 00:58:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dmlh8-0008Ut-Si for emacs-devel@gnu.org; Mon, 27 Jun 2005 00:58:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmlh5-0008Nt-4V for emacs-devel@gnu.org; Mon, 27 Jun 2005 00:58:03 -0400 Original-Received: from [204.127.202.56] (helo=sccrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DmlTp-0000tz-3l for emacs-devel@gnu.org; Mon, 27 Jun 2005 00:44:21 -0400 Original-Received: from [192.168.42.3] (pcp08774087pcs.mtlrel01.nj.comcast.net[68.36.32.221]) by comcast.net (sccrmhc12) with ESMTP id <2005062704395501200h9ihoe>; Mon, 27 Jun 2005 04:40:04 +0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en Original-To: Andreas Schwab In-Reply-To: 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:39609 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39609 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 causes a " is undefined" error, instead of translating to plain ol' TAB. -Dave