summaryrefslogtreecommitdiff
path: root/lispdoc.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 06:58:52 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 06:58:52 +0000
commit1bd7dd39c4af6b7b774b278c6d759ab002744bc8 (patch)
tree151174c8232c1fb66a9e9640edb53bf148caf17b /lispdoc.el
parent2ad08a62d61297cb4fad53976b41068e63e3e459 (diff)
*** no comment ***
Diffstat (limited to 'lispdoc.el')
-rw-r--r--lispdoc.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lispdoc.el b/lispdoc.el
index ba5fdfd..31da3b9 100644
--- a/lispdoc.el
+++ b/lispdoc.el
@@ -15,7 +15,10 @@
(delete-region begin end))
(let* ((sym (or (intern-soft name)
(error "'%s' is not a function!" name)))
- (data (symbol-function sym))
+ (data (let ((func (symbol-function sym)))
+ (while (symbolp func)
+ (setq func (symbol-function func)))
+ func))
(args (pp-to-string (if (listp data)
(cadr data)
(aref data 0))))