From unknown Wed Aug 20 02:46:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14681 <14681@debbugs.gnu.org> To: bug#14681 <14681@debbugs.gnu.org> Subject: Status: [gmane.emacs.devel] random 1 second delay in comint-redirect-results-list-from-process Reply-To: bug#14681 <14681@debbugs.gnu.org> Date: Wed, 20 Aug 2025 09:46:40 +0000 retitle 14681 [gmane.emacs.devel] random 1 second delay in comint-redirect-= results-list-from-process reassign 14681 emacs submitter 14681 Leo Liu severity 14681 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 20 21:07:50 2013 Received: (at submit) by debbugs.gnu.org; 21 Jun 2013 01:07:50 +0000 Received: from localhost ([127.0.0.1]:59696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpppN-00012V-M3 for submit@debbugs.gnu.org; Thu, 20 Jun 2013 21:07:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44924) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpppK-00012E-LK for submit@debbugs.gnu.org; Thu, 20 Jun 2013 21:07:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpppE-0001qr-GK for submit@debbugs.gnu.org; Thu, 20 Jun 2013 21:07:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpppE-0001qn-Cp for submit@debbugs.gnu.org; Thu, 20 Jun 2013 21:07:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpppC-0007iB-V6 for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2013 21:07:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpppC-0001qR-5I for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2013 21:07:38 -0400 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:42869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpppB-0001qJ-Pv for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2013 21:07:38 -0400 Received: by mail-pa0-f51.google.com with SMTP id lf11so6986793pab.10 for ; Thu, 20 Jun 2013 18:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:face:date:message-id:user-agent:mime-version :content-type; bh=cMPV1kdX0ddaNr3kIurXMdCMULa6Yqe8R0b4OPaaKlY=; b=or8czhNGdiOyfljJobucVe4x16+nxqfbuVW/+xFN17BBMUiZZANEanuwiAl4DNfqxm T6JbLUjCqx59G6U/1viOBH5sJJXWWcU68nDoTI71RpSOQscWG44mTg8YlI7MahOn3aIl Yvtv6zei4w6r92CUPwsAZ/LS9VUTDAq65FFg6J7ROIloJlsQgcEiDAB70A0K3v/g8OAL QVCadGZGr5ACEiBICkZzIdhy1G+5IH5HyHiuWVVZkbpjWpx/+VJCtWbkuNFyHz8uqnS4 Egk+8QdPURWHyAlqnFZKwRhYCX4LYBCJHpzR2VYHQTlR1RQY7RNWWgzv1RoK/WcSRjQa 2jWw== X-Received: by 10.66.160.1 with SMTP id xg1mr13943601pab.25.1371776857039; Thu, 20 Jun 2013 18:07:37 -0700 (PDT) Received: from Zeuss-MacBook.local ([182.48.101.29]) by mx.google.com with ESMTPSA id u6sm2312674pbb.46.2013.06.20.18.07.30 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Jun 2013 18:07:36 -0700 (PDT) From: Leo Liu To: bug-gnu-emacs@gnu.org Subject: [gmane.emacs.devel] random 1 second delay in comint-redirect-results-list-from-process Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAMFBMVEUaFRZLMy1dTENxVzKQ WiCrXQ97cmO/dSqSh3akjGTApXy5sJ7Sxo/Sz8Xo6eP9//xJbkruAAAAAWJLR0QAiAUdSAAAAAlw SFlzAAACxQAAAsUBidZ/7wAAAAd0SU1FB9cBBwMJOwHXewoAAAIBSURBVCjPVdNBiNNAFADQ6J4F x3hThHZBBC+WCFI8SS0iezRDcMHLHkLAg6gJH/fgYQ9xYlj2sLK4KHgqCgXFhda2Idmr4kkQPZQ0 nkQMbTypbMmMM2m7ZgYSmMef/5OZPwo7HFnx3uKPcmj0Dht1LWZJ+Hvr7dIFZXRUwl9VRTuuKDJ+ U44gjscknK4hhJaCkYRsWjmBtLqXlJAG2wipNe18OZJu1BBq1E8xafl4s6Jq2mUZGftU1y7CCxnp FVUDWJXx4C66BKBnErbuoaYNtoRTu6EZBsCbMn7W+5qOAR6WvxNOby9jHWC9hAf3n304CdiAByXs 3Nh9roLDkyb/sWV712vYwaLSAn8CPMHIAAzOPDKP2COAFm4Y4ODVWc6xG7KXsN7UeUJjjimx2uwd gCgNhr0i8C/xyCD5CiCKAMY3Bf5oDzx//w/fimscdcAZU2jv9sedx6+nYPPFIoWI/GK6QZ+EFGOR ErAjCnV3vPZ7XqlTIMbOLY7fLcvvmT7rXNWaGDexIY44N12TG2PDp7vqyl57dnCeuWwyNpnEURxk fTbDYeBnKRn4oejPYI4sH6WviBumEZ/GxX4X/x6EcURFZ7E071bjQGAxpcOAEOJuTiroDEea5Szv rVWLYfl7ZiQwSUToxrkux7OLixAWGz22+HIyWTRYcVfomOwvzusfjtVIGgLHf3MAAAAASUVORK5C YII= Date: Fri, 21 Jun 2013 09:07:29 +0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) MIME-Version: 1.0 Content-Type: multipart/digest; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) --=-=-= Content-Type: message/rfc822 Subject: Topics MIME-Version: 1.0 Content-Type: text/plain Topics: random 1 second delay in comint-redirect-results-list-from-process Re: random 1 second delay in comint-redirect-results-list-from-process Re: random 1 second delay in comint-redirect-results-list-from-process Re: random 1 second delay in comint-redirect-results-list-from-process --=-=-= Content-Type: message/rfc822 Date: Thu, 20 Jun 2013 08:06:26 +0800 From: Leo Liu To: emacs-devel@gnu.org Subject: random 1 second delay in comint-redirect-results-list-from-process Message-ID: MIME-Version: 1.0 Content-Type: text/plain Hi there, I am seeing seemingly random delay of 1 second when using comint-redirect-results-list-from-process, which may be the fault of (accept-process-output nil 1). Could someone explain (accept-process-output nil 1)? Any harm in reducing it to (accept-process-output nil)? Leo --=-=-= Content-Type: message/rfc822 Date: Wed, 19 Jun 2013 22:16:12 -0400 From: Stefan Monnier To: Leo Liu Cc: emacs-devel@gnu.org Subject: Re: random 1 second delay in comint-redirect-results-list-from-process Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain > Could someone explain (accept-process-output nil 1)? Any harm in > reducing it to (accept-process-output nil)? Rather than nil it should pass the actual process. Stefan --=-=-= Content-Type: message/rfc822 Date: Thu, 20 Jun 2013 16:04:54 +0800 From: Leo Liu To: Stefan Monnier Cc: emacs-devel@gnu.org Subject: Re: random 1 second delay in comint-redirect-results-list-from-process Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain On 2013-06-20 10:16 +0800, Stefan Monnier wrote: > Rather than nil it should pass the actual process. Is it OK to apply the following patch? === modified file 'lisp/comint.el' --- lisp/comint.el 2013-05-25 02:40:33 +0000 +++ lisp/comint.el 2013-06-20 05:14:25 +0000 @@ -3726,7 +3726,7 @@ ;; Wait for the process to complete (set-buffer (process-buffer process)) (while (null comint-redirect-completed) - (accept-process-output nil 1)) + (accept-process-output process)) ;; Collect the output (set-buffer output-buffer) (goto-char (point-min)) --=-=-= Content-Type: message/rfc822 Date: Thu, 20 Jun 2013 16:17:14 -0400 From: Stefan Monnier To: Leo Liu Cc: emacs-devel@gnu.org Subject: Re: random 1 second delay in comint-redirect-results-list-from-process Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain > (while (null comint-redirect-completed) > - (accept-process-output nil 1)) > + (accept-process-output process)) I think it's OK, tho I think the loop should of course check the return value of accept-process-output (or else, check that the process is still running). Stefan --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 20 21:25:26 2013 Received: (at 14681-done) by debbugs.gnu.org; 21 Jun 2013 01:25:27 +0000 Received: from localhost ([127.0.0.1]:59731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Upq6Q-0001TZ-68 for submit@debbugs.gnu.org; Thu, 20 Jun 2013 21:25:26 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:41167) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Upq6L-0001TF-C7 for 14681-done@debbugs.gnu.org; Thu, 20 Jun 2013 21:25:23 -0400 Received: by mail-pb0-f44.google.com with SMTP id uo1so6976513pbc.3 for <14681-done@debbugs.gnu.org>; Thu, 20 Jun 2013 18:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=CIMznDFkaRhbkBs7b3WlzyozusX3QJv7I6Eowbglq34=; b=mAzHwrD3+DvG5vVwmsIOhnZMp1vJ0TsIcaJe7qcTISYPeXsEtsbVTizWASHZO06MvK p/cGKQ5xL5qL38Q6CPyPAeEdgC6bm4p5jbF3JmXZbYTHcaHalgVBykmGdN3VDH2IcJaB YxVnm3xBM4geld+VnAjkz6TOmXiGGGwaSDvNxA2tuMR5+qTCQfeNrOQTyjrrgyVlo/on 6LCFurW2DYJMZ1SWPoZyPiyS/CZ2kcbJoOZTSaOHwFfPmSbFbRfdFOc2qFsPfY40BsCt KOi6c8VQF+z8CxCQXmNWpNRMNJXkfPW5X3hbPa7tIovK4CYAy5q/+XI7NzbLUBaWAy37 aR5g== X-Received: by 10.66.139.227 with SMTP id rb3mr13901633pab.121.1371777915524; Thu, 20 Jun 2013 18:25:15 -0700 (PDT) Received: from Zeuss-MacBook.local ([182.48.101.29]) by mx.google.com with ESMTPSA id tq3sm3133979pab.7.2013.06.20.18.25.13 for <14681-done@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 20 Jun 2013 18:25:15 -0700 (PDT) From: Leo Liu To: 14681-done@debbugs.gnu.org Subject: Re: bug#14681: [gmane.emacs.devel] random 1 second delay in comint-redirect-results-list-from-process References: Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAMFBMVEUaFRZLMy1dTENxVzKQ WiCrXQ97cmO/dSqSh3akjGTApXy5sJ7Sxo/Sz8Xo6eP9//xJbkruAAAAAWJLR0QAiAUdSAAAAAlw SFlzAAACxQAAAsUBidZ/7wAAAAd0SU1FB9cBBwMJOwHXewoAAAIBSURBVCjPVdNBiNNAFADQ6J4F x3hThHZBBC+WCFI8SS0iezRDcMHLHkLAg6gJH/fgYQ9xYlj2sLK4KHgqCgXFhda2Idmr4kkQPZQ0 nkQMbTypbMmMM2m7ZgYSmMef/5OZPwo7HFnx3uKPcmj0Dht1LWZJ+Hvr7dIFZXRUwl9VRTuuKDJ+ U44gjscknK4hhJaCkYRsWjmBtLqXlJAG2wipNe18OZJu1BBq1E8xafl4s6Jq2mUZGftU1y7CCxnp FVUDWJXx4C66BKBnErbuoaYNtoRTu6EZBsCbMn7W+5qOAR6WvxNOby9jHWC9hAf3n304CdiAByXs 3Nh9roLDkyb/sWV712vYwaLSAn8CPMHIAAzOPDKP2COAFm4Y4ODVWc6xG7KXsN7UeUJjjimx2uwd gCgNhr0i8C/xyCD5CiCKAMY3Bf5oDzx//w/fimscdcAZU2jv9sedx6+nYPPFIoWI/GK6QZ+EFGOR ErAjCnV3vPZ7XqlTIMbOLY7fLcvvmT7rXNWaGDexIY44N12TG2PDp7vqyl57dnCeuWwyNpnEURxk fTbDYeBnKRn4oejPYI4sH6WviBumEZ/GxX4X/x6EcURFZ7E071bjQGAxpcOAEOJuTiroDEea5Szv rVWLYfl7ZiQwSUToxrkux7OLixAWGz22+HIyWTRYcVfomOwvzusfjtVIGgLHf3MAAAAASUVORK5C YII= Date: Fri, 21 Jun 2013 09:25:13 +0800 In-Reply-To: (Leo Liu's message of "Fri, 21 Jun 2013 09:07:29 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14681-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Fixed in trunk. From unknown Wed Aug 20 02:46:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 19 Jul 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator