From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: A question regarding sit-for (and while-no-input) Date: Sat, 06 Oct 2018 11:35:07 +0100 Message-ID: <87h8hzxt0k.fsf@gmail.com> References: <87k1nyzwx5.fsf@gmail.com> <87ftymzvjv.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1538821999 6943 195.159.176.226 (6 Oct 2018 10:33:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 10:33:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 06 12:33:15 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8jtZ-0001fc-N5 for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2018 12:33:13 +0200 Original-Received: from localhost ([::1]:38618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8jvg-0005Yi-Cy for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2018 06:35:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8jva-0005Yc-Fe for emacs-devel@gnu.org; Sat, 06 Oct 2018 06:35:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8jvS-0006XS-Cn for emacs-devel@gnu.org; Sat, 06 Oct 2018 06:35:16 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:50987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8jvS-0006Wj-6e for emacs-devel@gnu.org; Sat, 06 Oct 2018 06:35:10 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id s12-v6so3949741wmc.0 for ; Sat, 06 Oct 2018 03:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=0Yl6As+hg8YNzSMvgZlgl2i3R4jpdlbWz/CzhCvDiLU=; b=Dnnzb4/YxMu1+Rf9jizZxyVgYNIDgZ3q30Fl5Mzcr/dY6Vy4sAJY/a5SIFedZOjSaI TQHROyOcI0s+2zsMd1amzJfcYWcyzECvmknqmeljh5802TXXp7PuY4xSpw9e6CTfmSdG 89ylkqXujtpSs7BfZteM7CY+Bjr609unAnI0UPJZ9d+F9FuIzMNNrL0tvKE5jHBQQ633 FaGwxK8GU5yBSL1NVFoZ7skMkPhwVSnbmswY5AF+3lDj+9Q8+2zNbqRmu4b3PAr7zVGm RtuPn3cdyur2/+qL3ObE7is1/hphv3LR86Hl0m17i7zN8Gyi+/MeBM+zXa3K4nVFL5FC W/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=0Yl6As+hg8YNzSMvgZlgl2i3R4jpdlbWz/CzhCvDiLU=; b=HdbsF2YsBIKWMQ0YtfWt1DkUuk8wo/snTtRE3gSKvw9EByalTiNzXLvRLftqOOMGNx 6iqBi9wOejtCIzOddaLRuroBgGt2jJuzwZeEEZJQnh5EJwg9ymAKJwMaXcalbxeJe314 8Rct336t4cdaUyN6fuK3dgudCSOCRYuk36AjW1hwgkoYIpXL4l6eNis55Pc3yZOnLtV8 Eqib3IKZ2tZAxyUGB0kUH1tADcoIOE/zFZejJ1a0WA7htPphqlMMPUrRJyzc0w4639ei F87PP1cPiidJ9KUsUCxwhb1zIpyWwQU73kO9H+7wCqrqloI8Nj4IbeluIFTKPp0kqDak 3jUA== X-Gm-Message-State: ABuFfoiDqOu2p2GUsFKSe/5bvXj3eCDRmZQwEQGGYjr62DWiZ21WJw8t MMA4anBg+UzqqlVCOaQiOefILnOe X-Google-Smtp-Source: ACcGV62ZiueTbk6SF7WlpQjbikAv/Ou+zWxw866XVtrNhNidnnKEj1peMZvEKdZsxdwrKzP95CqW7w== X-Received: by 2002:a1c:ce02:: with SMTP id e2-v6mr9903995wmg.85.1538822108591; Sat, 06 Oct 2018 03:35:08 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id 201-v6sm4970184wmf.30.2018.10.06.03.35.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 06 Oct 2018 03:35:07 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 05 Oct 2018 08:36:59 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230247 Archived-At: Stefan Monnier writes: >> These are the results of pressing C-u C-x C-e SPC in quick succession >> after each expression. >> >> (joaot/time >> (while-no-input >> (while t (accept-process-output nil 0.1)))) ; Took 00.201 seconds = and returned t >>=20=20=20=20=20 >> (joaot/time >> (while-no-input >> (while t (accept-process-output nil 30)))) ; Took 03.822 seconds a= nd returned t=20 > > I don't know why this happens to you, but FWIW, I can't reproduce > it here (using Debian). Right.... At first I was going to add it happens just on Windows, but then I tested it on my Ubuntu virtual server and I get the same result. But after you reported Debian being fine I tested again at home and indeed I can't reproduce too. So, reproducible on Windows (Emacs master) + Ubuntu (Emacs 25). No problem on Debian (Emacs master). Going to try a few more combinations, but, in the meantime, what can be happening here and how can I debug it? Thanks, Jo=C3=A3o