From 192a384408cc846d8e66e91a67cd9ad4e7f0be24 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 10 Sep 2021 13:06:09 +0200 Subject: [PATCH] Revert usage of format-prompt in python.el * lisp/progmodes/python.el (python-eldoc-at-point): Revert usage of format-prompt in python.el since this is also an ELPA package (and older Emacs versions doesn't have format-prompt). --- lisp/progmodes/python.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9434d26b7b8..2eef52de0cc 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -4739,7 +4739,9 @@ Interactively, prompt for symbol." (interactive (let ((symbol (python-eldoc--get-symbol-at-point)) (enable-recursive-minibuffers t)) - (list (read-string (format-prompt "Describe symbol" symbol) + (list (read-string (if symbol + (format "Describe symbol (default %s): " symbol) + "Describe symbol: ") nil nil symbol)))) (message (python-eldoc--get-doc-at-point symbol))) -- 2.39.5