]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert usage of format-prompt in python.el
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 10 Sep 2021 11:06:09 +0000 (13:06 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 10 Sep 2021 14:39:13 +0000 (16:39 +0200)
* 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

index 9434d26b7b882e24c13346bf92f2ad0b667d6a4f..2eef52de0cc36d06cda3979438caa6cc46e918e3 100644 (file)
@@ -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)))