aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorTino Calancha2020-09-25 13:25:08 +0200
committerLars Ingebrigtsen2020-09-25 13:25:14 +0200
commit830e876d94a8cfc5a516e7fcd867525754508cf3 (patch)
tree07c9fd073e4084c7752e7be50ae145a66609f820 /lisp
parent8a253a96a0db4dd585ab787345657d952c7babec (diff)
downloademacs-830e876d94a8cfc5a516e7fcd867525754508cf3.tar.gz
emacs-830e876d94a8cfc5a516e7fcd867525754508cf3.zip
Use the char history in zap-up-to-char
* lisp/misc.el (zap-up-to-char): Use read-char-from-minibuffer (bug#39154).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/misc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/misc.el b/lisp/misc.el
index 8c39492784b..be191c50d2f 100644
--- a/lisp/misc.el
+++ b/lisp/misc.el
@@ -69,7 +69,9 @@ The characters copied are inserted in the buffer before point."
69Case is ignored if `case-fold-search' is non-nil in the current buffer. 69Case is ignored if `case-fold-search' is non-nil in the current buffer.
70Goes backward if ARG is negative; error if CHAR not found. 70Goes backward if ARG is negative; error if CHAR not found.
71Ignores CHAR at point." 71Ignores CHAR at point."
72 (interactive "p\ncZap up to char: ") 72 (interactive (list (prefix-numeric-value current-prefix-arg)
73 (read-char-from-minibuffer "Zap up to char: "
74 nil 'read-char-history)))
73 (let ((direction (if (>= arg 0) 1 -1))) 75 (let ((direction (if (>= arg 0) 1 -1)))
74 (kill-region (point) 76 (kill-region (point)
75 (progn 77 (progn