diff options
| author | Lars Ingebrigtsen | 2019-10-14 05:09:32 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-14 05:09:32 +0200 |
| commit | a590a8058d52c1cbe0f80b7ed0d8b0abed7bf7ef (patch) | |
| tree | f2f2a95e13206870428c0ab4c3ff609985bec3f6 /doc | |
| parent | f0f2a53b27187903c86189bd03f072ac6ddaba9c (diff) | |
| download | emacs-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.texi | 5 |
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}). | |||
| 244 | searching: it reads a character and kills from point up to (and | 244 | searching: it reads a character and kills from point up to (and |
| 245 | including) the next occurrence of that character in the buffer. A | 245 | including) the next occurrence of that character in the buffer. A |
| 246 | numeric argument acts as a repeat count; a negative argument means to | 246 | numeric argument acts as a repeat count; a negative argument means to |
| 247 | search backward and kill text before point. | 247 | search backward and kill text before point. A history of previously |
| 248 | used characters is maintained and can be accessed via the | ||
| 249 | @kbd{M-p}/@kbd{M-n} keystrokes. This is mainly useful if the | ||
| 250 | character 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 |