From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikos Apostolakis Newsgroups: gmane.emacs.help Subject: Re: copy paragraph Date: Fri, 14 Apr 2006 20:05:48 -0400 Message-ID: <87y7y7wvmr.fsf@sdf.lonestar.org> References: <874q0xb13p.fsf@localhost.localdomain> <8764lcxvv2.fsf@sdf.lonestar.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145059583 10494 80.91.229.2 (15 Apr 2006 00:06:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Apr 2006 00:06:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 15 02:06:22 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FUYIv-0008V0-J5 for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Apr 2006 02:06:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUYIu-000782-Vh for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Apr 2006 20:06:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUYIj-00077Y-Hg for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 20:06:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUYIh-00076y-0W for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 20:06:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUYIg-00076r-Se for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 20:06:06 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FUYIl-0002Ow-Qn for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 20:06:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FUYIa-0008Rt-GZ for help-gnu-emacs@gnu.org; Sat, 15 Apr 2006 02:06:00 +0200 Original-Received: from user-0cdf430.cable.mindspring.com ([24.215.144.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 02:06:00 +0200 Original-Received: from absent by user-0cdf430.cable.mindspring.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 02:06:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: user-0cdf430.cable.mindspring.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ssxKPuYhyMbB+5npMiwLXrY6H5c= 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:34372 Archived-At: Kevin Rodgers writes: > Nikos Apostolakis wrote: >> Gary Wessle writes: >>>I am trying to copy paragraph under point and by binding C-cp like this >>>(global-set-key "\C-cp" "\M-A-{\C-@\M-A-}\M-w") >>>not working, could some one check it. >> >> With "global-set-key" you can bind *commands* to a key, not key >> sequences. > > Of course, strings of keys and vectors of input events are > commands as well. The "Keys and Commands" node of the Emacs > manual refers to the "What is a Function" node of the Emacs > Lisp manual for the defnition of a command: > I'll be ... I don't know where I got this idea but before your message I was sure that one could not use a sequence of keys as the second argument to "global-set-key". Actually I could swear that I read it in the manual! Sorry for the noise. Nikos