"Face used for Gemini type directory records.")
(defface elpher-spartan
- '((t :inherit font-lock-constant-face))
+ '((t :inherit font-lock-type-face))
"Face used for Spartan type directory records.")
(defface elpher-spartan-post
the URL library.)"
(url-port address))
-(defun elpher-address-path-and-query (address)
- "Retrieve path and query portion of ADDRESS as a pair."
- (let ((path-and-query (url-path-and-query address)))
- (cons (car path-and-query)
- (url-unhex-string (cdr path-and-query)))))
-
(defun elpher-gopher-address-selector (address)
"Retrieve gopher selector from ADDRESS object."
(if (member (url-filename address) '("" "/"))
(setf (url-host address) (puny-encode-domain (url-host address))))
(unless (url-type address)
(setf (url-type address) (url-type current-address)))
- (when (equal (url-type address) "gemini")
+ (when (member (url-type address) '("gemini" "spartan"))
(setf (url-filename address)
(elpher-collapse-dot-sequences (url-filename address)))))
(elpher-remove-redundant-ports address)))
(defun elpher-get-spartan-response (address renderer)
"Get response string from spartan server at ADDRESS and render using RENDERER."
(let* ((host (elpher-address-host address))
- (path-and-query (elpher-address-path-and-query address))
+ (path-and-query (url-path-and-query address))
(filename (car path-and-query))
(data (cdr path-and-query))
(data-len (length data)))