From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: FR: count headlines at a level in a region Date: Sun, 11 Nov 2007 19:31:05 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0537242825==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrNDE-00077H-Qp for emacs-orgmode@gnu.org; Sun, 11 Nov 2007 19:31:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrNDD-000764-HW for emacs-orgmode@gnu.org; Sun, 11 Nov 2007 19:31:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrNDD-00075r-89 for emacs-orgmode@gnu.org; Sun, 11 Nov 2007 19:31:35 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IrNDC-0008LG-Mr for emacs-orgmode@gnu.org; Sun, 11 Nov 2007 19:31:35 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IrND3-0006m3-33 for emacs-orgmode@gnu.org; Mon, 12 Nov 2007 00:31:25 +0000 Received: from cpe-74-74-148-109.rochester.res.rr.com ([74.74.148.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2007 00:31:25 +0000 Received: from austin.frank by cpe-74-74-148-109.rochester.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Nov 2007 00:31:25 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0537242825== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello! Would it be possible to add a command that does counts the number of headlines at a particular level in a region or a buffer? By default the command would count all of the headlines in the buffer or the region, depending on the selection. It would also be useful if prefix arguments restricted the count to headlines at a certain level. Given the following structure: * h1 1 ** h2 1 ** h2 2 * h1 2 ** h2 3 I would hope for the following behavior from org-count-headlines-at-level: | buffer status | command | output | |------------------------+-----------------+-------------| | no selection | no prefix arg | 5 headlines | | no selection | prefix arg of 1 | 2 headlines | | no selection | prefix arg of 2 | 3 headlines | | select the "h1 1" tree | no prefix arg | 3 headlines | | select the "h1 1" tree | prefix arg of 1 | 1 headline | | select the "h1 1" tree | prefix arg of 2 | 2 headlines | Thanks for considering it! /au =20 =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHN57JlHMl2/XbR4ERAp/2AJ9Bvxrd8nt1f2MaIeXPYQ7tQuBOvwCg3aIT lRJnPJ69pccojlw2+0qdO6U= =A/je -----END PGP SIGNATURE----- --=-=-=-- --===============0537242825== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0537242825==--