[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org capture contexts not working?
From: |
Bastien |
Subject: |
Re: [O] org capture contexts not working? |
Date: |
Sun, 20 Apr 2014 08:44:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Hi Eric,
Eric Abrahamsen <address@hidden> 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,
--
Bastien