X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=ea95aee605c5311b01ae99d9bd02631a7037a1ac;hp=99c6f11091a7780d7321cd368e5f4d383007383f;hb=986d88c39d06c58fb23a7dfad037fec8235164b0;hpb=f0b76ab6fa09b0e29ff68ff72a7d5c73dcca6adb diff --git a/elpher.el b/elpher.el index 99c6f11..ea95aee 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 (listp 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."