emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 1b2f99eec3 13/15: Display full kiwix library name


From: ELPA Syncer
Subject: [elpa] externals/kiwix 1b2f99eec3 13/15: Display full kiwix library name for library filename candidates with propertize.
Date: Wed, 7 Dec 2022 19:58:03 -0500 (EST)

branch: externals/kiwix
commit 1b2f99eec37be731d9f66fbc4efab7ea949e6600
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    Display full kiwix library name for library filename candidates with 
propertize.
---
 kiwix.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 5c9c41d757..ee6b5f0a92 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -184,8 +184,10 @@ Set it to ‘t’ will use Emacs built-in ‘completing-read’."
                                                                                
(if (and (listp element) (eq (car element) 'link))
                                                                                
    (if (string-equal (cdr (assq 'type (cadr element))) "text/html")
                                                                                
        element)))
-                                                                             
entry-xml))))))
-                                                (string-trim-left 
link_url_path "/"))))
+                                                                             
entry-xml)))))
+                                                     (library-filename 
(string-trim-left link_url_path "/")))
+                                                (propertize library-filename
+                                                            'display (format 
"%s (%s)" title library-filename)))))
                                           xml-data))))))
         :error (cl-function
                 (lambda (&rest args &key error-thrown &allow-other-keys)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]