Display IRI instead of URI for the info page
[elpher.git] / elpher.el
index dfd139b..c57df7d 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -6,6 +6,7 @@
 ;; Copyright (C) 2021 Omar Polo <op@omarpolo.com>
 ;; Copyright (C) 2021 Noodles! <nnoodle@chiru.no>
 ;; Copyright (C) 2021 Abhiseck Paira <abhiseckpaira@disroot.org>
+;; Copyright (C) 2021 Daniel Semyonov <daniel@dsemy.com>
 ;; Copyright (C) 2020-2021 Alex Schroeder <alex@gnu.org>
 ;; Copyright (C) 2020 Zhiwei Chen <chenzhiwei03@kuaishou.com>
 ;; Copyright (C) 2020 condy0919 <condy0919@gmail.com>
@@ -2281,7 +2282,7 @@ When run interactively HOST-OR-URL is read from the minibuffer."
 (defun elpher-info-page (page)
   "Display URL of PAGE in minibuffer."
   (let ((address (elpher-page-address page)))
-    (message "%s" (elpher-address-to-url address))))
+    (message "%s" (elpher-address-to-iri address))))
 
 (defun elpher-info-link ()
   "Display information on page corresponding to link at point."