From: "Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: Creating a "shortcut" key for "C-c C-"
Date: 23 Apr 2003 09:27:13 -0400 [thread overview]
Message-ID: <5l8yu1jqdq.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: wklly1op23.fsf@attbi.com
>> (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
next prev parent reply other threads:[~2003-04-23 13:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 1:55 Creating a "shortcut" key for "C-c C-" Bill Clementson
2003-04-22 6:15 ` Kai Großjohann
2003-04-22 14:38 ` Stefan Monnier
2003-04-23 3:45 ` Bill Clementson
2003-04-23 13:27 ` Stefan Monnier [this message]
2003-04-23 15:37 ` Reiner Steib
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=5l8yu1jqdq.fsf@rum.cs.yale.edu \
--to=monnier+gnu.emacs.help/news/@flint.cs.yale.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.