From: plugd Date: Wed, 21 Jul 2021 16:19:51 +0000 (+0200) Subject: Merge patches curated by Alex. X-Git-Tag: v3.0.0~22 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=9d01af376d0575afba1593e982e57b859209d217 Merge patches curated by Alex. --- 9d01af376d0575afba1593e982e57b859209d217 diff --cc elpher.el index a107f07,883bde8..245d301 --- a/elpher.el +++ b/elpher.el @@@ -1,6 -1,21 +1,21 @@@ - ;;; elpher.el --- A friendly gopher and gemini client -*- lexical-binding:t -*- - - ;; Copyright (C) 2019-2020 Tim Vaughan + ;;; elpher.el --- A friendly gopher and gemini client -*- lexical-binding: t -*- + + ;; Copyright (C) 2021 Jens Östlund + ;; Copyright (C) 2021 F. Jason Park + ;; Copyright (C) 2021 Christopher Brannon + ;; Copyright (C) 2021 Omar Polo + ;; Copyright (C) 2021 Noodles! + ;; Copyright (C) 2020-2021 Alex Schroeder + ;; Copyright (C) 2020 Zhiwei Chen + ;; Copyright (C) 2020 condy0919 + ;; Copyright (C) 2020 Alexis + ;; Copyright (C) 2020 Étienne Deparis + ;; Copyright (C) 2020 Simon Nicolussi + ;; Copyright (C) 2020 Michel Alexandre Salim + ;; Copyright (C) 2020 Koushk Roy + ;; Copyright (C) 2020 Vee + ;; Copyright (C) 2020 Simon South -;; Copyright (C) 2019-2020 Tim Vaughan ++;; Copyright (C) 2019-2021 Tim Vaughan ;; Author: Tim Vaughan ;; Created: 11 April 2019 @@@ -269,8 -330,17 +330,15 @@@ Links can be accessed by pressing `v' ( (let ((url (url-generic-parse-url url-string))) (unless (and (not (url-fullness url)) (url-type url)) (setf (url-fullness url) t) - (setf (url-filename url) - (url-unhex-string (url-filename url))) (unless (url-type url) - (setf (url-type url) "gopher")) + (setf (url-type url) elpher-default-url-type)) + (unless (url-host url) + (let ((p (split-string (url-filename url) "/" nil nil))) + (setf (url-host url) (car p)) + (setf (url-filename url) + (if (cdr p) + (concat "/" (mapconcat #'identity (cdr p) "/")) + "")))) (when (or (equal "gopher" (url-type url)) (equal "gophers" (url-type url))) ;; Gopher defaults