From: Tim Vaughan Date: Tue, 9 Jun 2020 09:27:07 +0000 (+0200) Subject: Encode URLs before display in mouse-over. X-Git-Tag: v2.7.11 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=elpher.git;a=commitdiff_plain;h=755a375d1fe78be3c1ad35cd516ac38faaf0e0d6 Encode URLs before display in mouse-over. 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! >:( --- diff --git a/elpher.el b/elpher.el index c135e09..cca05b8 100644 --- 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.