diff options
| author | Mark Oteiza | 2016-07-17 12:49:57 -0400 |
|---|---|---|
| committer | Mark Oteiza | 2016-07-17 12:49:57 -0400 |
| commit | 001d88b62ecb8163a148656acb103b354ce7613a (patch) | |
| tree | 8037bfc6673122bbdf0ca4dd2561917a9741d607 /lisp/progmodes/python.el | |
| parent | e333157cba3b4ffd7c25f8210a6aa5a21ae10de7 (diff) | |
| download | emacs-001d88b62ecb8163a148656acb103b354ce7613a.tar.gz emacs-001d88b62ecb8163a148656acb103b354ce7613a.zip | |
Use eldoc-documentation-functions
* lisp/hexl.el (hexl-mode):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/progmodes/cfengine.el (cfengine3-mode):
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
* lisp/progmodes/octave.el (octave-mode, inferior-octave-mode):
* lisp/progmodes/python.el (python-mode):
* lisp/simple.el (read--expression): Add buffer-locally to hook
eldoc-documentation-functions.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index ad69f8779e0..ba3cdfe17cd 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -5153,12 +5153,14 @@ returned as is." | |||
| 5153 | (current-column)))) | 5153 | (current-column)))) |
| 5154 | (^ '(- (1+ (current-indentation)))))) | 5154 | (^ '(- (1+ (current-indentation)))))) |
| 5155 | 5155 | ||
| 5156 | (if (null eldoc-documentation-function) | 5156 | (if (boundp 'eldoc-documentation-functions) |
| 5157 | ;; Emacs<25 | 5157 | (add-hook 'eldoc-documentation-functions #'python-eldoc-function nil t) |
| 5158 | (set (make-local-variable 'eldoc-documentation-function) | 5158 | (if (null eldoc-documentation-function) |
| 5159 | #'python-eldoc-function) | 5159 | ;; Emacs<25 |
| 5160 | (add-function :before-until (local 'eldoc-documentation-function) | 5160 | (set (make-local-variable 'eldoc-documentation-function) |
| 5161 | #'python-eldoc-function)) | 5161 | #'python-eldoc-function) |
| 5162 | (add-function :before-until (local 'eldoc-documentation-function) | ||
| 5163 | #'python-eldoc-function))) | ||
| 5162 | 5164 | ||
| 5163 | (add-to-list | 5165 | (add-to-list |
| 5164 | 'hs-special-modes-alist | 5166 | 'hs-special-modes-alist |