aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorDmitry Gutov2016-07-18 02:17:06 +0300
committerDmitry Gutov2016-07-18 02:17:06 +0300
commit6dc0bafd5915b01a341cc0efbc744abd73163872 (patch)
tree144cbae0699d60ecde3569407043d5c853a20713 /lisp/progmodes/python.el
parent02ca5db040b57ca4a36c317fcb3fb56f43ab371e (diff)
downloademacs-6dc0bafd5915b01a341cc0efbc744abd73163872.tar.gz
emacs-6dc0bafd5915b01a341cc0efbc744abd73163872.zip
; Revert "Use eldoc-documentation-functions"
This reverts commit 001d88b62ecb8163a148656acb103b354ce7613a. It doesn't have the consensus, as evidenced by http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00138.html
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ba3cdfe17cd..ad69f8779e0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -5153,14 +5153,12 @@ returned as is."
5153 (current-column)))) 5153 (current-column))))
5154 (^ '(- (1+ (current-indentation)))))) 5154 (^ '(- (1+ (current-indentation))))))
5155 5155
5156 (if (boundp 'eldoc-documentation-functions) 5156 (if (null eldoc-documentation-function)
5157 (add-hook 'eldoc-documentation-functions #'python-eldoc-function nil t) 5157 ;; Emacs<25
5158 (if (null eldoc-documentation-function) 5158 (set (make-local-variable 'eldoc-documentation-function)
5159 ;; Emacs<25 5159 #'python-eldoc-function)
5160 (set (make-local-variable 'eldoc-documentation-function) 5160 (add-function :before-until (local 'eldoc-documentation-function)
5161 #'python-eldoc-function) 5161 #'python-eldoc-function))
5162 (add-function :before-until (local 'eldoc-documentation-function)
5163 #'python-eldoc-function)))
5164 5162
5165 (add-to-list 5163 (add-to-list
5166 'hs-special-modes-alist 5164 'hs-special-modes-alist