aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorMichal Nazarewicz2014-12-05 19:34:42 +0100
committerMichal Nazarewicz2015-01-20 15:04:15 +0100
commitfd020a29316e573e96501dfc1c87d05085160b2c (patch)
tree7e7eaf479ef8f2036c9fd5bf85bf60963d646460 /lisp/progmodes/python.el
parent81681ed9a1e609101377d674613832008a667587 (diff)
downloademacs-fd020a29316e573e96501dfc1c87d05085160b2c.tar.gz
emacs-fd020a29316e573e96501dfc1c87d05085160b2c.zip
eldoc: modify `eldoc-documentation-function' using `add-function'
* lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): Describe how major modes should use `add-function' to alter value of the variable. * lisp/hexl.el (hexl-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/ielm.el (inferior-emacs-lisp-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/progmodes/cfengine.el (cfengine3-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/progmodes/elisp-mode (emacs-lisp-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/progmodes/octave.el (octave-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/progmodes/python.el (python-mode): Set `eldoc-documentation-function' using `add-function' so the default value is always used. * lisp/simple.el (read--expression): Set `eldoc-documentation-function' using `add-function' so the default value is always used.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 1e8623dd901..d298f96bc81 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4662,8 +4662,8 @@ Arguments START and END narrow the buffer region to work on."
4662 (current-column)))) 4662 (current-column))))
4663 (^ '(- (1+ (current-indentation)))))) 4663 (^ '(- (1+ (current-indentation))))))
4664 4664
4665 (set (make-local-variable 'eldoc-documentation-function) 4665 (add-function :before-until (local 'eldoc-documentation-function)
4666 #'python-eldoc-function) 4666 #'python-eldoc-function)
4667 4667
4668 (add-to-list 'hs-special-modes-alist 4668 (add-to-list 'hs-special-modes-alist
4669 `(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#" 4669 `(python-mode "^\\s-*\\(?:def\\|class\\)\\>" nil "#"