From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: Title: Unable to create key binding. Date: Sun, 06 Jul 2014 20:30:19 +0200 Organization: Informatimago Message-ID: <87ionaqr0k.fsf@kuiper.lan.informatimago.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1404671730 29529 80.91.229.3 (6 Jul 2014 18:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2014 18:35:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 06 20:35:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X3rHW-0005a4-Rj for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 20:35:22 +0200 Original-Received: from localhost ([::1]:46841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3rHW-0006ps-FU for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jul 2014 14:35:22 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-X-Trace: individual.net NFydCfk8qGt50O2yWQKVOgzrOqLkKb5UUq0qaY00Me5JR0+ZpJ Cancel-Lock: sha1:NmNhNmI2NDhhMTMwYTMzMTQ2ZDMzYTM4YzE1N2JkOGMyZGI5YjIyYQ== sha1:om2r3xHpXO4zgqygR1kbxXxL4AE= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:206282 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98553 Archived-At: Hoe-Phuan Ng writes: > *Title: Unable to create key binding.* > > Hello All: > > Below is the code for node.js REPL ( see below ). > > I was not able to use the key bindings. > > I got “Undefined … “ response from emacs. > > > However, I was able to run commands like this: > > M-x run-js and M-x js-send-last-sexp > > > When I ran command, C-h b, I see these key bindings: > > C-c & C-s yas-insert-snippet > > > C-c C-r comint-show-output > > C-c C-s comint-write-output > > > Questions: > > Q1: from command, C-h b, kkey bindings list as shown above, what is the > difference between > > C-c & C-s and C-c C-s ? For the former, you must press Control and type c, type &, press Control and type s, while for the later, you just press Control and type c, and press Control and type s. > Q2: Are the existing key bindings conflict with the key bindings show in > code below? You should better ask this question to emacs itself! For example, in this buffer: (some (lambda (key) (key-binding key)) (list (kbd "\C-c\C-c") (kbd "\C-c\C-r") (kbd "\C-c\C-s") (kbd "\C-c\C-z"))) --> message-send-and-exit > Q3: What to do now? Whatever you want. Key binding are up to the user to customize just like she wants! -- __Pascal Bourguignon__ http://www.informatimago.com/ "Le mercure monte ? C'est le moment d'acheter !"