From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [PATCH] Fix (wrong-type-argument integer-or-marker-p nil) in org-agenda-get-todos. Date: Thu, 08 Mar 2012 14:09:43 +0100 Message-ID: <87k42vb5ns.fsf@gnu.org> References: <20120304234713.GA27660@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5d4z-0000uk-E9 for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 08:08:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5d4s-00025h-Pz for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 08:08:25 -0500 Received: from incoming2.cnam.fr ([163.173.128.34]:49184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5d4s-00025S-Jh for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 08:08:18 -0500 In-Reply-To: <20120304234713.GA27660@atlantic.linksys.moosehall> (Adam Spiers's message of "Sun, 4 Mar 2012 23:47:14 +0000") 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: org-mode mailing list Hi Adam, Adam Spiers 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