From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: SteveFKI Newsgroups: gmane.emacs.help Subject: Re: Key bindings Date: Thu, 29 Mar 2007 06:19:57 -0700 (PDT) Message-ID: <9733089.post@talk.nabble.com> 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 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1175174419 29748 80.91.229.12 (29 Mar 2007 13:20:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 13:20:19 +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 15:20:16 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 1HWuY3-0004Fn-My for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 15:20:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWuad-0005SA-DR for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2007 08:22:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWuaP-0005S5-Hw for help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 09:22:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWuaO-0005Rs-4n for Help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 09:22:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWuaN-0005Rp-Vw for Help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 08:22:40 -0500 Original-Received: from www.nabble.com ([72.21.53.35] helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HWuXn-0008Vd-A7 for Help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 09:19:59 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HWuXl-0000Ls-Uf for Help-gnu-emacs@gnu.org; Thu, 29 Mar 2007 06:19:57 -0700 In-Reply-To: <87odmcnx3b.fsf@baldur.tsdh.de> X-Nabble-From: stephen.brown@eu.fkilogistex.com X-detected-kernel: Linux 2.4-2.6 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:42274 Archived-At: Tassilo Horn-3 wrote: > > SteveFKI writes: > > Hi Stephen, > >> (global-set-key [home] 'beginning-of-line) >> (define-key global-map [end] 'end-of-line) >> (define-key global-map [C-home] 'beginning-of-buffer) >> (define-key global-map [C-end] 'end-of-buffer) >> >> I think this should work, and as you will see I have tried two ways to >> map the HOME key. However, every time I press HOME it opens Search in >> the mini-buffer (as if it is mapped to C-s). The END key works fine. > > 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. Any more ideas? Thanks -- View this message in context: http://www.nabble.com/Key-bindings-tf3485502.html#a9733089 Sent from the Emacs - Help mailing list archive at Nabble.com.