]> code.delx.au - gnu-emacs-elpa/commitdiff
Use a more specific signal rather than `error'.
authorJohn Wiegley <johnw@newartisans.com>
Fri, 24 Jan 2003 22:15:24 +0000 (22:15 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 24 Jan 2003 22:15:24 +0000 (22:15 +0000)
lispdoc.el

index 31da3b9523f8c11a1465badb2515ffa252da16ee..bbeb778eee506fe9e01c1bbc8638e4946d307d1f 100644 (file)
@@ -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)))