diff options
| author | Stephen Leake | 2019-04-11 14:00:02 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-04-11 14:00:02 -0700 |
| commit | 7ba7def5caf7ec9d9bebffff489f0a658229fbda (patch) | |
| tree | e0cfcb59937ca0528fb81769d7d48a904a91f5dc /lisp/replace.el | |
| parent | 7768581172e11be52b1fcd8224f4594e126bbdb7 (diff) | |
| parent | de238b39e335c6814283faa171b35145f124edf2 (diff) | |
| download | emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.tar.gz emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.zip | |
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 318a9fb0253..9d1b7bf747d 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -2643,22 +2643,24 @@ characters." | |||
| 2643 | (setq def (lookup-key map key)) | 2643 | (setq def (lookup-key map key)) |
| 2644 | ;; Restore the match data while we process the command. | 2644 | ;; Restore the match data while we process the command. |
| 2645 | (cond ((eq def 'help) | 2645 | (cond ((eq def 'help) |
| 2646 | (with-output-to-temp-buffer "*Help*" | 2646 | (let ((display-buffer-overriding-action |
| 2647 | (princ | 2647 | '(nil (inhibit-same-window . t)))) |
| 2648 | (concat "Query replacing " | 2648 | (with-output-to-temp-buffer "*Help*" |
| 2649 | (if backward "backward " "") | 2649 | (princ |
| 2650 | (if delimited-flag | 2650 | (concat "Query replacing " |
| 2651 | (or (and (symbolp delimited-flag) | 2651 | (if backward "backward " "") |
| 2652 | (get delimited-flag | 2652 | (if delimited-flag |
| 2653 | 'isearch-message-prefix)) | 2653 | (or (and (symbolp delimited-flag) |
| 2654 | "word ") "") | 2654 | (get delimited-flag |
| 2655 | (if regexp-flag "regexp " "") | 2655 | 'isearch-message-prefix)) |
| 2656 | from-string " with " | 2656 | "word ") "") |
| 2657 | next-replacement ".\n\n" | 2657 | (if regexp-flag "regexp " "") |
| 2658 | (substitute-command-keys | 2658 | from-string " with " |
| 2659 | query-replace-help))) | 2659 | next-replacement ".\n\n" |
| 2660 | (with-current-buffer standard-output | 2660 | (substitute-command-keys |
| 2661 | (help-mode)))) | 2661 | query-replace-help))) |
| 2662 | (with-current-buffer standard-output | ||
| 2663 | (help-mode))))) | ||
| 2662 | ((eq def 'exit) | 2664 | ((eq def 'exit) |
| 2663 | (setq keep-going nil) | 2665 | (setq keep-going nil) |
| 2664 | (setq done t)) | 2666 | (setq done t)) |