From: Kalle Olavi Niemitalo <kon@iki.fi>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: emacs-devel@gnu.org
Subject: Re: other-frame, other-window prefix keys
Date: Sun, 09 Aug 2015 11:10:17 +0300 [thread overview]
Message-ID: <87r3nchogm.fsf@Niukka.kon.iki.fi> (raw)
In-Reply-To: <86k2t50ze5.fsf@stephe-leake.org> (Stephen Leake's message of "Sun, 09 Aug 2015 01:06:10 -0500")
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> I agree it would be nice. I think that means redoing all those bindings.
> But that's only about 10, so it's doable. But that doesn't handle
> third-party additions to the C-x 4/5 prefix key maps.
If those third-party additions are using
(define-key ctl-x-4-map (kbd "z") 'foo)
rather than
(global-set-key (kbd "C-x 4 z") 'foo)
then I think you can handle it, by changing ctl-x-4-prefix and
ctl-x-5-prefix to functions that temporarily add ctl-x-4-map or
ctl-x-5-map as a minor-mode keymap and then read a key sequence.
And if they are using global-set-key, then I think it can be
hacked around by doing
(put 'ctl-x-4-prefix 'define-key-keymap ctl-x-4-map)
(put 'ctl-x-5-prefix 'define-key-keymap ctl-x-5-map)
and changing define-key to follow the define-key-keymap property
if the keymap contains a symbol whose function definition is a
function and the key sequence didn't end yet.
next prev parent reply other threads:[~2015-08-09 8:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-08 7:24 other-frame, other-window prefix keys Stephen Leake
2015-08-08 7:31 ` Andreas Schwab
2015-08-09 5:32 ` Stephen Leake
2015-08-08 20:52 ` Stefan Monnier
2015-08-09 6:06 ` Stephen Leake
2015-08-09 8:10 ` Kalle Olavi Niemitalo [this message]
2015-08-09 16:17 ` Stefan Monnier
2015-08-11 17:37 ` Setting "echoing prefix" from Elisp (was: other-frame, other-window prefix keys) Stefan Monnier
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=87r3nchogm.fsf@Niukka.kon.iki.fi \
--to=kon@iki.fi \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@stephe-leake.org \
/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.