[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Fix (wrong-type-argument integer-or-marker-p nil) in org
From: |
Bastien |
Subject: |
Re: [O] [PATCH] Fix (wrong-type-argument integer-or-marker-p nil) in org-agenda-get-todos. |
Date: |
Thu, 08 Mar 2012 14:09:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Hi Adam,
Adam Spiers <address@hidden> writes:
> org-get-category can sometimes invoke org-refresh-category-properties
> which can perform a re-search-forward which destroys the existing
> match data. When called from org-agenda-get-todos, this can result in
> its subsequent call to (match-beginning 2) to return nil, which when
> passed as the first parameter to buffer-string causes the above error.
I fixed this by saving match data in `org-get-category'.
Thanks for spotting this!
--
Bastien