From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Malte Spiess Newsgroups: gmane.emacs.help Subject: Re: Key bindings Date: Thu, 29 Mar 2007 22:16:37 +0200 Organization: Arcor Message-ID: <871wj724be.fsf@trick.ulm.malte.spiess> References: <9730443.post@talk.nabble.com> <87odmcnx3b.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175200706 28965 80.91.229.12 (29 Mar 2007 20:38:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 20:38:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 22:38:20 2007 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.50) id 1HX1Ny-0000xH-QN for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 22:38:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HX1Qa-0002kN-R9 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 15:41:00 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:Uj3labGsLuS0XSL9YjJSYUFeruc= Original-Lines: 57 Original-NNTP-Posting-Date: 29 Mar 2007 22:16:33 CEST Original-NNTP-Posting-Host: 1a06bd33.newsspool2.arcor-online.net Original-X-Trace: DXC=NeA6^1@Pm4CE4ZB2flKORAA9EHlD; 3YcB4Fo<]lROoRA8kF 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:42284 Archived-At: SteveFKI writes: > Tassilo Horn-3 wrote: >> Use `C-h k' to get the binding string and use that with the `kbd'-macro. >> >> ,----[ C-h k ] >> | runs the command move-beginning-of-line >> [...] >> `---- >> >> ,----[ C-h k ] >> | runs the command beginning-of-buffer >> [...] >> `---- >> >> You see, emacs 22 already has the bindings you want. :-) >> >> Nevertheless, if you would want to rebind them, you would do >> >> (global-set-key (kbd "") 'some-function) >> >> Bye, >> Tassilo >> -- >> A child of five could understand this! Fetch me a child of five! >> _______________________________________________ >> help-gnu-emacs mailing list >> help-gnu-emacs@gnu.org >> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >> >> > > I tried this, and I get the same problem. However, when I type C-h k , > it emacs tells me that > > " runs the command search-forward > (search-forward STRING &optional BOUND NOERROR COUNT) > which is an interactive built-in function. > > Sounds like I am trying to override a function, which cannot be overriden. > > By the way I am using emacs version 21.3.1, and not in aposition to > upgrade. Okay, I would recommend it, too! > Any more ideas? Yes, it seems like the key you pressed is not recognised as , but as . So you probably should write (global-set-key (kbd "") 'some-function) instead. Very strange keyboard setup btw. Greetings Malte