Encode URLs before display in mouse-over. v2.7.11
authorTim Vaughan <plugd@thelambdalab.xyz>
Tue, 9 Jun 2020 09:27:07 +0000 (11:27 +0200)
committerTim Vaughan <plugd@thelambdalab.xyz>
Tue, 9 Jun 2020 09:27:07 +0000 (11:27 +0200)
Wasn't doing this previously as it's faster not to (and
it's only the help text and can't be otherwise used),
but rendering special characters in the mouse-over text
apparently causes Emacs to crash on MacOS! >:(

elpher.el

index c135e09..cca05b8 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -707,7 +707,7 @@ displayed.  The _WINDOW argument is currently unused."
                (address (elpher-page-address page)))
           (format "mouse-1, RET: open '%s'" (if (elpher-address-special-p address)
                                                 address
-                                              (url-recreate-url address))))))))
+                                              (elpher-address-to-url address))))))))
 
 (defun elpher-insert-index-record (display-string &optional address)
   "Function to insert an index record into the current buffer.