emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: John Mathena <jmmathena@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Setting org-map-continue from to avoid skipping headings while archiving no longer works [9.5.2 (9.5.2-gd01235 @ /home/john/.emacs.d/straight/build/org/)]
Date: Fri, 07 Jan 2022 22:20:01 +0800	[thread overview]
Message-ID: <87o84nr5ke.fsf@localhost> (raw)
In-Reply-To: <CADywB5JHAyPX99Vr02SvAqiMTD+7ss4VWVipOhKfm=iGirDPhA@mail.gmail.com>

John Mathena <jmmathena@gmail.com> writes:

> * TODO A
> * TODO B
> * DONE C
>
> ...Emacs will hang, locking up until you "C-g". This minimal example
> was confirmed on Emacs 29.0.50 and Org 9.5.2-gb8656a (and I'd

Thanks for reporting! This was a problem on Org side. Should be fixed now.

> Again, I'd totally understand if this is just an end-user problem,
> where I need to write a proper end condition for my archiving function
> - if you think that's the case, let me know! I just wanted to bring
> your attention to Emacs locking up in case it was unforeseen on your
> end.

Your function indeed looks fishy in sense that it can sometimes force
Org to call your function twice on the same element. I think your
specific combination of matcher and the function should do just fine
(after I fixed the bug), but you may need to be careful about moving to
element at point at the end of buffer if you reuse this code for more
complex tasks.

Best,
Ihor



      reply	other threads:[~2022-01-07 14:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-28 16:39 John Mathena
2021-12-29  3:48 ` Ihor Radchenko
2022-01-01  6:36   ` Ihor Radchenko
2022-01-06 22:42     ` John Mathena
2022-01-07 14:20       ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o84nr5ke.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jmmathena@gmail.com \
    --subject='Re: [BUG] Setting org-map-continue from to avoid skipping headings while archiving no longer works [9.5.2 (9.5.2-gd01235 @ /home/john/.emacs.d/straight/build/org/)]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).