aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorDmitry Gutov2016-01-24 05:17:52 +0300
committerDmitry Gutov2016-01-24 05:17:52 +0300
commit3f481ad0072ea4fe300af7f326de9049a8d32d4a (patch)
treea781402132026d802d0b68149cfa152ee97cba1d /lisp
parent62f4ed477ebcbe56087bb1df96340530c84b33a9 (diff)
downloademacs-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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/dired-aux.el4
-rw-r--r--lisp/progmodes/xref.el4
2 files changed, 4 insertions, 4 deletions
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
508This command interactively replaces FROM with TO in the names of the 508This 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":