emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Add number of items in the lists
@ 2012-10-01 21:46 Sebastien Vauban
  2012-10-02 14:14 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2012-10-01 21:46 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

Here a first patch to do the above announced thing. Surely, this should be
extended to more types of lists, but I first wait for comments...

From 49e516a175e658469088181bb0c364136198360e Mon Sep 17 00:00:00 2001
From: Sebastien Vauban <svauban-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
Date: Mon, 1 Oct 2012 23:43:43 +0200
Subject: [PATCH 3/3] Add number of items in the TODO lists

* org-agenda.el (org-todo-list): Add the number of items in the lists.

TINYCHANGE
---
 lisp/org-agenda.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 99bbe6a..992d7f1 100755
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4423,6 +4423,8 @@ for a keyword.  A numeric prefix directly selects the Nth keyword in
       (when rtnall
 	(insert (org-agenda-finalize-entries rtnall) "\n"))
       (goto-char (point-min))
+      (end-of-line)
+      (insert (format " (%s)" (length rtnall)))
       (or org-agenda-multi (org-agenda-fit-window-to-buffer))
       (add-text-properties (point-min) (point-max)
 			   `(org-agenda-type todo
--
1.7.9

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-02 20:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-01 21:46 Add number of items in the lists Sebastien Vauban
2012-10-02 14:14 ` Bastien
2012-10-02 20:43   ` Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).