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 05:12:19 +1000 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Message-ID: <87wtmtip2k.fsf@wash.edu> References: <8764uejjgz.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 1123699983 31310 80.91.229.2 (10 Aug 2005 18:53:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2005 18:53:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 20:52:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2vgM-00069Z-DN for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 20:52:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2vjT-0008Or-Sq for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 14:55:19 -0400 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: 29 Original-NNTP-Posting-Host: 203.134.67.67 Original-X-Trace: 1123699852 un-2park-reader-02.sydney.pipenetworks.com.au 15503 203.134.67.67:1840 Original-X-Complaints-To: Abuse, including message IDs to abuse@pipenetworks.com Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!202.72.130.18.MISMATCH!quokka.wn.com.au!token.pipenetworks.com!218.100.2.58.MISMATCH!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:133100 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:28622 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28622 Joe Corneli writes: > Hello > > (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 > ,---- > | global-set-key is an interactive compiled Lisp function in `subr'. > | (global-set-key key command) > | > | Give key a global binding as command. > `---- > > Try > > (global-set-key "\C-cb" (lambda () > (interactive) > (copy-region-as-kill (point-min) > (point-max))))