[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a "shortcut" key for "C-c C-"
From: |
Stefan Monnier |
Subject: |
Re: Creating a "shortcut" key for "C-c C-" |
Date: |
23 Apr 2003 09:27:13 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>> (defun C-cC- (prompt)
> (vconcat "\C-c" (event-apply-control-modifier prompt)))
>> (define-key function-key-map [f8] 'C-cC-)
> Sounds great; unfortunately, it doesn't work for me :-(
No idea here. It works with the Emacs code on the CVS trunk.
Try something like
(defun C-cC- (prompt)
(message "Entering C-cC-...")
(let ((key (event-apply-control-modifier prompt)))
(message "e-a-c-m returned %s" key)
(vconcat "\C-c" key)))
and look at the *Messages* buffer to see what e-a-c-m returned.
It should look like [14] or "\^N" if you pressed `n' after f8
(because the ascii code of C-n is 14).
Stefan