mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
(newsticker--retrieval-timer-list, newsticker--display-timer)
(newsticker-running-p, newsticker-ticker-running-p): Definitions moved up.
This commit is contained in:
parent
171aaa8a9e
commit
078d58e013
1 changed files with 26 additions and 23 deletions
|
|
@ -391,6 +391,32 @@
|
|||
(defvar w3-mode-map)
|
||||
(defvar w3m-minor-mode-map)
|
||||
|
||||
;; ======================================================================
|
||||
;;; Newsticker status
|
||||
;; ======================================================================
|
||||
|
||||
(defvar newsticker--retrieval-timer-list nil
|
||||
"List of timers for news retrieval.
|
||||
This is an alist, each element consisting of (feed-name . timer)")
|
||||
|
||||
(defvar newsticker--display-timer nil
|
||||
"Timer for newsticker display.")
|
||||
|
||||
;;;###autoload
|
||||
(defun newsticker-running-p ()
|
||||
"Check whether newsticker is running.
|
||||
Return t if newsticker is running, nil otherwise. Newsticker is
|
||||
considered to be running if the newsticker timer list is not empty."
|
||||
(> (length newsticker--retrieval-timer-list) 0))
|
||||
|
||||
;;;###autoload
|
||||
(defun newsticker-ticker-running-p ()
|
||||
"Check whether newsticker's actual ticker is running.
|
||||
Return t if ticker is running, nil otherwise. Newsticker is
|
||||
considered to be running if the newsticker timer list is not
|
||||
empty."
|
||||
(timerp newsticker--display-timer))
|
||||
|
||||
;; ======================================================================
|
||||
;;; Customizables
|
||||
;; ======================================================================
|
||||
|
|
@ -1188,11 +1214,6 @@ that can be added."
|
|||
;; ======================================================================
|
||||
;;; Internal variables
|
||||
;; ======================================================================
|
||||
(defvar newsticker--display-timer nil
|
||||
"Timer for newsticker display.")
|
||||
(defvar newsticker--retrieval-timer-list nil
|
||||
"List of timers for news retrieval.
|
||||
This is an alist, each element consisting of (feed-name . timer)")
|
||||
(defvar newsticker--item-list nil
|
||||
"List of newsticker items.")
|
||||
(defvar newsticker--item-position 0
|
||||
|
|
@ -3078,24 +3099,6 @@ If VALUE is nil, auto-narrowing is turned off, otherwise it is turned on."
|
|||
(let ((age (get-text-property (point) 'nt-age)))
|
||||
(and (memq age '(new old obsolete)) t)))))
|
||||
|
||||
;; ======================================================================
|
||||
;;; Newsticker status
|
||||
;; ======================================================================
|
||||
;;;###autoload
|
||||
(defun newsticker-running-p ()
|
||||
"Check whether newsticker is running.
|
||||
Return t if newsticker is running, nil otherwise. Newsticker is
|
||||
considered to be running if the newsticker timer list is not empty."
|
||||
(> (length newsticker--retrieval-timer-list) 0))
|
||||
|
||||
;;;###autoload
|
||||
(defun newsticker-ticker-running-p ()
|
||||
"Check whether newsticker's actual ticker is running.
|
||||
Return t if ticker is running, nil otherwise. Newsticker is
|
||||
considered to be running if the newsticker timer list is not
|
||||
empty."
|
||||
(timerp newsticker--display-timer))
|
||||
|
||||
;; ======================================================================
|
||||
;;; local stuff
|
||||
;; ======================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue