]> git.eshelyaron.com Git - sweep.git/commitdiff
Respect PROMPT argument in 'sweeprolog-read-existing-variable'
authorEshel Yaron <me@eshelyaron.com>
Sun, 20 Aug 2023 07:39:21 +0000 (09:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 20 Aug 2023 07:39:21 +0000 (09:39 +0200)
This fixes an omission from the recent Compat integration.

* sweeprolog.el (sweeprolog-read-existing-variable): Use PROMPT.

sweeprolog.el

index b3e7d32cefb4f755dd2e72735cb748f06309c0bd..13a306ae2da58b17145133df1d239c90de9fdef6 100644 (file)
@@ -6286,7 +6286,7 @@ EXISTING-VARS is a list of existing variable names (strings)."
                                               "occurrences"
                                               n))))))))
     (completing-read
-     (format-prompt "Rename variable"
+     (format-prompt (or prompt "Rename variable")
                     (when default
                       (sweeprolog--format-variable default)))
      occurrences nil t nil nil default)))