GNU bug report logs - #19016
24.4.50; tq.el does the wrong thing when enqueuing inside a callback

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Tue, 11 Nov 2014 03:50:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 24.4.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 19016 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Politz <politza <at> hochschule-trier.de>
Cc: 19016 <at> debbugs.gnu.org
Subject: Re: 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
Andreas Politz <politza <at> 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




This bug report was last modified 5 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.