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 08:41:43 -0500 Message-ID: References: <8764uejjgz.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1123681622 742 80.91.229.2 (10 Aug 2005 13:47:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2005 13:47:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 10 15:46:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E2qtM-0005ho-Of for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 15:45:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2qwT-0008Ch-Pt for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Aug 2005 09:48:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E2qvn-000833-Fu for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 09:47:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E2qvh-0007zJ-MC for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 09:47:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E2qvg-0007vq-5c for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 09:47:36 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E2r49-0002rd-3n for help-gnu-emacs@gnu.org; Wed, 10 Aug 2005 09:56:21 -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 j7ADfhS25658; Wed, 10 Aug 2005 08:41:43 -0500 Original-Received: from jcorneli by lab1.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1E2qpz-0001wx-00; Wed, 10 Aug 2005 08:41:43 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <8764uejjgz.fsf@wash.edu> (message from Baloff on 10 Aug 2005 18:15:40 +1000) 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:28616 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28616 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. ,---- | 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))))