diff options
| author | Juri Linkov | 2018-11-21 01:43:21 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-11-21 01:43:21 +0200 |
| commit | 166f6274b4118344612e60fba831e223728f3e89 (patch) | |
| tree | 5912a969d7e022807e2545ead7c23ffc5fdf0ff4 /etc | |
| parent | 11c9343fe63fdc8bfef3246d95f42523d73fb733 (diff) | |
| download | emacs-166f6274b4118344612e60fba831e223728f3e89.tar.gz emacs-166f6274b4118344612e60fba831e223728f3e89.zip | |
Add prefix arg to isearch-repeat-forward/backward (bug#14563, bug#29321)
* lisp/isearch.el (isearch-repeat): Add optional arg COUNT.
Add a while-loop that calls `isearch-search' COUNT times.
(isearch-repeat-forward, isearch-repeat-backward):
Add optional prefix ARG passed down to `isearch-repeat'.
Handle reversed directions.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -640,6 +640,11 @@ can now be searched via 'C-s'. | |||
| 640 | 640 | ||
| 641 | ** Search and Replace | 641 | ** Search and Replace |
| 642 | 642 | ||
| 643 | *** Isearch supports a prefix argument for 'C-s' ('isearch-repeat-forward') | ||
| 644 | and 'C-r' ('isearch-repeat-backward'). With a prefix argument, these | ||
| 645 | commands repeat the search for the specified occurrence of the search string. | ||
| 646 | A negative argument repeats the search in the opposite direction. | ||
| 647 | |||
| 643 | *** 'isearch-lazy-count' shows the current match number and total number | 648 | *** 'isearch-lazy-count' shows the current match number and total number |
| 644 | of matches in the Isearch prompt. Customizable variables | 649 | of matches in the Isearch prompt. Customizable variables |
| 645 | 'lazy-count-prefix-format' and 'lazy-count-suffix-format' define the | 650 | 'lazy-count-prefix-format' and 'lazy-count-suffix-format' define the |