From 7a63195cc680a6e89fc1a59440d494f343c023d3 Mon Sep 17 00:00:00 2001 From: Johan Claesson Date: Sun, 17 Mar 2019 18:27:32 +0100 Subject: 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). --- lib/tools/emacs/erldoc.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/tools/emacs') 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) -- cgit v1.2.3