From: Lars Ingebrigtsen <larsi@gnus.org>
To: Andreas Politz <politza@hochschule-trier.de>
Cc: 19016@debbugs.gnu.org
Subject: bug#19016: 24.4.50; tq.el does the wrong thing when enqueuing inside a callback
Date: Sat, 03 Aug 2019 16:33:54 +0200 [thread overview]
Message-ID: <87o916gvxp.fsf@mouse.gnus.org> (raw)
In-Reply-To: <87h9y6xur4.fsf@hochschule-trier.de> (Andreas Politz's message of "Tue, 11 Nov 2014 04:48:31 +0100")
Andreas Politz <politza@hochschule-trier.de> writes:
> tq-queue-pop removes the top question and sends the next one. But here
> a problem occurs, if the callback function adds another question, sends
> it and waits for it's result. Because this invokes tq-process-buffer
> recursively with the first question still at top. Resulting in the
> callback to the first question called a second time, third time ... .
>
> Here is a lisp file which should demonstrate this.
>
>
> ..and a patch
Makes sense to me. I've now applied this to Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2019-08-03 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 3:48 bug#19016: 24.4.50; tq.el does the wrong thing when enqueuing inside a callback Andreas Politz
2019-08-03 14:33 ` Lars Ingebrigtsen [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o916gvxp.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=19016@debbugs.gnu.org \
--cc=politza@hochschule-trier.de \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.