From mboxrd@z Thu Jan 1 00:00:00 1970 From: ian martins Subject: Re: Bug: org-map-entries infinite loop for org file with tags [9.2.6 (9.2.6-elpa @ /home/ian/.emacs.d/elpa/org-9.2.6/)] Date: Tue, 11 Feb 2020 06:28:13 -0500 Message-ID: References: <877e11cxrl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006ca77f059e4b2766" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1TiQ-0004JB-S8 for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 06:28:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1TiP-0004kK-Bt for emacs-orgmode@gnu.org; Tue, 11 Feb 2020 06:28:30 -0500 In-Reply-To: <877e11cxrl.fsf@gnu.org> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien Cc: emacs-orgmode@gnu.org --0000000000006ca77f059e4b2766 Content-Type: text/plain; charset="UTF-8" Thanks for looking into it. The problem was most likely an incompatibility between emacs 24.5.1 and org 9.2.6. I upgraded emacs and it went away. On Wed, Feb 5, 2020 at 2:13 AM Bastien wrote: > Hi Ian, > > > Running org-map-entries on an org file with tags results in an infinite > > loop. > > FWIW, I cannot reproduce this. > > > Example function using org-map-entries: > > > > (defun org-map-entries-test () > > (interactive) > > (org-map-entries '(lambda () (message "%s" (org-entry-properties > > (point) 'standard)))) > > (message "done")) > > > > Example org file: > > > > * one > > * two > > * three > > :noexport: > > The above exemple is not a valid org file, the tag should be on the > same line than the headline... but perhaps that's just because your > email was sent as HTML. > > Thanks, > > -- > Bastien > --0000000000006ca77f059e4b2766 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for looking into it. The problem was most like= ly an incompatibility between emacs 24.5.1 and org 9.2.6. I upgraded emacs = and it went away.

On Wed, Feb 5, 2020 at 2:13 AM Bastien <bzg@gnu.org> wrote:
Hi Ian,

> Running org-map-entries on an org file with tags results in an infinit= e
> loop.

FWIW, I cannot reproduce this.

> Example function using org-map-entries:
>
>=C2=A0 =C2=A0 =C2=A0(defun org-map-entries-test ()
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(interactive)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(org-map-entries '(lambda () (message &q= uot;%s" (org-entry-properties
> (point) 'standard))))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(message "done"))
>
> Example org file:
>
>=C2=A0 =C2=A0 =C2=A0* one
>=C2=A0 =C2=A0 =C2=A0* two
>=C2=A0 =C2=A0 =C2=A0* three
>=C2=A0 :noexport:

The above exemple is not a valid org file, the tag should be on the
same line than the headline... but perhaps that's just because your
email was sent as HTML.

Thanks,

--
=C2=A0Bastien
--0000000000006ca77f059e4b2766--