[Top][All Lists]

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

[PATCH] lisp/net/newst-treeview.el: use :nt-feed instead of :tag

From: Cédric Chépied
Subject: [PATCH] lisp/net/newst-treeview.el: use :nt-feed instead of :tag
Date: Tue, 16 Jun 2015 14:13:41 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/25.0.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Feeds in the newsticker treeview can sometimes have the same title (it occurs
with trac for example or when there is an error while retrieving the news). When
two feeds have the same title the commands newsticker-treeview-next-feed and
newsticker-treeview-prev-feed do not work because they are using the displayed
string to differentiate feeds.
This is a patch to use the :nt-feed property which is defined by the user.

 lisp/net/newst-treeview.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el
index a964750..df7628a 100644
--- a/lisp/net/newst-treeview.el
+++ b/lisp/net/newst-treeview.el
@@ -219,7 +219,7 @@ their id stays constant."
     ;;(message "%s/%s %s/%s" (widget-get node1 :tag) (widget-get node2 :tag)
     ;;       (or id1 -1) (or id2 -1))
     (or (newsticker--treeview-ids-eq id1 id2)
-        (string= (widget-get node1 :tag) (widget-get node2 :tag)))))
+        (string= (widget-get node1 :nt-feed) (widget-get node2 :nt-feed)))))
 (defun newsticker--treeview-do-get-node-of-feed (feed-name startnode)
    "Recursively search node for feed FEED-NAME starting from STARTNODE."

reply via email to

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