X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=blobdiff_plain;f=elpher.el;h=b4048a71adad903a3661296caf786fded6de9416;hp=e7b37ba017457101db6e648ea9aa7de11ffb17b8;hb=79c241f1ce5d4e4f2ba377485f4434e93391eb0f;hpb=aa75538a7139278c120ccc4361fff634d1b2a715 diff --git a/elpher.el b/elpher.el index e7b37ba..b4048a7 100644 --- a/elpher.el +++ b/elpher.el @@ -5,7 +5,7 @@ ;; Author: Tim Vaughan ;; Created: 11 April 2019 -;; Version: 3.4.0 +;; Version: 3.4.1 ;; Keywords: comm gopher ;; Homepage: https://thelambdalab.xyz/elpher ;; Package-Requires: ((emacs "27.1")) @@ -70,7 +70,7 @@ ;;; Global constants ;; -(defconst elpher-version "3.4.0" +(defconst elpher-version "3.4.1" "Current version of elpher.") (defconst elpher-margin-width 6 @@ -463,7 +463,8 @@ For gopher addresses this is a combination of the selector type and selector." "Retrieve port from ADDRESS object. If no address is defined, returns 0. (This is for compatibility with the URL library.)" - (url-port address)) + (let ((port (url-portspec address))) ; (url-port) is too slow! + (if port port 0))) (defun elpher-gopher-address-selector (address) "Retrieve gopher selector from ADDRESS object."