From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Fixes for org-capture-templates-contexts Date: Sat, 12 Jan 2013 09:45:04 +0100 Message-ID: <878v7yu6wf.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtwiE-00015N-Gp for emacs-orgmode@gnu.org; Sat, 12 Jan 2013 03:45:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtwiA-0005li-Sm for emacs-orgmode@gnu.org; Sat, 12 Jan 2013 03:45:10 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:38439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtwiA-0005kb-N2 for emacs-orgmode@gnu.org; Sat, 12 Jan 2013 03:45:06 -0500 Received: by mail-wg0-f43.google.com with SMTP id e12so1166546wge.34 for ; Sat, 12 Jan 2013 00:45:05 -0800 (PST) In-Reply-To: (Paul Sexton's message of "Thu, 10 Jan 2013 21:04:54 +0000 (UTC)") 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: Paul Sexton Cc: emacs-orgmode@gnu.org Hi Paul, Paul Sexton writes: > org-capture-templates-contexts currently appears not to work. Actually it works, but the docstring where misleading, I fixed them. > - new context specifiers in-buffer and not-in-buffer > - in-mode and not-in-mode expect a symbol, not a regexp. > - if a rule specifies a template that has 'sub-templates', those sub-templates > will also be affected by the rule. For example if you have templates 't', > 'ta', 'tb' and 'tc', you can specify a rule for 't' which will affect > all of them. If you can send a patch against master for this, I'd be happy to apply it! Thanks again for pointing to these problems, -- Bastien