X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=blobdiff_plain;f=elpher.el;h=889c79b89383f1f8d799a5ce3e43a7e8aa790339;hb=bb6fa3a36f8c283d39829bb5adad997b9f9ab3d6;hp=99c6f11091a7780d7321cd368e5f4d383007383f;hpb=f0b76ab6fa09b0e29ff68ff72a7d5c73dcca6adb;p=elpher.git diff --git a/elpher.el b/elpher.el index 99c6f11..889c79b 100644 --- a/elpher.el +++ b/elpher.el @@ -304,8 +304,12 @@ unless PRESERVE-PARENT is non-nil." (if getter (funcall getter) (let* ((address (elpher-node-address node)) - (type (elpher-address-type address))) - (funcall (car (alist-get type elpher-type-map)))))) + (type (elpher-address-type address)) + (type-record (alist-get type elpher-type-map))) + (if type-record + (funcall (car type-record)) + (elpher-visit-parent-node) + (error "Unsupported gopher selector type '%c'" type))))) (defun elpher-visit-parent-node () "Visit the parent of the current node."