From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: How to compute the number of headlines under the given headline? Date: Sat, 31 Jan 2015 13:47:06 +0100 Message-ID: <87d25vqfqt.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHXSN-0004Nf-9x for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 07:47:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHXSJ-0007gm-Vz for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 07:47:23 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:60550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHXSJ-0007gJ-Pn for emacs-orgmode@gnu.org; Sat, 31 Jan 2015 07:47:19 -0500 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id B81614AD8A for ; Sat, 31 Jan 2015 13:47:14 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wOYglmrQjmqR for ; Sat, 31 Jan 2015 13:47:14 +0100 (CET) Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 799B44AD60 for ; Sat, 31 Jan 2015 13:47:14 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-Mode mailing list Hello, I'd like to count the number of children (alternatively, number of all descendants) of an Org headline. Is there a ready-made function for that? If not, would using org-forward-heading-same-level and similar functions in Lisp code be a good idea? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University