From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: global key not binding Date: Wed, 10 Aug 2005 18:11:57 -0500 Message-ID: References: <8764uejjgz.fsf@wash.edu> <87wtmtip2k.fsf@wash.edu> <42FA5A0C.6030206@student.lu.se> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1123715866 5285 80.91.229.2 (10 Aug 2005 23:17:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2005 23:17:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 11 01:17:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2zoP-0007S6-9M for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Aug 2005 01:16:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2zrX-0006iQ-Fk for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 19:19:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2zou-0005yT-7B for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 19:17:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2zoq-0005we-9Y for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 19:17:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2zoo-0005vb-Tu for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 19:17:06 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2zy4-00074Y-TR for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 19:26:41 -0400 Original-Received: from lab1.ma.utexas.edu (mail@lab1.ma.utexas.edu [128.83.133.39]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j7ANBvS00771; Wed, 10 Aug 2005 18:11:57 -0500 Original-Received: from jcorneli by lab1.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1E2zjp-0005Hz-00; Wed, 10 Aug 2005 18:11:57 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <42FA5A0C.6030206@student.lu.se> (message from Lennart Borgman on Wed, 10 Aug 2005 21:48:28 +0200) 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:28641 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28641 Joe Corneli wrote: > > > (global-set-key "\C-cb" "\C-xh\M-w") ;copy buffer C-c b > > (global-set-key "\C-cb" "\C-xh\M-w") ;copy buffer C-c p > > > > I get symbol function definition is void ... > > > > That is to be expected. > > > > why then this work: > (global-set-key "\C-cl" "\C-a\C-@\C-e\M-w") ;copy ling C-c l > >OK, I guess it isn't to be expected. The question boils down to the >behavior of the function `define-key', which is what `global-set-key' >calls (without any intervening typechecking) and which _does_ allow >"strings treated as macros". So, I have no idea. > >Evaluating this works: > >(execute-kbd-macro "\C-xh\M-w") > >But anyway, my hint should work for you. Maybe someone else >can say whether you found a bug or not. I just checked in the CVS version of Emacs. It seems to work. Crikey... I'm 99% sure it was NOT working earlier today (here with with the same recent version of Emacs, but not same image).