From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key Resent-From: Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2011 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 7803@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129443470816720 (code B ref -1); Fri, 07 Jan 2011 21:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2011 21:11:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbJb9-0004Lc-EH for submit@debbugs.gnu.org; Fri, 07 Jan 2011 16:11:48 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbJUn-0004D9-VO for submit@debbugs.gnu.org; Fri, 07 Jan 2011 16:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbJbq-0003Qf-Ed for submit@debbugs.gnu.org; Fri, 07 Jan 2011 16:12:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:42215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbJbq-0003Qa-An for submit@debbugs.gnu.org; Fri, 07 Jan 2011 16:12:30 -0500 Received: from [140.186.70.92] (port=41615 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbJbo-0001dW-MY for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 16:12:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbJbn-0003Q9-C5 for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 16:12:28 -0500 Received: from omta02-pub.suddenlink.net ([208.180.40.74]:53313 helo=omta02.suddenlink.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbJbn-0003Px-6m for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 16:12:27 -0500 Received: from evansl-desktop ([74.192.28.166]) by omta02.suddenlink.net (InterMail vM.7.09.02.06 201-2219-117-110-20091224) with ESMTP id <20110107211223.MVJJ14137.omta02.suddenlink.net@evansl-desktop> for ; Fri, 7 Jan 2011 15:12:23 -0600 Date: Fri, 07 Jan 2011 15:12:23 -0600 Message-Id: <871v4o1kqw.fsf@pop.suddenlink.net> From: X-Cloudmark-Analysis: v=1.1 cv=1ySWNNja79c/jgOHmXRKbmV/BjW144TMdFddqTN+fW0= c=1 sm=0 a=lklJgEX9kLIA:10 a=QAYzQTy68j8A:10 a=aR16PxjQAAAA:8 a=tjUEH51kz3XLGAhYdI4A:9 a=Z7gFFjccUrZBWWnPPPQA:7 a=vqqD9AsOlfKQ4pHa4Bz7b-jk2BEA:4 a=CiSHi91Bn78A:10 a=e8b8xb1BFzkcv4KU:21 a=lzPrAEvrtQv9u6K9:21 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Fri, 07 Jan 2011 16:11:45 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This is a documentation bug only. I was trying to figure out how to specify either tab and shift-tab as the KEY argument to define-key. While in emacs, I entered commands: C-h i m Elisp i define-key this got me to an info node where the mode line contained: *info* (elisp) Changing Key Bindings 25% (48,0) (Info Narrow) which contained: -- Function: define-key keymap key binding This function sets the binding for KEY in KEYMAP. (If KEY is more than one event long, the change is actually made in another keymap reached from KEYMAP.) The argument BINDING can be any Lisp object, but only certain types are meaningful. (For a list of meaningful types, see *note Key Lookup::.) The value returned by `define-key' is BINDING. 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. however, there's no explanation of what t in `[t]' can be. Also, the phrase, 'default binding', implies there's a non-default binding. IOW, there's more than one binding for a KEY, which is confusing to me because that implies a KEY is ambiguous, i.e. pressing KEY could mean either execute the default or non-default binding. A link to some explanation of 'default binding' would clarify. Elsewhere in the 'Changing Key Bindings' info node, there's this: 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::. However, there's no indication of what the code for shift is. I could guess \S; however, that should be explicitly shown or a link provided which does show it. Only by browsing around info could I find this: The Lisp syntax for the shift bit is `\S-'; thus, `?\C-\S-o' or `?\C-\S-O' represents the shifted-control-o character. in the 'Other Char Bits' info node. In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 on yellow, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10706000 configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: C value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: desktop-save-mode: t global-auto-revert-mode: t recentf-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 2 C-a e C-@ > C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n x r e p o r t - e m Recent messages: uncompressing emacs-7.gz...done uncompressing emacs-8.gz...done Wrote /home/evansl/.emacs.desktop.lock Desktop: 10 buffers restored, 1 failed to restore. c-tab-stop-my-list message For information about GNU Emacs and the GNU system, type C-h C-a. Startup with window [1] c-tab-stop-my-list message Mark set [3 times] Auto-saving...done From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jan 2011 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Cc: 7803@debbugs.gnu.org Received: via spool by 7803-submit@debbugs.gnu.org id=B7803.129444133125762 (code B ref 7803); Fri, 07 Jan 2011 23:03:02 +0000 Received: (at 7803) by debbugs.gnu.org; 7 Jan 2011 23:02:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbLJz-0006hT-KA for submit@debbugs.gnu.org; Fri, 07 Jan 2011 18:02:11 -0500 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbLJx-0006hH-Nx for 7803@debbugs.gnu.org; Fri, 07 Jan 2011 18:02:10 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id D4073188A193; Sat, 8 Jan 2011 00:09:26 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 00BC81C00182; Sat, 8 Jan 2011 00:09:27 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id vtJRQuCqshQN; Sat, 8 Jan 2011 00:09:26 +0100 (CET) Received: from igel.home (ppp-93-104-131-69.dynamic.mnet-online.de [93.104.131.69]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 8 Jan 2011 00:09:25 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id C2F91CA2A0; Sat, 8 Jan 2011 00:09:25 +0100 (CET) From: Andreas Schwab References: <871v4o1kqw.fsf@pop.suddenlink.net> X-Yow: Are you selling NYLON OIL WELLS?? If so, we can use TWO DOZEN!! Date: Sat, 08 Jan 2011 00:09:25 +0100 In-Reply-To: <871v4o1kqw.fsf@pop.suddenlink.net> (cppljevans@suddenlink.net's message of "Fri, 07 Jan 2011 15:12:23 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) writes: > however, there's no explanation of what t in `[t]' can be. It is the symbol `t'. > Also, the phrase, 'default binding', implies there's a non-default > binding. The term `default binding' is explained in the same paragraph. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key Resent-From: Larry Evans Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jan 2011 00:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12944479755251 (code B ref -1); Sat, 08 Jan 2011 00:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2011 00:52:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbN38-0001Me-U4 for submit@debbugs.gnu.org; Fri, 07 Jan 2011 19:52:55 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbN36-0001MR-EL for submit@debbugs.gnu.org; Fri, 07 Jan 2011 19:52:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbNA9-00024a-Uy for submit@debbugs.gnu.org; Fri, 07 Jan 2011 20:00:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbNA9-00024V-Sj for submit@debbugs.gnu.org; Fri, 07 Jan 2011 20:00:09 -0500 Received: from [140.186.70.92] (port=53067 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbNA9-0003e4-2W for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 20:00:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbNA7-00024I-Ol for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 20:00:08 -0500 Received: from lo.gmane.org ([80.91.229.12]:46834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbNA7-000249-Cr for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 20:00:07 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PbNA5-0006to-5Z for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2011 02:00:05 +0100 Received: from r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net ([74.192.28.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 02:00:05 +0100 Received: from cppljevans by r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 02:00:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Larry Evans Date: Fri, 07 Jan 2011 18:47:28 -0600 Lines: 35 Message-ID: References: <871v4o1kqw.fsf@pop.suddenlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) On 01/07/11 17:09, Andreas Schwab wrote: > writes: > >> however, there's no explanation of what t in `[t]' can be. > > It is the symbol `t'. > >> Also, the phrase, 'default binding', implies there's a non-default >> binding. > > The term `default binding' is explained in the same paragraph. > Ah, so when it says: If KEY is `[t]', this sets the default binding in KEYMAP. it means: If the call to define-key is of the form: (define-key KEYMAP [T] BINDING) then this sets the default binding in KEYMAP to BINDING. which, I guess means when the KEY argument is *not* in the form of a vector, then it sets the non-default binding. OOPS, wait, that doesn't make sense to me eithe because a default and non-default bindings would mean pressing KEY or the event represented by KEY has at least 2 meansing. So, the paragraph is still unclear to me. What am I missing? -Larry From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jan 2011 01:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Larry Evans Cc: 7803@debbugs.gnu.org Received: via spool by 7803-submit@debbugs.gnu.org id=B7803.12944509729307 (code B ref 7803); Sat, 08 Jan 2011 01:43:02 +0000 Received: (at 7803) by debbugs.gnu.org; 8 Jan 2011 01:42:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbNpU-0002Q4-5C for submit@debbugs.gnu.org; Fri, 07 Jan 2011 20:42:52 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbNpS-0002Pq-Lh for 7803@debbugs.gnu.org; Fri, 07 Jan 2011 20:42:50 -0500 Received: from localhost ([127.0.0.1]:39956) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbNwT-0002t3-9W; Fri, 07 Jan 2011 20:50:05 -0500 References: <871v4o1kqw.fsf@pop.suddenlink.net> From: Glenn Morris X-Spook: assassinate sweep red noise defense information warfare X-Ran: LBi>^4)sV?_]T-Koc-,>-wsyW{+WFRWgTg@KW`1ut}M_qi:6 X-Hue: magenta X-Attribution: GM Date: Fri, 07 Jan 2011 20:50:04 -0500 In-Reply-To: (Larry Evans's message of "Fri\, 07 Jan 2011 18\:47\:28 -0600") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Larry Evans wrote: > Ah, so when it says: > > If KEY is `[t]', this sets the default binding in KEYMAP. > > it means: You're overthinking it. It means literally what it says: a vector with a single element `t'. Not a vector with any other contents. `t' in Emacs documentation always means the special symbol `t', for truth. Rather than reading the Lispref, the Emacs manual offers a better introduction to key bindings for the purposes of user customization. (I admit I couldn't see a clear mention of "S-" = "shift" there, though.) From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key Resent-From: Larry Evans Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jan 2011 03:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129445567215796 (code B ref -1); Sat, 08 Jan 2011 03:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2011 03:01:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbP3I-00046j-Go for submit@debbugs.gnu.org; Fri, 07 Jan 2011 22:01:12 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbP3G-00046X-98 for submit@debbugs.gnu.org; Fri, 07 Jan 2011 22:01:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbPAK-0008LC-2S for submit@debbugs.gnu.org; Fri, 07 Jan 2011 22:08:28 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbPAK-0008L8-0D for submit@debbugs.gnu.org; Fri, 07 Jan 2011 22:08:28 -0500 Received: from [140.186.70.92] (port=33629 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbPAJ-0001TW-3X for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 22:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbPAH-0008Hb-Qf for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 22:08:26 -0500 Received: from lo.gmane.org ([80.91.229.12]:54288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbPAH-0008HM-Eg for bug-gnu-emacs@gnu.org; Fri, 07 Jan 2011 22:08:25 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PbPAF-0007W0-AG for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2011 04:08:23 +0100 Received: from r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net ([74.192.28.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 04:08:23 +0100 Received: from cppljevans by r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Jan 2011 04:08:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Larry Evans Date: Fri, 07 Jan 2011 21:08:09 -0600 Lines: 66 Message-ID: References: <871v4o1kqw.fsf@pop.suddenlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: r74-192-28-166.bcstcmta01.clsttx.tl.dh.suddenlink.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) On 01/07/11 19:50, Glenn Morris wrote: > Larry Evans wrote: > >> Ah, so when it says: >> >> If KEY is `[t]', this sets the default binding in KEYMAP. >> >> it means: > > You're overthinking it. It means literally what it says: a vector with > a single element `t'. Not a vector with any other contents. > `t' in Emacs documentation always means the special symbol `t', for truth. Ah. OK. So if the KEY in (define-key KEYMAP KEY BINDING) is `[t]', then BINDING is ignored, and, I guess, the default binding for *all* keys in KEYMAP are set to the default binding? I guess the "default binding" is self-insert, IOW. OOPS, now. I finally went to help, entered define-key, and got: > define-key is a built-in function in `C source code'. > > (define-key keymap key def) > > In keymap, define key sequence key as def. > keymap is a keymap. > > key is a string or a vector of symbols and characters meaning a > sequence of keystrokes and events. Non-ASCII characters with codes > above 127 (such as ISO Latin-1) can be included if you use a vector. > Using [t] for key creates a default definition, which applies to any > event type that has no other definition in this keymap. which finally cleared things up. This tells me that after: (define KEYMAP [t] DEFAULT_BINDING) then any key, KEY, which has *not* occurred in a call: (define-key KEYMAP KEY def) for some value of def, has the DEFAULT_BINDING in KEYMAP. Is that right? > > Rather than reading the Lispref, the Emacs manual offers a better > introduction to key bindings for the purposes of user customization. > > (I admit I couldn't see a clear mention of "S-" = "shift" there, though.) > After fishing around the manual, I found it in the info node, "Other Char Bits" which contains: The Lisp syntax for the shift bit is `\S-'; thus, `?\C-\S-o' or `?\C-\S-O' represents the shifted-control-o character. The ? was a bit mysterious at first, but more fishing showed me what it meant, but I don't remember where that info node is. From unknown Tue Jun 17 01:35:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7803: 23.1; Need better definition of vector notation in define-key In-Reply-To: <871v4o1kqw.fsf@pop.suddenlink.net> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jan 2011 23:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Larry Evans Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129470206529012 (code B ref -1); Mon, 10 Jan 2011 23:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jan 2011 23:27:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcR9M-0007Xs-MR for submit@debbugs.gnu.org; Mon, 10 Jan 2011 18:27:44 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcR9K-0007Xd-N6 for submit@debbugs.gnu.org; Mon, 10 Jan 2011 18:27:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcRGV-0001rn-VM for submit@debbugs.gnu.org; Mon, 10 Jan 2011 18:35:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcRGV-0001rQ-Sc for submit@debbugs.gnu.org; Mon, 10 Jan 2011 18:35:07 -0500 Received: from [140.186.70.92] (port=43526 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcRGK-0006a8-Bz for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 18:35:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcRFz-0001jb-76 for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 18:34:36 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:40710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcRFz-0001jX-4I for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 18:34:35 -0500 Received: from localhost ([127.0.0.1]:39179) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcRFu-0007Uq-Vq; Mon, 10 Jan 2011 18:34:31 -0500 References: <871v4o1kqw.fsf@pop.suddenlink.net> From: Glenn Morris X-Spook: $400 million in gold bullion Ceridian NORAD world X-Ran: Gih)V>GZpF;nKFx]'[s\\HQGoCI8s-7/2/MOe/{ZDv1alrXCko=D8<*!s<(+ly~1n%B1{n X-Hue: red X-Attribution: GM Date: Mon, 10 Jan 2011 18:34:30 -0500 Message-ID: <7s8vyscozd.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Larry Evans wrote: > (define KEYMAP [t] DEFAULT_BINDING) > > then any key, KEY, which has *not* occurred in a call: > > (define-key KEYMAP KEY def) > > for some value of def, has the DEFAULT_BINDING in KEYMAP. Yes. > After fishing around the manual, I found it in the info node, "Other > Char Bits" which contains: > > The Lisp syntax for the shift bit is `\S-'; thus, `?\C-\S-o' or > `?\C-\S-O' represents the shifted-control-o character. > > The ? was a bit mysterious at first, but more fishing showed > me what it meant, but I don't remember where that info node is. If you read the "Key Bindings" section in the Emacs manual (which again, I think provides a better first introduction than the Elisp manual), it gives clear examples of the vector syntax ("Rebinding Keys in Your Init File"). It has C- and M-, it just doesn't mention S-, AFAICS. C- and M- are explained right at the start of the manual ("2 Kinds of User Input"). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 14 13:15:25 2011 Received: (at control) by debbugs.gnu.org; 14 Jul 2011 17:15:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhPVU-0005up-SM for submit@debbugs.gnu.org; Thu, 14 Jul 2011 13:15:25 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhPVT-0005j2-Fz for control@debbugs.gnu.org; Thu, 14 Jul 2011 13:15:23 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QhPVI-0005DA-Hx for control@debbugs.gnu.org; Thu, 14 Jul 2011 19:15:12 +0200 Date: Thu, 14 Jul 2011 19:15:11 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #7803 X-MailScanner-ID: 1QhPVI-0005DA-Hx X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311268512.86068@0kdZqTwX/Z5HaWbC2iPGkw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 7803