From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: (debug) backtrace: how to show source code at current location. Date: Thu, 6 Jan 2011 05:57:11 -0800 Message-ID: References: <4678E0C82C5D4DAB81AF90DFA7E07027@us.oracle.com> <871v4rapwn.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294322317 20397 80.91.229.12 (6 Jan 2011 13:58:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2011 13:58:37 +0000 (UTC) To: "'Larry Evans'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 06 14:58:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaqMJ-00014m-9f for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 14:58:31 +0100 Original-Received: from localhost ([127.0.0.1]:42107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaqMI-0003Y5-Ra for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 08:58:30 -0500 Original-Received: from [140.186.70.92] (port=35042 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaqLy-0003Y0-Cg for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 08:58:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaqLx-0006L0-8i for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 08:58:10 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:56444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaqLx-0006Kn-1B for help-gnu-emacs@gnu.org; Thu, 06 Jan 2011 08:58:09 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p06Dw53l000709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Jan 2011 13:58:07 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p06Dw45D028458; Thu, 6 Jan 2011 13:58:05 GMT Original-Received: from abhmt006.oracle.com by acsmt354.oracle.com with ESMTP id 935560671294322235; Thu, 06 Jan 2011 05:57:15 -0800 Original-Received: from dradamslap1 (/10.159.220.58) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Jan 2011 05:57:14 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcutXUKID9dX3pJfRtiSf3Z0Gm1MEQASsjxA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78259 Archived-At: > > C-h i m Elisp i define-key > > Thanks Drew. > Doing that got me to an info page with: > > If KEY is `[t]', this sets the default binding in > KEYMAP. When an > event has no binding of its own, the Emacs command loop uses the > keymap's default binding, if there is one. > > but that doesn't tell me what are the possible values for t in `[t]'. > How did you know that "iso-left-tab" was a possible value for t? > As mentioned in my other post, I found grep.el had "backtab" instead > of "iso-left-tab". I tried fishing through several info files after > the define-key one; however, none I viewed showed what the possible > values were for the t in [t]. No, [t] is something else, which you needn't worry about here. > Where is this information? On the same page I indicated (`i define-key' -> node `Changing Key Bindings'). It says: In writing the key sequence to rebind, it is good to use the special escape sequences for control and meta characters (*note String Type::). The syntax `\C-' means that the following character is a control character and `\M-' means that the following character is a meta character. Thus, the string `"\M-x"' is read as containing a single `M-x', `"\C-f"' is read as containing a single `C-f', and `"\M-\C-x"' and `"\C-\M-x"' are both read as containing a single `C-M-x'. You can also use this escape syntax in vectors, as well as others that aren't allowed in strings; one example is `[?\C-\H-x home]'. *Note Character Type::. Notice the last sentence, before the Note. The example uses the `home' function key, but a simpler example such as [iso-left-tab] would be easier to understand for just a function key alone. The paragraph that follows that one also discusses key notation. Also, `i function keys' takes you to node `Function Keys', which describes keys such as `iso-left-tab' (aka `'. Node `Menu Example' also mentions the vector notation for function keys (such as [iso-left-tab]). I agree that there doesn't seem to be an example in node `Changing Key Bindings' of the vector notation with a simple function key. And it would help for that node to have some cross references to the other nodes. And it's possible that a complete discussion of this is elsewhere in the manual somewhere. Why not file a doc bug to have this info made more noticeable and easier to find? To do that: `M-x report-emacs-bug'. Thx.