From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: org capture contexts not working? Date: Sun, 20 Apr 2014 16:12:49 +0800 Message-ID: <87d2gc2zcu.fsf@ericabrahamsen.net> References: <87d2gcwqp1.fsf@ericabrahamsen.net> <87a9bgqz3s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wbmp4-00038b-MW for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 04:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wbmoz-0006KY-D8 for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 04:09:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wbmoz-0006KS-74 for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 04:09:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wbmox-0006kL-H4 for emacs-orgmode@gnu.org; Sun, 20 Apr 2014 10:09:51 +0200 Received: from 114.248.3.17 ([114.248.3.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Apr 2014 10:09:51 +0200 Received: from eric by 114.248.3.17 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Apr 2014 10:09:51 +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: emacs-orgmode@gnu.org Bastien writes: > Hi Eric, > > Eric Abrahamsen writes: > >> This was slightly mis-aligned in the source file, leading me to believe >> it's just a nesting error. As it is, any template which *isn't using* >> the not-in-file predicate is going to flag as acceptable for the current >> context. I think it should just be: >> >> (when (and (eq (car rr) 'not-in-file) >> (buffer-file-name)) >> (not (string-match (cdr rr) (buffer-file-name)))) >> >> Testing indicates it works, am I missing anything? > > You are not! > > You just nailed down something quite not obvious. > > I applied the change in maint, thanks a lot for tracking this, Oh good -- my pleasure!