From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: FR: Tap stops in org-capture templates Date: Mon, 15 Nov 2010 06:54:10 -0600 Message-ID: <20101115125410.GC3139@x201> References: <20101114235359.GZ31233@x201> <1FB1A49B-5FD5-48CD-A9FC-94FC751DA41F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=39177 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHyZi-0004aB-LX for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 07:54:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHyZe-00029c-EA for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 07:54:22 -0500 Received: from jack.asmallorange.com ([74.52.119.82]:43241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHyZe-00029P-9u for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 07:54:18 -0500 Received: from 206.180.155.43.adsl.hal-pc.org ([206.180.155.43] helo=localhost) by jack.asmallorange.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1PHyZX-0007Hu-Ha for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 07:54:13 -0500 Content-Disposition: inline In-Reply-To: <1FB1A49B-5FD5-48CD-A9FC-94FC751DA41F@gmail.com> 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: emacs-orgmode On Mon, Nov 15, 2010 at 07:51:52AM +0100, Carsten Dominik wrote: > > On Nov 15, 2010, at 12:53 AM, Russell Adams wrote: > > >I reviewed the org-manual for capture, and noticed that we don't have > >a way to specify tab stops. I use yasnippet all the time to enter > >information, and I can tab from field to field. > > > >Can capture do the same? > > Hi Russel, > > can't you just use a yasnippet in a capture buffer? > > - Carsten Certainly, if that's the preferred method. Given that, I'm trying to get yasnippet to trigger via elisp when capture creates the new buffer. A template of "\n\ncontact%(yas/expand)" fails with: condition-case: Capture abort: (wrong-type-argument char-or-string-p nil) And a template of: "\n\n%(yas/expand-snippet (yas/template-content (yas/get-template-by-uid 'org-mode \"contact\")))" fails with: condition-case: Capture template `c': The kill is not a (set of) tree(s) - please use to yank anyway Anyone more familiar with elisp that can give me some insight? Thanks. ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3