From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Highlighting bug with org-agenda-set-restriction-lock Date: Fri, 05 Apr 2013 10:46:40 -0400 Message-ID: <8738v5yqzz.fsf@norang.ca> References: <87bo9tyvdj.fsf@norang.ca> <890D099A-90BD-4AA5-AD86-E145AF8429A7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7uk-0003Us-9O for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 10:46:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO7ud-0007Qs-CB for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 10:46:50 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:48472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7ud-0007QZ-7M for emacs-orgmode@gnu.org; Fri, 05 Apr 2013 10:46:43 -0400 In-Reply-To: <890D099A-90BD-4AA5-AD86-E145AF8429A7@gmail.com> (Carsten Dominik's message of "Fri, 5 Apr 2013 16:23:23 +0200") 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > I now also see that the patch did not achieve what the purpose of it > was. The problem is not the end of the overlay, but the position of > the org-agenda-restriction-end marker. Indeed, if you add tasks after > this marker, they will not be included in the search. There is not > good work-around for this I can think of, so it is a problem we will > have to live with. > > - Carsten I would prefer the original highlighting behaviour as well. I normally narrow the buffer to the subtree as well when working on it -- and the entire narrowed buffer is bright gaudy yellow currently :). My workaround for the adding items to the ends is to remark the subtree restriction. I have added speed keys P, F, W, and N in my setup for narrow to project, narrow to file, widen, and narrow to subtree respectively. I normally narrow to project with P (on any task in the project narrows the current buffer to the project. In the agenda P sets the restriction lock on the project -- so if I've added anything new at the end of the project I can just hit P on any task in the agenda and the restriction lock is reset appropriately including all of the (new) tasks in the project. (My definition of a project is any todo keyword task that has at least one subtask with a todo keyword.) Regards, Bernt