X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/02ca5db040b57ca4a36c317fcb3fb56f43ab371e..6dc0bafd5915b01a341cc0efbc744abd73163872:/lisp/progmodes/python.el diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index ba3cdfe17c..ad69f8779e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5153,14 +5153,12 @@ returned as is." (current-column)))) (^ '(- (1+ (current-indentation)))))) - (if (boundp 'eldoc-documentation-functions) - (add-hook 'eldoc-documentation-functions #'python-eldoc-function nil t) - (if (null eldoc-documentation-function) - ;; Emacs<25 - (set (make-local-variable 'eldoc-documentation-function) - #'python-eldoc-function) - (add-function :before-until (local 'eldoc-documentation-function) - #'python-eldoc-function))) + (if (null eldoc-documentation-function) + ;; Emacs<25 + (set (make-local-variable 'eldoc-documentation-function) + #'python-eldoc-function) + (add-function :before-until (local 'eldoc-documentation-function) + #'python-eldoc-function)) (add-to-list 'hs-special-modes-alist