From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: [PATCH] org-agenda: Store stuck project redo command Date: Thu, 20 Apr 2017 18:17:37 -0700 Message-ID: References: <87wpafaamf.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1NCe-0003EA-8O for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:17:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1NCd-0006aR-Ah for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:17:40 -0400 Received: from mail-ua0-x236.google.com ([2607:f8b0:400c:c08::236]:33452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1NCd-0006Zf-6P for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:17:39 -0400 Received: by mail-ua0-x236.google.com with SMTP id j59so25691240uad.0 for ; Thu, 20 Apr 2017 18:17:38 -0700 (PDT) In-Reply-To: <87wpafaamf.fsf@felesatra.moe> 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: Allen Li Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr in case it isn't already considered, i think storing the conditions of the original call applies to many agenda calls. i run into this issue with the following old code. i set a restriction lock, and run agenda, but g runs agenda without the restriction lock. (defun alpha-org-agenda-subtree (&optional _arg) "Show agenda for all tasks in subtree. =3D=3D=3D You can get a fast sorted view with this command. In this example, the agenda will show tasks under my subtree. * top level 1 -- not shown * my subtree -- shown * TODO a * some other headline | (<- point is here) * TODO [#A] b * top level 2 -- not shown If you sort by priority, b will sort above a. =3D=3D=3D This allows you to organize nodes hierarchically instead of keeping things at the same level merely to allow sorting. " (interactive "P") (org-agenda-set-restriction-lock 'subtree) (let ((org-agenda-sorting-strategy '(user-defined-up category-up)) (org-agenda-text-search-extra-files) (org-agenda-show-inherited-tags)) (org-tags-view nil "LEVEL>0") (setq-local org-agenda-sorting-strategy org-agenda-sorting-strategy))) --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .