diff options
| author | Gerd Moellmann | 2001-10-05 09:24:20 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-05 09:24:20 +0000 |
| commit | 67085aba974c00f4895003e8cea7442a414ae00c (patch) | |
| tree | 673f32b357606e8b31ff97aa333638c4eaca1909 /lisp | |
| parent | a4a216c5c9cec3aba9c6e7627b1458e0bc49d738 (diff) | |
| download | emacs-67085aba974c00f4895003e8cea7442a414ae00c.tar.gz emacs-67085aba974c00f4895003e8cea7442a414ae00c.zip | |
(isearch-last-case-fold-search): New variable.
(isearch-mode): Remember value of isearch-case-fold-search
in isearch-last-case-fold-search.
(isearch-done): Quote value of isearch-case-fold-search.
(isearch-repeat): When resuming a search, restore
isearch-case-fold-search from isearch-last-case-fold-search.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/isearch.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index 2c687abee42..de6b7f6321f 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -366,6 +366,8 @@ Default value, nil, means edit the string instead." | |||
| 366 | ; case in the search string is ignored. | 366 | ; case in the search string is ignored. |
| 367 | (defvar isearch-case-fold-search nil) | 367 | (defvar isearch-case-fold-search nil) |
| 368 | 368 | ||
| 369 | (defvar isearch-last-case-fold-search nil) | ||
| 370 | |||
| 369 | ;; Used to save default value while isearch is active | 371 | ;; Used to save default value while isearch is active |
| 370 | (defvar isearch-original-minibuffer-message-timeout nil) | 372 | (defvar isearch-original-minibuffer-message-timeout nil) |
| 371 | 373 | ||
| @@ -530,6 +532,7 @@ is treated as a regexp. See \\[isearch-forward] for more info." | |||
| 530 | isearch-regexp regexp | 532 | isearch-regexp regexp |
| 531 | isearch-word word-p | 533 | isearch-word word-p |
| 532 | isearch-op-fun op-fun | 534 | isearch-op-fun op-fun |
| 535 | isearch-last-case-fold-search isearch-case-fold-search | ||
| 533 | isearch-case-fold-search case-fold-search | 536 | isearch-case-fold-search case-fold-search |
| 534 | isearch-string "" | 537 | isearch-string "" |
| 535 | isearch-message "" | 538 | isearch-message "" |
| @@ -645,7 +648,7 @@ is treated as a regexp. See \\[isearch-forward] for more info." | |||
| 645 | (let ((command `(isearch-resume ,isearch-string ,isearch-regexp | 648 | (let ((command `(isearch-resume ,isearch-string ,isearch-regexp |
| 646 | ,isearch-word ,isearch-forward | 649 | ,isearch-word ,isearch-forward |
| 647 | ,isearch-message | 650 | ,isearch-message |
| 648 | ,isearch-case-fold-search))) | 651 | ',isearch-case-fold-search))) |
| 649 | (unless (equal (car command-history) command) | 652 | (unless (equal (car command-history) command) |
| 650 | (setq command-history (cons command command-history)))) | 653 | (setq command-history (cons command command-history)))) |
| 651 | 654 | ||
| @@ -949,7 +952,8 @@ Use `isearch-exit' to quit without signaling." | |||
| 949 | "") | 952 | "") |
| 950 | isearch-message | 953 | isearch-message |
| 951 | (mapconcat 'isearch-text-char-description | 954 | (mapconcat 'isearch-text-char-description |
| 952 | isearch-string "")) | 955 | isearch-string "") |
| 956 | isearch-case-fold-search isearch-last-case-fold-search) | ||
| 953 | ;; If already have what to search for, repeat it. | 957 | ;; If already have what to search for, repeat it. |
| 954 | (or isearch-success | 958 | (or isearch-success |
| 955 | (progn | 959 | (progn |