;; URL: http://www.nongnu.org/newsticker
;; Created: 2007
;; Keywords: News, RSS, Atom
-;; Time-stamp: "13. Juni 2008, 19:29:03 (ulf)"
+;; Time-stamp: "15. Juni 2008, 12:46:27 (ulf)"
;; ======================================================================
(save-excursion
(set-window-buffer (newsticker--treeview-list-window)
(newsticker--treeview-list-buffer))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-list-window) t))
(set-buffer (newsticker--treeview-list-buffer))
(if clear-buffer
(let ((inhibit-read-only t))
(save-excursion
(set-window-buffer (newsticker--treeview-item-window)
(newsticker--treeview-item-buffer))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) t))
(set-buffer (newsticker--treeview-item-buffer))
(let ((inhibit-read-only t))
(erase-buffer))
(defun newsticker--treeview-tree-expand (tree)
"Expand TREE.
Callback function for tree widget that adds nodes for feeds and subgroups."
- (newsticker--group-manage-orphan-feeds)
(tree-widget-set-theme "folder")
(let ((group (widget-get tree :nt-group))
(i 0)
(save-excursion
(set-window-buffer (newsticker--treeview-tree-window)
(newsticker--treeview-tree-buffer))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-tree-window) t))
(set-buffer (newsticker--treeview-tree-buffer))
(kill-all-local-variables)
(let ((inhibit-read-only t))
"Jump to feed FEED-NAME in newsticker treeview."
(interactive
(list (let ((completion-ignore-case t))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) nil))
(completing-read
"Jump to feed: "
(mapcar 'car (append newsticker-url-list
newsticker-url-list-defaults))
nil t))))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) t))
(newsticker--treeview-unfold-node feed-name))
;; ======================================================================
(interactive
(list (read-string "Group Name: ")
(let ((completion-ignore-case t))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) nil))
(completing-read "Parent Group: " (newsticker--group-all-groups)
nil t))))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) t))
(if (newsticker--group-get-group name)
(error "Group %s exists already" name))
(let ((p (if (and parent (not (string= parent "")))
Update teeview afterwards unless NO-UPDATE is non-nil."
(interactive
(let ((completion-ignore-case t))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) nil))
(list (completing-read "Feed Name: "
(mapcar 'car newsticker-url-list)
nil t newsticker--treeview-current-feed)
(completing-read "Group Name: " (newsticker--group-all-groups)
nil t))))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) t))
(let ((group (if (and group-name (not (string= group-name "")))
(newsticker--group-get-group group-name)
newsticker-groups)))
"Remove group NAME."
(interactive
(let ((completion-ignore-case t))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) nil))
(list (completing-read "Group Name: " (newsticker--group-all-groups)
nil t))))
- (if newsticker-treeview-own-frame
- (set-window-dedicated-p (newsticker--treeview-item-window) t))
(let* ((g (newsticker--group-get-group name))
(p (or (newsticker--group-get-parent-group name)
newsticker-groups)))
(defun newsticker--group-manage-orphan-feeds ()
"Put unmanaged feeds into `newsticker-groups'.
Remove obsolete feeds as well."
+ (unless newsticker-groups
+ (setq newsticker-groups '("Feeds")))
(let ((new-feed nil)
(grouped-feeds (newsticker--count-grouped-feeds newsticker-groups)))
(mapc (lambda (f)