From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Adding xterm-extras to Emacs Date: Fri, 14 Sep 2007 10:04:57 -0400 Message-ID: References: <200706122221.l5CMLMoY018433@oogie-boogie.ics.uci.edu> <200706122243.l5CMhMLv019775@oogie-boogie.ics.uci.edu> <200706130047.l5D0lqUE027336@oogie-boogie.ics.uci.edu> <877iq8kx46.fsf@dur.ac.uk> <200706131415.l5DEF98f009840@oogie-boogie.ics.uci.edu> <200706140508.l5E58mP0007225@oogie-boogie.ics.uci.edu> <200709131658.l8DGw86P000060@oogie-boogie.ics.uci.edu> <200709140102.l8E12pVF020239@oogie-boogie.ics.uci.edu> <200709140130.l8E1U9Hi020965@oogie-boogie.ics.uci.edu> <200709140232.l8E2Wj0A022451@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189778779 22365 80.91.229.12 (14 Sep 2007 14:06:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 14:06:19 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 16:06:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IWBn6-0001eC-T8 for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 16:05:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWBn6-00085m-FV for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 10:05:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWBn3-00085Y-Lg for emacs-devel@gnu.org; Fri, 14 Sep 2007 10:05:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWBn2-00085M-Bg for emacs-devel@gnu.org; Fri, 14 Sep 2007 10:05:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWBn2-00085J-60 for emacs-devel@gnu.org; Fri, 14 Sep 2007 10:05:00 -0400 Original-Received: from tomts13.bellnexxia.net ([209.226.175.34] helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWBn1-0004Ur-Nm for emacs-devel@gnu.org; Fri, 14 Sep 2007 10:04:59 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070914140457.GCRR13659.tomts13-srv.bellnexxia.net@pastel.home> for ; Fri, 14 Sep 2007 10:04:57 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B1930859D; Fri, 14 Sep 2007 10:04:57 -0400 (EDT) In-Reply-To: <200709140232.l8E2Wj0A022451@oogie-boogie.ics.uci.edu> (Dan Nicolaescu's message of "Thu\, 13 Sep 2007 19\:32\:45 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) 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:78883 Archived-At: >> However, it S-left and left is the same in 'C-h k', how can I bind them >> to different commands? > They are different, you can bind them just fine. I don't remember the > explanation why is C-h k showing them like that. C-h k shows the "raw data" as well as the "final event". It doesn't show all the intermediate steps. In this case one of the steps is to turn the escape sequence into S-left, and another step turns `S-left' into `left' (because Emacs always tried to unshift a key to find a binding in case where the shifted version has no binding). I.e. under X11 where the "raw data" is already a `S-left', C-h k shows: (translated from ) runs the command backward-char -- Stefan