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:20:01 -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]:54107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1NEx-000406-VT for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1NEw-0007GU-P8 for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:20:03 -0400 Received: from mail-ua0-x22f.google.com ([2607:f8b0:400c:c08::22f]:36727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1NEw-0007GQ-KN for emacs-orgmode@gnu.org; Thu, 20 Apr 2017 21:20:02 -0400 Received: by mail-ua0-x22f.google.com with SMTP id a1so69875579uaf.3 for ; Thu, 20 Apr 2017 18:20:02 -0700 (PDT) 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: Allen Li Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr maybe i got that backward. my note is: "fixme bug in org: either if you do g, it will ignore restricti= on lock or you have to manually remove restriction lock. the best would be for g to preserve the restriction lock even though it has been removed." On 4/20/17, Samuel Wales wrote: > 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))) > > -- > 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 mu= rder > by neglect." --- > . > --=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." --- .