aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMark Oteiza2020-02-25 17:53:04 -0500
committerMark Oteiza2020-02-25 18:15:12 -0500
commitc0fcbd2c119b8418855f0931aceefbef717c5e53 (patch)
treee082296f7c739d7e4420ddd7210a0f022174640b /etc
parent03c07c88d90b5747456b9d286bace2dd4a713aac (diff)
downloademacs-c0fcbd2c119b8418855f0931aceefbef717c5e53.tar.gz
emacs-c0fcbd2c119b8418855f0931aceefbef717c5e53.zip
Expose ElDoc functions in a hook (Bug#28257)
* lisp/emacs-lisp/eldoc.el: Update commentary. (eldoc--eval-expression-setup): Use new hook. (eldoc--supported-p): Accomodate new hook. (eldoc-documentation-functions): New hook. (eldoc-documentation-default, eldoc-documentation-compose): New functions. (eldoc-documentation-function): Use 'eldoc-documentation-default' as new default value. Update documentation and custom attributes. (eldoc-print-current-symbol-info): Accomodate possible null value for 'eldoc-documentation-function'. * etc/NEWS: Mention them. * doc/emacs/programs.texi (Emacs Lisp Documentation Lookup): Mention new hook and changes to 'eldoc-documentation-function'. * lisp/hexl.el (hexl-mode, hexl-revert-buffer-function): * 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): * lisp/progmodes/python.el (python-mode): Use new hook.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 54aab1a5b60..ee3a3c19e7c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -125,6 +125,18 @@ To revert to the previous behaviour,
125unconditionally aborts the current edebug instrumentation with the 125unconditionally aborts the current edebug instrumentation with the
126supplied error message. 126supplied error message.
127 127
128+++
129** ElDoc
130
131*** New hook 'eldoc-documentation-functions' to be used for registering
132doc string functions. This makes the results of all doc string
133functions accessible to the user through the existing single function hook
134'eldoc-documentation-function'.
135
136*** 'eldoc-documentation-function' is now a custom variable.
137Modes should use the new hook instead of this variable to register
138their backends.
139
128** Tramp 140** Tramp
129 141
130+++ 142+++