diff options
| author | Juri Linkov | 2005-11-24 09:59:37 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-11-24 09:59:37 +0000 |
| commit | ece75c05d6861bb49faec4a5f1de4951410f54a9 (patch) | |
| tree | 596658b58c04dd9af27e2b9ef2f13a176840b690 | |
| parent | b9c7cbf9263f03151d9289373dc15c65f5604647 (diff) | |
| download | emacs-ece75c05d6861bb49faec4a5f1de4951410f54a9.tar.gz emacs-ece75c05d6861bb49faec4a5f1de4951410f54a9.zip | |
(isearch-repeat): With empty search ring set `isearch-error' to the
error string instead of signaling error with the function `error'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/isearch.el | 19 |
2 files changed, 16 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 728ba2b4def..9af92d5a362 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-11-24 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-repeat): With empty search ring | ||
| 4 | set `isearch-error' to the error string instead of signaling | ||
| 5 | error with the function `error'. | ||
| 6 | |||
| 1 | 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 8 | ||
| 3 | * term/mac-win.el: Make modifier `ctrl' an alias of `control'. | 9 | * term/mac-win.el: Make modifier `ctrl' an alias of `control'. |
diff --git a/lisp/isearch.el b/lisp/isearch.el index cdddd47cbaf..5f80cdc6f2a 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1138,15 +1138,16 @@ Use `isearch-exit' to quit without signaling." | |||
| 1138 | ;; C-s in forward or C-r in reverse. | 1138 | ;; C-s in forward or C-r in reverse. |
| 1139 | (if (equal isearch-string "") | 1139 | (if (equal isearch-string "") |
| 1140 | ;; If search string is empty, use last one. | 1140 | ;; If search string is empty, use last one. |
| 1141 | (setq isearch-string | 1141 | (if (null (if isearch-regexp regexp-search-ring search-ring)) |
| 1142 | (or (if isearch-regexp | 1142 | (setq isearch-error "No previous search string") |
| 1143 | (car regexp-search-ring) | 1143 | (setq isearch-string |
| 1144 | (car search-ring)) | 1144 | (if isearch-regexp |
| 1145 | (error "No previous search string")) | 1145 | (car regexp-search-ring) |
| 1146 | isearch-message | 1146 | (car search-ring)) |
| 1147 | (mapconcat 'isearch-text-char-description | 1147 | isearch-message |
| 1148 | isearch-string "") | 1148 | (mapconcat 'isearch-text-char-description |
| 1149 | isearch-case-fold-search isearch-last-case-fold-search) | 1149 | isearch-string "") |
| 1150 | isearch-case-fold-search isearch-last-case-fold-search)) | ||
| 1150 | ;; If already have what to search for, repeat it. | 1151 | ;; If already have what to search for, repeat it. |
| 1151 | (or isearch-success | 1152 | (or isearch-success |
| 1152 | (progn | 1153 | (progn |