From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Bug: org-agenda-filter-by-top-heading does not filter [9.1.14 (release_9.1.14-908-gf1269e)] Date: Sun, 16 Sep 2018 16:29:48 -0400 Message-ID: <87efdtw5hf.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g1dg8-0001CU-NC for emacs-orgmode@gnu.org; Sun, 16 Sep 2018 16:30:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g1dg3-0000M5-LE for emacs-orgmode@gnu.org; Sun, 16 Sep 2018 16:30:00 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:63797) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g1dg3-0000Hh-CK for emacs-orgmode@gnu.org; Sun, 16 Sep 2018 16:29:55 -0400 In-Reply-To: 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" To: Lem Ming , emacs-orgmode@gnu.org Hello, Lem Ming writes: > In the agenda list `org-agenda-list` buffer, when I do > `org-agenda-filter-by-top-headline` when the point is over a line with a > headline, nothing is filtered. > I've never used org-agenda-filter-by-top-headline, but taking a quick look at it and its helper, org-find-top-headline, the intention seems to be to find the level-one parent of the current heading. So, in your example, > * Root > ** TODO task 2 > :tag_2: > DEADLINE: <2018-09-14 Fri 12:00:00> > :PROPERTIES: > :ADD_TIME: <2018-09-07 Fri 23:47:00> > :END: > *** TODO task 2.1 > DEADLINE: <2018-09-14 Fri 11:00:00> > :PROPERTIES: > :ADD_TIME: <2018-09-07 Fri 23:47:00> > :END: [...] > ** TODO task 7 > DEADLINE: <2018-09-14 Fri 12:00:00> SCHEDULED: <2018-09-12 Wed 10:00:00> ... it'd find "Root" if point were on any of the tasks. If I'm reading your report correctly, you're assuming that with point on the "task 2", it'd take *that* as the top-level heading and filter to all the tasks under it (task 2.1, etc). Instead, it finds "Root" and filters to everything thing under that, which---in your example file---is the same thing, so you don't see any change. -- Kyle