From: Alex Schroeder Date: Thu, 30 Jul 2020 11:16:56 +0000 (+0200) Subject: Use unhex URLs in the header X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=refs%2Fheads%2Fpatch_multiple_buffers2;hp=efc8842a4afee1a45439eb2458a4694a008e644e Use unhex URLs in the header If we don't use url-unhex-string on the header, we're going to end up with URL's containing percent escaped stuff like The%20Word, and in header lines (as in mode lines) the percent gets replaced by stuff. Thus, in these cases my header line used to look terrible as random stuff would get inserted. --- diff --git a/elpher.el b/elpher.el index ea20525..d62f474 100644 --- a/elpher.el +++ b/elpher.el @@ -529,8 +529,9 @@ unless NO-HISTORY is non-nil." '("gophers" "gemini"))) " [TLS encryption]" "")) - (header (concat display-string - (propertize tls-string 'face 'bold)))) + (header (url-unhex-string + (concat display-string + (propertize tls-string 'face 'bold))))) (setq header-line-format header)))) (defmacro elpher-with-clean-buffer (&rest args)