From: Juri Linkov <juri@linkov.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: 20687@debbugs.gnu.org
Subject: bug#20687: 25.0.50; `perform-replace' should invoke a key that you have bound in `query-replace-map'
Date: Mon, 01 Jun 2015 23:53:05 +0300 [thread overview]
Message-ID: <87pp5fb172.fsf@mail.linkov.net> (raw)
In-Reply-To: <fffd6ff8-179c-45b4-8bbc-0dd4a19e1045@default> (Drew Adams's message of "Thu, 28 May 2015 14:12:16 -0700 (PDT)")
> You can bind any key you like in `query-replace-map'. But
> `perform-replace', in effect, hard-codes the keys that it recognizes.
>
> This is not necessary. You shbould be able to bind a new key in that
> map to some command, and have `perform-replace' invoke that command.
>
> All that's required for this is to add another `cond' clause, just
> before the final `t' (otherwise) clause, to do this:
>
> (cond
> ...
> (def (call-interactively def)) ; User-defined key - invoke it.
> (t
> ;; Note: we do not need to treat `exit-prefix'
> ;; specially here, since we reread
> ;; any unrecognized character.
> ...))
>
> It seems silly for the code to be written like it is. We already look
> up the key you press in the q-r keymap. If we find a DEF that is not
> one of those predefined by Emacs then we ignore it? That makes no sense
> (to me).
Could you please send an example of your custom keybindings in
`query-replace-map' that currently don't work.
next prev parent reply other threads:[~2015-06-01 20:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 21:12 bug#20687: 25.0.50; `perform-replace' should invoke a key that you have bound in `query-replace-map' Drew Adams
2015-06-01 20:53 ` Juri Linkov [this message]
2015-06-01 21:11 ` Drew Adams
2015-06-02 22:01 ` Juri Linkov
2015-06-02 22:12 ` Drew Adams
2020-09-17 18:11 ` Lars Ingebrigtsen
2015-06-02 13:08 ` Kaushal
2015-06-02 22:02 ` Juri Linkov
2015-06-02 22:50 ` Drew Adams
2015-06-03 3:35 ` Kaushal
2015-06-03 4:39 ` Drew Adams
2015-06-03 5:10 ` Kaushal
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=87pp5fb172.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=20687@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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.