From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: copy key binding to another key WITHOUT knowing the function behind it. Date: 12 Dec 2003 07:28:24 -0800 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87llpif42v.fsf@newsguy.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071243229 19543 80.91.224.253 (12 Dec 2003 15:33:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2003 15:33:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 16:33:46 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUpIY-0001Xk-00 for ; Fri, 12 Dec 2003 16:33:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AUqCl-0007wF-QQ for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2003 11:31:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!c-24-6-105-98.client.comcast.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: c-24-6-105-98.client.comcast.net (24.6.105.98) Original-X-Trace: news.uni-berlin.de 1071242904 2079103 24.6.105.98 ([218005]) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:119257 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:15195 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15195 leo> is there a way to say "key1's binding should be bound to key2"? Please ignore my previous post which doesn't answer your question. You could do this: (let ((k my-keymap)) (define-key k key2 (lookup-key k key1))) -- Nothing can be explained to a stone. Or to a stoned person, either.