[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/elpher 79c241f1ce: Removed last remaining url-port usage.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/elpher 79c241f1ce: Removed last remaining url-port usage. |
Date: |
Mon, 30 May 2022 08:58:14 -0400 (EDT) |
branch: elpa/elpher
commit 79c241f1ce5d4e4f2ba377485f4434e93391eb0f
Author: plugd <plugd@thelambdalab.xyz>
Commit: plugd <plugd@thelambdalab.xyz>
Removed last remaining url-port usage.
---
elpher.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elpher.el b/elpher.el
index 92362286fe..b4048a71ad 100644
--- 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."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/elpher 79c241f1ce: Removed last remaining url-port usage.,
ELPA Syncer <=