File 0607-Emacs-Collect-more-function-signatures-for-erldoc.patch of Package erlang
From 7a63195cc680a6e89fc1a59440d494f343c023d3 Mon Sep 17 00:00:00 2001
From: Johan Claesson <johanclaesson@bredband.net>
Date: Sun, 17 Mar 2019 18:27:32 +0100
Subject: [PATCH 2/3] 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(-)
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)
--
2.16.4