mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
Get selected item in newsticker list view
* lisp/net/newst-treeview.el (newsticker--treeview-get-selected-item): If an item is already selected, use it. (Bug#80972) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
6bd73af241
commit
10e91e096d
1 changed files with 4 additions and 2 deletions
|
|
@ -1387,8 +1387,10 @@ Will move to previous feed until an item is found."
|
|||
(defun newsticker--treeview-get-selected-item ()
|
||||
"Return item that is currently selected in list buffer."
|
||||
(with-current-buffer (newsticker--treeview-list-buffer)
|
||||
(beginning-of-line)
|
||||
(get-text-property (point) :nt-item)))
|
||||
(goto-char (point-min))
|
||||
(if-let* ((selected (text-property-search-forward :nt-selected t t)))
|
||||
(get-text-property (prop-match-beginning selected) :nt-item)
|
||||
(get-text-property (point-min) :nt-item))))
|
||||
|
||||
(defun newsticker-treeview-mark-item-old (&optional dont-proceed)
|
||||
"Mark current item as old unless it is obsolete.
|
||||
|
|
|
|||
Loading…
Reference in a new issue