aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-14 05:09:32 +0200
committerLars Ingebrigtsen2019-10-14 05:09:32 +0200
commita590a8058d52c1cbe0f80b7ed0d8b0abed7bf7ef (patch)
treef2f2a95e13206870428c0ab4c3ff609985bec3f6 /doc
parentf0f2a53b27187903c86189bd03f072ac6ddaba9c (diff)
downloademacs-a590a8058d52c1cbe0f80b7ed0d8b0abed7bf7ef.tar.gz
emacs-a590a8058d52c1cbe0f80b7ed0d8b0abed7bf7ef.zip
Allow zap-to-char to use a history
* doc/emacs/killing.texi (Other Kill Commands): Document it. * lisp/simple.el (read-char-with-history): New function (bug#10477). (zap-to-char): Use it to have a history.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/killing.texi5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index c554d2e2839..80e2868908a 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -244,7 +244,10 @@ with @kbd{C-x @key{DEL}} and @kbd{M-k} (@pxref{Sentences}).
244searching: it reads a character and kills from point up to (and 244searching: it reads a character and kills from point up to (and
245including) the next occurrence of that character in the buffer. A 245including) the next occurrence of that character in the buffer. A
246numeric argument acts as a repeat count; a negative argument means to 246numeric argument acts as a repeat count; a negative argument means to
247search backward and kill text before point. 247search backward and kill text before point. A history of previously
248used characters is maintained and can be accessed via the
249@kbd{M-p}/@kbd{M-n} keystrokes. This is mainly useful if the
250character to be used has to be entered via a complicated input method.
248 251
249@node Kill Options 252@node Kill Options
250@subsection Options for Killing 253@subsection Options for Killing