]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/xref.el (xref-query-replace-in-results): Fix prefix-arg.
authorJuri Linkov <juri@linkov.net>
Fri, 14 Jan 2022 08:18:43 +0000 (10:18 +0200)
committerJuri Linkov <juri@linkov.net>
Fri, 14 Jan 2022 08:18:43 +0000 (10:18 +0200)
Use current-prefix-arg.

lisp/progmodes/xref.el

index a1e976cb1cc494254e0d3d86d4d27372922fd8b3..066c051cfc3415be2fcb61ca34e910213d410712 100644 (file)
@@ -745,10 +745,10 @@ replace the whole name.  Unless called with prefix argument, in
 which case the user is prompted for both FROM and TO."
   (interactive
    (let* ((fr
-           (if prefix-arg
+           (if current-prefix-arg
                (read-regexp "Query-replace (regexp)" ".*")
              ".*"))
-          (prompt (if prefix-arg
+          (prompt (if current-prefix-arg
                       (format "Query-replace (regexp) %s with: " fr)
                     "Query-replace all matches with: ")))
      (list fr (read-regexp prompt))))