summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-01-24 22:15:24 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-01-24 22:15:24 +0000
commit1d21056c33920730ac304e7358bd56fd9d0c58a3 (patch)
treebdbd8b74205a83c2d9cabf9b7ea111024f7c9001
parent1caa30a584bed3414b02b0b2d3083f33f5744810 (diff)
Use a more specific signal rather than `error'.
-rw-r--r--lispdoc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lispdoc.el b/lispdoc.el
index 31da3b9..bbeb778 100644
--- a/lispdoc.el
+++ b/lispdoc.el
@@ -14,7 +14,8 @@
(if (and begin end)
(delete-region begin end))
(let* ((sym (or (intern-soft name)
- (error "'%s' is not a function!" name)))
+ (signal 'wrong-type-argument
+ (list 'functionp name))))
(data (let ((func (symbol-function sym)))
(while (symbolp func)
(setq func (symbol-function func)))