diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2014-12-05 19:34:42 +0100 |
---|---|---|
committer | Michal Nazarewicz <mina86@mina86.com> | 2015-01-20 15:04:15 +0100 |
commit | fd020a29316e573e96501dfc1c87d05085160b2c (patch) | |
tree | 7e7eaf479ef8f2036c9fd5bf85bf60963d646460 /lisp/progmodes/octave.el | |
parent | 81681ed9a1e609101377d674613832008a667587 (diff) | |
download | emacs-fd020a29316e573e96501dfc1c87d05085160b2c.tar.gz emacs-fd020a29316e573e96501dfc1c87d05085160b2c.tar.bz2 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/octave.el')
-rw-r--r-- | lisp/progmodes/octave.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index cbdaae6fa71..8541cced3a5 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -601,7 +601,8 @@ Key bindings: (add-hook 'before-save-hook 'octave-sync-function-file-names nil t) (setq-local beginning-of-defun-function 'octave-beginning-of-defun) (and octave-font-lock-texinfo-comment (octave-font-lock-texinfo-comment)) - (setq-local eldoc-documentation-function 'octave-eldoc-function) + (add-function :before-until (local 'eldoc-documentation-function) + 'octave-eldoc-function) (easy-menu-add octave-mode-menu)) |