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:
a19d312
)
Made default protocol gopher.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 8 Sep 2019 22:31:49 +0000
(
00:31
+0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sun, 8 Sep 2019 22:31:49 +0000
(
00:31
+0200)
elpher.el
patch
|
blob
|
history
diff --git
a/elpher.el
b/elpher.el
index
56f8e9b
..
0332286
100644
(file)
--- a/
elpher.el
+++ b/
elpher.el
@@
-179,6
+179,11
@@
allows switching from an encrypted channel back to plain text without user input
(let ((data (match-data))) ; Prevent parsing clobbering match data
(unwind-protect
(let ((url (url-generic-parse-url url-string)))
+ (unless (url-host url)
+ (setf (url-host url) (url-filename url))
+ (setf (url-filename "")))
+ (unless (url-type url)
+ (setf (url-type url) "gopher"))
(if (and (url-type url)
(url-host url))
(let ((is-gopher (or (equal "gopher" (url-type url))