Function: org-agenda-limit-entries
org-agenda-limit-entries is a byte-compiled function defined in
org-agenda.el.gz.
Signature
(org-agenda-limit-entries LIST PROP LIMIT &optional FN)
Documentation
Limit the number of agenda entries.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-limit-entries (list prop limit &optional fn)
"Limit the number of agenda entries."
(let ((include (and limit (< limit 0))))
(if limit
(let ((fun (or fn (lambda (p) (when p 1))))
(lim 0))
(delq nil
(mapcar
(lambda (e)
(let ((pval (funcall
fun (get-text-property (1- (length e))
prop e))))
(when pval (setq lim (+ lim pval)))
(cond ((and pval (<= lim (abs limit))) e)
((and include (not pval)) e))))
list)))
list)))