From f379a217be6f3dcf432872c0609d0248da328d22 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 20 Aug 2023 09:39:21 +0200 Subject: [PATCH] Respect PROMPT argument in 'sweeprolog-read-existing-variable' This fixes an omission from the recent Compat integration. * sweeprolog.el (sweeprolog-read-existing-variable): Use PROMPT. --- sweeprolog.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sweeprolog.el b/sweeprolog.el index b3e7d32..13a306a 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -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))) -- 2.39.5