The Lambda Lab
/
projects
/
elpher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0dd36
)
Removed last remaining url-port usage.
author
plugd
<plugd@thelambdalab.xyz>
Mon, 30 May 2022 12:19:38 +0000
(14:19 +0200)
committer
plugd
<plugd@thelambdalab.xyz>
Mon, 30 May 2022 12:19:38 +0000
(14:19 +0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
9236228
..
b4048a7
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-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."