From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baloff Newsgroups: gmane.emacs.help Subject: Re: global key not binding Date: 11 Aug 2005 06:51:28 +1000 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Message-ID: <87d5ola52n.fsf@wash.edu> References: <8764uejjgz.fsf@wash.edu> <87wtmtip2k.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123706011 17252 80.91.229.2 (10 Aug 2005 20:33:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2005 20:33:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 22:33:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2xFC-0003g4-Rb for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 22:32:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2xIK-0000rt-Oy for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 16:35:24 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.pacific.net.au!token.pipenetworks.com!218.100.2.58.MISMATCH!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Original-NNTP-Posting-Host: 210.50.68.8 X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Lines: 33 Original-NNTP-Posting-Host: 203.134.67.67 Original-X-Trace: 1123705797 un-2park-reader-02.sydney.pipenetworks.com.au 15505 203.134.67.67:2841 Original-X-Complaints-To: Abuse, including message IDs to abuse@pipenetworks.com Original-Xref: shelby.stanford.edu gnu.emacs.help:133110 Original-To: help-gnu-emacs@gnu.org 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:28632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28632 Lennart Borgman writes: > 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. sorry, what is CVS version and my version under debian. ok newbi. thanks > > I saw in one of the messages "Global-set-key" instead of > "global-set-key" but I guess that was just a typo?