all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Baloff <washdc@wash.edu>
Subject: Re: global key not binding
Date: 11 Aug 2005 05:12:19 +1000	[thread overview]
Message-ID: <87wtmtip2k.fsf@wash.edu> (raw)
In-Reply-To: mailman.3223.1123681667.20277.help-gnu-emacs@gnu.org

Joe Corneli <jcorneli@math.utexas.edu> 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))))

  parent reply	other threads:[~2005-08-10 19:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10  8:15 global key not binding Baloff
2005-08-10  8:24 ` Peter Dyballa
2005-08-10 13:41 ` Joe Corneli
     [not found] ` <mailman.3223.1123681667.20277.help-gnu-emacs@gnu.org>
2005-08-10 19:12   ` Baloff [this message]
2005-08-10 19:20     ` Joe Corneli
2005-08-10 19:48       ` Lennart Borgman
2005-08-10 23:11         ` Joe Corneli
     [not found]       ` <mailman.3280.1123704053.20277.help-gnu-emacs@gnu.org>
2005-08-10 20:51         ` Baloff
2005-08-10 19:20 ` Kevin Rodgers
     [not found] ` <mailman.3194.1123662827.20277.help-gnu-emacs@gnu.org>
2005-08-10 21:13   ` Baloff
2005-08-10 21:28     ` Kevin Rodgers
2005-08-10 22:32     ` Henrik Enberg
     [not found]     ` <mailman.3315.1123715476.20277.help-gnu-emacs@gnu.org>
2005-08-11 22:10       ` Baloff
2005-08-11 22:06         ` Henrik Enberg
     [not found] ` <mailman.3273.1123702161.20277.help-gnu-emacs@gnu.org>
2005-08-14  8:57   ` Baloff
2005-08-15 18:03     ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wtmtip2k.fsf@wash.edu \
    --to=washdc@wash.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.