[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pcl-cvs: quick commit?
From: |
Adam P. |
Subject: |
Re: pcl-cvs: quick commit? |
Date: |
Fri, 22 Nov 2002 18:24:24 +0100 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) |
"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
writes:
>> I thought about a macro, and that's what I'll do in the end, but I was
>> wondering if there already exists in pcl-cvs a function that I can
>> simply bind to a key. Thanks.
>
> Yes, there is and I told you its name: c C-c C-c
>
> (define-key foo-bar-mode [(meta ?c)] [?c (control ?c) (control ?c)])
It seems to me that the *final* argument of define-key doesn't accept
vectors of *events* like (control ?c). But this works:
(define-key cvs-mode-map [?\M-c] [?c ?\C-c ?\C-c])
Thanks.
Adam
--
Name and address in X-Real...