]> code.delx.au - gnu-emacs/blobdiff - lisp/progmodes/python.el
eldoc: modify `eldoc-documentation-function' using `add-function'
[gnu-emacs] / lisp / progmodes / python.el
index 1e8623dd90141849f8fc416a212dacf04a20729d..d298f96bc81eb3614594193c163b2229323e92ab 100644 (file)
@@ -4662,8 +4662,8 @@ Arguments START and END narrow the buffer region to work on."
                                                  (current-column))))
          (^ '(- (1+ (current-indentation))))))
 
-  (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
                `(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"