diff options
| author | Dmitry Gutov | 2016-01-24 05:17:52 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2016-01-24 05:17:52 +0300 |
| commit | 3f481ad0072ea4fe300af7f326de9049a8d32d4a (patch) | |
| tree | a781402132026d802d0b68149cfa152ee97cba1d | |
| parent | 62f4ed477ebcbe56087bb1df96340530c84b33a9 (diff) | |
| download | emacs-3f481ad0072ea4fe300af7f326de9049a8d32d4a.tar.gz emacs-3f481ad0072ea4fe300af7f326de9049a8d32d4a.zip | |
Rename xref-query-replace to xref-query-replace-in-results
* lisp/progmodes/xref.el(xref-query-replace):
Rename to xref-query-replace-in-results.
(http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01240.html)
* lisp/progmodes/xref.el (xref--xref-buffer-mode-map):
* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
* doc/emacs/dired.texi (Operating on Files):
* doc/emacs/maintaining.texi (Xref Commands)
(Identifier Search, Identifier Search): Update accordingly.
| -rw-r--r-- | doc/emacs/dired.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/maintaining.texi | 12 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/xref.el | 4 |
5 files changed, 14 insertions, 14 deletions
diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 69616270181..8a72805f7fc 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi | |||
| @@ -797,8 +797,8 @@ Perform @code{query-replace-regexp} on each of the specified files, | |||
| 797 | replacing matches for @var{regexp} with the string | 797 | replacing matches for @var{regexp} with the string |
| 798 | @var{to} (@code{dired-do-find-regexp-and-replace}). | 798 | @var{to} (@code{dired-do-find-regexp-and-replace}). |
| 799 | 799 | ||
| 800 | This command is a variant of @code{xref-query-replace}. It presents | 800 | This command is a variant of @code{xref-query-replace-in-results}. It |
| 801 | an @file{*xref*} buffer that lists all the matches of @var{regexp}, | 801 | presents an @file{*xref*} buffer that lists all the matches of @var{regexp}, |
| 802 | and you can use the special commands in that buffer (@pxref{Xref | 802 | and you can use the special commands in that buffer (@pxref{Xref |
| 803 | Commands}). In particular, if you exit the query replace loop, you | 803 | Commands}). In particular, if you exit the query replace loop, you |
| 804 | can use @kbd{r} in that buffer to replace more matches. | 804 | can use @kbd{r} in that buffer to replace more matches. |
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 90af5c8b17d..471a16b57de 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1875,11 +1875,11 @@ Move to the previous reference and display it in the other window | |||
| 1875 | @findex xref-show-location-at-point | 1875 | @findex xref-show-location-at-point |
| 1876 | Display the reference on the current line in the other window | 1876 | Display the reference on the current line in the other window |
| 1877 | (@code{xref-show-location-at-point}). | 1877 | (@code{xref-show-location-at-point}). |
| 1878 | @findex xref-query-replace | 1878 | @findex xref-query-replace-in-results |
| 1879 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} | 1879 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} |
| 1880 | Perform interactive query-replace on references that match | 1880 | Perform interactive query-replace on references that match |
| 1881 | @var{pattern} (@code{xref-query-replace}), replacing the match with | 1881 | @var{pattern} (@code{xref-query-replace-in-results}), replacing |
| 1882 | @var{replacement}. @xref{Identifier Search}. | 1882 | the match with @var{replacement}. @xref{Identifier Search}. |
| 1883 | @findex xref-quit | 1883 | @findex xref-quit |
| 1884 | @item q | 1884 | @item q |
| 1885 | Quit the window showing the @file{*xref*} buffer (@code{xref-quit}). | 1885 | Quit the window showing the @file{*xref*} buffer (@code{xref-quit}). |
| @@ -1901,7 +1901,7 @@ them. | |||
| 1901 | @table @kbd | 1901 | @table @kbd |
| 1902 | @item M-? | 1902 | @item M-? |
| 1903 | Find all the references for the identifier at point. | 1903 | Find all the references for the identifier at point. |
| 1904 | @item M-x xref-query-replace @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} | 1904 | @item M-x xref-query-replace-in-results @key{RET} @var{regexp} @key{RET} @var{replacement} @key{RET} |
| 1905 | Interactively replace @var{regexp} with @var{replacement} in the names | 1905 | Interactively replace @var{regexp} with @var{replacement} in the names |
| 1906 | of all the identifiers shown in the @file{*xref*} buffer. | 1906 | of all the identifiers shown in the @file{*xref*} buffer. |
| 1907 | @item M-x tags-search @key{RET} @var{regexp} @key{RET} | 1907 | @item M-x tags-search @key{RET} @var{regexp} @key{RET} |
| @@ -1923,8 +1923,8 @@ identifier, showing the file name and the line where the identifier is | |||
| 1923 | referenced. The XREF mode commands are available in this buffer, see | 1923 | referenced. The XREF mode commands are available in this buffer, see |
| 1924 | @ref{Xref Commands}. | 1924 | @ref{Xref Commands}. |
| 1925 | 1925 | ||
| 1926 | @findex xref-query-replace | 1926 | @findex xref-query-replace-in-results |
| 1927 | @kbd{M-x xref-query-replace} reads a regexp to match identifier | 1927 | @kbd{M-x xref-query-replace-in-results} reads a regexp to match identifier |
| 1928 | names and a replacement string, just like ordinary @kbd{M-x | 1928 | names and a replacement string, just like ordinary @kbd{M-x |
| 1929 | query-replace-regexp}. It then performs the specified replacement in | 1929 | query-replace-regexp}. It then performs the specified replacement in |
| 1930 | the names of the matching identifiers in all the places in all the | 1930 | the names of the matching identifiers in all the places in all the |
| @@ -1162,8 +1162,8 @@ compression command is determined from the new | |||
| 1162 | +++ | 1162 | +++ |
| 1163 | *** New user interface for the `A' and `Q' commands. | 1163 | *** New user interface for the `A' and `Q' commands. |
| 1164 | These keys, now bound to `dired-do-find-regexp' and | 1164 | These keys, now bound to `dired-do-find-regexp' and |
| 1165 | `dired-do-find-regexp-and-replace', work similarly to | 1165 | `dired-do-find-regexp-and-replace', work similarly to `xref-find-apropos' |
| 1166 | `xref-find-apropos' and `xref-query-replace': they present the matches | 1166 | and `xref-query-replace-in-results': they present the matches |
| 1167 | in the `*xref*' buffer and let you move through the matches. No need | 1167 | in the `*xref*' buffer and let you move through the matches. No need |
| 1168 | to use `tags-loop-continue' to resume the search or replace loop. The | 1168 | to use `tags-loop-continue' to resume the search or replace loop. The |
| 1169 | previous commands, `dired-do-search' and | 1169 | previous commands, `dired-do-search' and |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 831278cb762..ef1f3871175 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -2714,7 +2714,7 @@ with the command \\[tags-loop-continue]." | |||
| 2714 | '(dired-get-marked-files nil nil 'dired-nondirectory-p))) | 2714 | '(dired-get-marked-files nil nil 'dired-nondirectory-p))) |
| 2715 | 2715 | ||
| 2716 | (declare-function xref--show-xrefs "xref") | 2716 | (declare-function xref--show-xrefs "xref") |
| 2717 | (declare-function xref-query-replace "xref") | 2717 | (declare-function xref-query-replace-in-results "xref") |
| 2718 | 2718 | ||
| 2719 | ;;;###autoload | 2719 | ;;;###autoload |
| 2720 | (defun dired-do-find-regexp (regexp) | 2720 | (defun dired-do-find-regexp (regexp) |
| @@ -2746,7 +2746,7 @@ with the command \\[tags-loop-continue]." | |||
| 2746 | "Query replace regexp in marked files" t t))) | 2746 | "Query replace regexp in marked files" t t))) |
| 2747 | (list (nth 0 common) (nth 1 common)))) | 2747 | (list (nth 0 common) (nth 1 common)))) |
| 2748 | (with-current-buffer (dired-do-find-regexp from) | 2748 | (with-current-buffer (dired-do-find-regexp from) |
| 2749 | (xref-query-replace from to))) | 2749 | (xref-query-replace-in-results from to))) |
| 2750 | 2750 | ||
| 2751 | (defun dired-nondirectory-p (file) | 2751 | (defun dired-nondirectory-p (file) |
| 2752 | (not (file-directory-p file))) | 2752 | (not (file-directory-p file))) |
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index b7ac9e02e9f..267853d1642 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -502,7 +502,7 @@ WINDOW controls how the buffer is displayed: | |||
| 502 | (xref-quit) | 502 | (xref-quit) |
| 503 | (xref--pop-to-location xref window))) | 503 | (xref--pop-to-location xref window))) |
| 504 | 504 | ||
| 505 | (defun xref-query-replace (from to) | 505 | (defun xref-query-replace-in-results (from to) |
| 506 | "Perform interactive replacement of FROM with TO in all displayed xrefs. | 506 | "Perform interactive replacement of FROM with TO in all displayed xrefs. |
| 507 | 507 | ||
| 508 | This command interactively replaces FROM with TO in the names of the | 508 | This command interactively replaces FROM with TO in the names of the |
| @@ -589,7 +589,7 @@ references displayed in the current *xref* buffer." | |||
| 589 | (define-key map [remap quit-window] #'xref-quit) | 589 | (define-key map [remap quit-window] #'xref-quit) |
| 590 | (define-key map (kbd "n") #'xref-next-line) | 590 | (define-key map (kbd "n") #'xref-next-line) |
| 591 | (define-key map (kbd "p") #'xref-prev-line) | 591 | (define-key map (kbd "p") #'xref-prev-line) |
| 592 | (define-key map (kbd "r") #'xref-query-replace) | 592 | (define-key map (kbd "r") #'xref-query-replace-in-results) |
| 593 | (define-key map (kbd "RET") #'xref-goto-xref) | 593 | (define-key map (kbd "RET") #'xref-goto-xref) |
| 594 | (define-key map (kbd "C-o") #'xref-show-location-at-point) | 594 | (define-key map (kbd "C-o") #'xref-show-location-at-point) |
| 595 | ;; suggested by Johan Claesson "to further reduce finger movement": | 595 | ;; suggested by Johan Claesson "to further reduce finger movement": |