From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: global key not binding Date: Wed, 10 Aug 2005 21:48:28 +0200 Message-ID: <42FA5A0C.6030206@student.lu.se> References: <8764uejjgz.fsf@wash.edu> <87wtmtip2k.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123704116 11393 80.91.229.2 (10 Aug 2005 20:01:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2005 20:01:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 22:01:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2wlY-0007h6-NK for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 22:01:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2wog-00009u-IP for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 16:04:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2wiN-00066L-7q for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 15:58:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2wi6-0005y1-Uu for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 15:58:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2wi6-0005s6-0j for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 15:57:58 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2wnD-0001yj-Mo for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 16:03:15 -0400 Original-Received: from [192.168.123.121] (83.249.204.9) by pne-smtpout1-sn1.fre.skanova.net (7.2.060.1) id 42B813B0007B0B21; Wed, 10 Aug 2005 21:48:32 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Joe Corneli In-Reply-To: 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:28630 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28630 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. I saw in one of the messages "Global-set-key" instead of "global-set-key" but I guess that was just a typo?