emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Add number of items in the lists
Date: Mon, 01 Oct 2012 23:46:40 +0200	[thread overview]
Message-ID: <808vbpeugv.fsf@somewhere.org> (raw)

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

             reply	other threads:[~2012-10-01 21:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 21:46 Sebastien Vauban [this message]
2012-10-02 14:14 ` Add number of items in the lists Bastien
2012-10-02 20:43   ` Sebastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=808vbpeugv.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).