From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Questions about org-capture templates and usage Date: Mon, 6 Dec 2010 15:27:20 +0100 Message-ID: <4AF90AC3-9244-4074-BAF8-9A2E4D87F670@gmail.com> References: <83bp50hgy2.fsf@gmail.com> <8762v81le1.fsf@fastmail.fm> <87pqtf8sb2.fsf@norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39644 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPc2I-0003u0-Mz for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:27:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPc2F-0000qF-MC for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:27:26 -0500 Received: from mail-ew0-f43.google.com ([209.85.215.43]:45720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPc2F-0000pv-Gi for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:27:23 -0500 Received: by ewy22 with SMTP id 22so8213299ewy.30 for ; Mon, 06 Dec 2010 06:27:22 -0800 (PST) In-Reply-To: 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: Carsten Dominik Cc: Bernt Hansen , Matt Lundin , emacs-orgmode@gnu.org On Dec 6, 2010, at 9:20 AM, Carsten Dominik wrote: > > On Dec 6, 2010, at 6:02 AM, Alan E. Davis wrote: > >> I am at much greater ease due to these two messages. They solve >> several of my befuddlements about capture. >> >> On Mon, Dec 6, 2010 at 1:59 PM, Bernt Hansen wrote: >> I visit newly captured items all the time. If you capture >> something (I >> have C-M-r bound to org-capture) and store it with C-c C-c you can >> visit >> it immediately with a double prefix C-u C-u C-M-r as stated in the >> org-capture docstring: >> >> This is exactly what I was looking for in the manual. > > Wow, I cannot believe I forgot to put these into the manual! Crazy. > They are in not (git version). Sigh, one of my many standard typos: They are in NOW. - Carsten > > >> In fact, I think my comment about the manual was partly a response >> to being unable to find this item in the manual, when I know I >> had seen reference to it somewhere. Maybe in my request for items >> to be included in the manual, the docstrings in org-capture.el >> would be scanned. I missed this on my cursory search of that >> file. I will search for it myself, and work on (believe it or not) >> org-help.org, that I use as a helpmate. >> >> I have org-capture assigned to C-c, so C-u C-u C-c c goes straight >> to the last stored item. Perfect. >> >> | >> | (org-capture &optional GOTO KEYS) >> | >> I THINK I understand that GOTO here refers to the prefix C-u ? And >> C-u C-u circumvents this? >> >> | When called interactively with a C-u prefix argument GOTO, don't >> capture >> | anything, just go to the file/headline where the selected template >> | stores its notes. With a double prefix argument C-u C-u, go to >> the last note >> >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> | stored. >> ^^^^^^ >> >> This is it! What I was looking for. >> >> I think, thought it may seem crazy, I would like to still have a >> way to specify in the template that one would remain with the newly >> captured item in its environment, after finalizing. Just the >> same, thinking about that it's an indirect buffer, it makes more >> sense how it works now... > > You can just widen during capture if you wish: C-x n w will show you > the entire buffer. > You still need to finalize at some point with C-c C-c though. > >> >> Awe, heck, these two methods solve my problem well enough... >> >> | >> | When called with a `C-0' (zero) prefix, insert a template at point. >> | >> >> This is a great feature... >> >> | Lisp programs can set KEYS to a string associated with a template >> in >> | `org-capture-templates'. In this case, interactive selection >> will be >> | bypassed. >> `---- >> >> This is something I'd like to see an example of. > > (defun my-capture-k () > (interactive) > (org-capture nil "k")) > > will directly get you into capture template k. > > - Carsten > - Carsten