diff options
| author | Paul Eggert | 2016-05-05 23:11:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-05 23:11:11 -0700 |
| commit | 89ce83b20249dfb4e45f09dfdddf4c4b66d82968 (patch) | |
| tree | 3d75245a5514df2ad7b17ae6d56727b9629846a9 /lisp/replace.el | |
| parent | d546ed13b04521308ef7ec8e7e5b68e03f1bbb38 (diff) | |
| parent | 50650cb6887d99b01eeb1e686fc1f695c2a0c64a (diff) | |
| download | emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.tar.gz emacs-89ce83b20249dfb4e45f09dfdddf4c4b66d82968.zip | |
Merge from origin/emacs-25
50650cb Doc fixes for fclist and grep
5e814e0 Minor doc fixes for quoting
3347a73 `nreverse' the marker pairs list
1a4127d Use save-excursion in xref-location-marker more
ab3ba91 shell-quote-argument DIR when appropriate
922c7a3 Rework xref-query-replace-in-results
3fe3510 * lisp/replace.el (query-replace-read-from): Use minibuffer-w...
0932b94 Fix todo-mode bug involving archived items (bug#23447)
e68ad1f ; * etc/NEWS: Tiny edit. (Bug#23432)
adc80b7 ; * test/automated/xref-tests.el: Add copyright and license.
4d8fd9c Handle "empty line" regexp in xref searches
f559b37 Add tests for xref-collect-matches
6428aa0 Use grep-find-ignored-directories instead of vc-directory-exc...
6f82d8e Clear buffer-undo-list when showing xrefs
c68a091 Note the quote translation in `message' in section "incompati...
52f86a7 * etc/NEWS: Mention (message "%s" (format ...)).
93703c5 (Common Keywords): Correct what missing :group means
79e5800 Improve documentation of Dired's 'A' and 'Q' commands
2ea2a2f Doc fixes for quoting
8544b98 posnp doc clarification
805204f Mention what a missing :group does
ec554d7 Fix documentation of dired-aux search/replace commands
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 169fc3f4701..0b25200be57 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -191,18 +191,15 @@ wants to replace FROM with TO." | |||
| 191 | ;; a region in order to specify the minibuffer input. | 191 | ;; a region in order to specify the minibuffer input. |
| 192 | ;; That should not clobber the region for the query-replace itself. | 192 | ;; That should not clobber the region for the query-replace itself. |
| 193 | (save-excursion | 193 | (save-excursion |
| 194 | ;; The `with-current-buffer' ensures that the binding | 194 | (minibuffer-with-setup-hook |
| 195 | ;; for `text-property-default-nonsticky' isn't a buffer | 195 | (lambda () |
| 196 | ;; local binding in the current buffer, which | 196 | (setq-local text-property-default-nonsticky |
| 197 | ;; `read-from-minibuffer' wouldn't see. | 197 | (cons '(separator . t) text-property-default-nonsticky))) |
| 198 | (with-current-buffer (window-buffer (minibuffer-window)) | 198 | (if regexp-flag |
| 199 | (let ((text-property-default-nonsticky | 199 | (read-regexp prompt nil 'query-replace-from-to-history) |
| 200 | (cons '(separator . t) text-property-default-nonsticky))) | 200 | (read-from-minibuffer |
| 201 | (if regexp-flag | 201 | prompt nil nil nil 'query-replace-from-to-history |
| 202 | (read-regexp prompt nil 'query-replace-from-to-history) | 202 | (car (if regexp-flag regexp-search-ring search-ring)) t))))) |
| 203 | (read-from-minibuffer | ||
| 204 | prompt nil nil nil 'query-replace-from-to-history | ||
| 205 | (car (if regexp-flag regexp-search-ring search-ring)) t)))))) | ||
| 206 | (to)) | 203 | (to)) |
| 207 | (if (and (zerop (length from)) query-replace-defaults) | 204 | (if (and (zerop (length from)) query-replace-defaults) |
| 208 | (cons (caar query-replace-defaults) | 205 | (cons (caar query-replace-defaults) |