aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorJohan Claesson <[email protected]>2019-03-17 18:27:32 +0100
committerJohan Claesson <[email protected]>2019-03-17 18:46:36 +0100
commit7a63195cc680a6e89fc1a59440d494f343c023d3 (patch)
treee79f3140c7f41824a4ebd26a96ca8e0543580693 /lib/tools
parent28e75b6955af4e6531861decd3e9660d9136d371 (diff)
downloadotp-7a63195cc680a6e89fc1a59440d494f343c023d3.tar.gz
otp-7a63195cc680a6e89fc1a59440d494f343c023d3.tar.bz2
otp-7a63195cc680a6e89fc1a59440d494f343c023d3.zip
Emacs: Collect more function signatures for erldoc
Before this commit some function signatures were missed when parsing the html doc of OTP 21.3. After this commit more are collected but still two signatures are missed (erlang:statistics/1 and filename:basedir/3).
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/emacs/erldoc.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tools/emacs/erldoc.el b/lib/tools/emacs/erldoc.el
index 77e66bfc98..b9d5e9572a 100644
--- a/lib/tools/emacs/erldoc.el
+++ b/lib/tools/emacs/erldoc.el
@@ -213,9 +213,10 @@ up the indexing."
(when (and (eq (car-safe d) 'a)
(gethash (erldoc-dom-get-attribute d 'name) table))
(push (append (gethash (erldoc-dom-get-attribute d 'name) table)
- (list (funcall span-content
- (or (erldoc-dom-get-element d 'span)
- (cadr (memq d erldoc-dom-walk-siblings))))))
+ (list (or (funcall span-content d)
+ (funcall span-content
+ (or (erldoc-dom-get-element d 'span)
+ (cadr (memq d erldoc-dom-walk-siblings)))))))
entries))
;; Get data types
(when (and (eq (car-safe d) 'a)