summaryrefslogtreecommitdiff
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1998-06-04 06:57:32 +0000
committerKarl Heuer <kwzh@gnu.org>1998-06-04 06:57:32 +0000
commitcbc127de47c694456ea81e4fff1fb49098e0ab29 (patch)
tree2072858511e33a53a55b4167142b20e92dca6d53 /lisp/replace.el
parent1dbd9103606128bc861a4210f14f1dbc08f05fb3 (diff)
downloademacs-cbc127de47c694456ea81e4fff1fb49098e0ab29.tar.gz
(esc-map): Bind C-M-% to query-replace-regexp.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index 07d5892e458..e82eb3bdafb 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -115,6 +115,7 @@ and `\\=\\N' (where N is a digit) stands for
whatever what matched the Nth `\\(...\\)' in REGEXP."
(interactive (query-replace-read-args "Query replace regexp" t))
(perform-replace regexp to-string t t arg))
+(define-key esc-map [?\C-%] 'query-replace-regexp)
(defun map-query-replace-regexp (regexp to-strings &optional arg)
"Replace some matches for REGEXP with various strings, in rotation.