From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: Suggestion: Jump points Date: Wed, 11 Jul 2007 09:51:41 -0500 Message-ID: References: <468E11C4.50604@calicojack.co.uk> <6da9122d5b79844f2856186565289598@science.uva.nl> <468E1D59.6030006@calicojack.co.uk> <468E6DAF.1040100@calicojack.co.uk> <4694C483.2060708@calicojack.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8dXj-0003BE-Cy for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 10:51:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8dXi-00039Z-82 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 10:51:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8dXh-000391-VX for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 10:51:49 -0400 Received: from nz-out-0506.google.com ([64.233.162.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I8dXf-0002TE-U1 for emacs-orgmode@gnu.org; Wed, 11 Jul 2007 10:51:48 -0400 Received: by nz-out-0506.google.com with SMTP id f1so1251374nzc for ; Wed, 11 Jul 2007 07:51:41 -0700 (PDT) In-Reply-To: <4694C483.2060708@calicojack.co.uk> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rick Moynihan Cc: org-mode On 7/11/07, Rick Moynihan wrote: > Is this something people might find useful? I personally find I spend a > lot of time trying to re-acquire my previous context within a particular > task, something like this might help. > > Actually, after thinking about this; I realise that Emacs has bookmarks > (a feature I've not yet put to use) perhaps a better idea would be to > integrate these with org-mode and visiting the file via the agenda? > > What do people think? I'm not sure I understand it. You place a token (you were using ++) in the body under an outline item. Then when you select the item from agenda, instead of putting the cursor on that headline, it will look for (the first?) line with that token in it's subtree. If the token does not exist in the subtree it just places the cursor on the heading. Is this what you are suggesting? (If not then the rest of my comment may be off.) First, I avoid losing context in a different way. I have one emacs session that is always running to take care of 'administrative matter' and it is were I do most of my org-mode/project planning and tracking. When I'm in the middle of doing something with a project, I have it's tree open in an indirect buffer. I have one frame with just agenda's todo list in it for reporting and another frame with three windows (or so) so I can look at a few things at once. Since each project is in it's own buffer, I can get context just be where I left the cursor. For my uses, what I would love is a way to have org-mode remember how a subtree was folded so I could hide a subtree and then reopen it later with all of it children exposed or hidden as they were before. I like to use hiding for context in a project, but I get by without it. Getting back to your suggestion, I have an idea. First pick a good token. I don't care for ++ because it means something in C code, but I think you could get a way with picking your own token here. Next, I wonder if there is a search subtree? I didn't see it in on a quick search of the manual, but I could have missed it if it exists. If it doesn't exist, I think it might be handy here and in other places. With a subtree search, you could search out the token after agenda takes you to the project tree. You could make a custom key binding to search for you token. Also, if there is a hook that runs after agenda takes you to a heading, you might be able to put this search there. That all depends on a few things. Does subtree search exist or should it? Is a key binding good enough for a find-next-jump-point function? Is there (or should there be) a hook that runs after agenda takes you to a heading? Edd