[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20687: 25.0.50; `perform-replace' should invoke a key that you have
bug#20687: 25.0.50; `perform-replace' should invoke a key that you have bound in `query-replace-map'
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:
(def (call-interactively def)) ; User-defined key - invoke it.
;; 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
In GNU Emacs 220.127.116.11 (i686-pc-mingw32)
of 2014-10-20 on LEG570
Bzr revision: 118168 address@hidden
Windowing system distributor `Microsoft Corp.', version 6.1.7601
`configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'
|[Prev in Thread]
||[Next in Thread]|
- bug#20687: 25.0.50; `perform-replace' should invoke a key that you have bound in `query-replace-map',
Drew Adams <=