GNU bug report logs - #19457
24.4; exec_sentinel_error_handler and read_process_output_error_handler

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Leo Liu <sdl.web@HIDDEN>; dated Sun, 28 Dec 2014 10:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 19457 <at> debbugs.gnu.org:


Received: (at 19457) by debbugs.gnu.org; 1 Jan 2015 16:29:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 01 11:29:14 2015
Received: from localhost ([127.0.0.1]:34590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y6icc-00045K-Hl
	for submit <at> debbugs.gnu.org; Thu, 01 Jan 2015 11:29:14 -0500
Received: from chene.dit.umontreal.ca ([132.204.246.20]:43347)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Y6ica-00045C-Vq
 for 19457 <at> debbugs.gnu.org; Thu, 01 Jan 2015 11:29:13 -0500
Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca
 [132.204.27.242])
 by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t01GTABj031720;
 Thu, 1 Jan 2015 11:29:11 -0500
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 3AF2FAE130; Thu,  1 Jan 2015 11:29:09 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Leo Liu <sdl.web@HIDDEN>
Subject: Re: bug#19457: 24.4;
 exec_sentinel_error_handler and read_process_output_error_handler
Message-ID: <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN>
References: <m1sig0m5pb.fsf@HIDDEN> <m1zja82dno.fsf@HIDDEN>
Date: Thu, 01 Jan 2015 11:29:09 -0500
In-Reply-To: <m1zja82dno.fsf@HIDDEN> (Leo Liu's message of "Sun, 28 Dec
 2014 22:54:03 +1100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV5173=0
X-NAI-Spam-Version: 2.3.0.9393 : core <5173> : inlines <1719> : streams
 <1366499> : uri <1840835>
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: 19457
Cc: 19457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

> See completion--some; all errors are deferred to the end of the
> function. There is no way a completion table can tell completion--some
> "I am not ready" don't call me again. For example, when a completion
> table involves running an external command and that command is not
> installed in the system. In this case the completion table knows better
> i.e. no need to retry so as to save precious time.

[ I understand this may not really solve your problem, but it might
  still help you find the right solution: ]

The repetition between the different calls to the completion-table
happening during completion--some is expected to be avoided (if
problematic) via caching.

Back then I tried to come up with some alternative API that would
provide directly the ability to share more work, but couldn't come
up with anything that was really better than just using straight caching
in the backend.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19457; Package emacs. Full text available.

Message received at 19457 <at> debbugs.gnu.org:


Received: (at 19457) by debbugs.gnu.org; 28 Dec 2014 11:54:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 28 06:54:20 2014
Received: from localhost ([127.0.0.1]:59441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y5CQO-0006Yd-Ig
	for submit <at> debbugs.gnu.org; Sun, 28 Dec 2014 06:54:20 -0500
Received: from mail-pa0-f44.google.com ([209.85.220.44]:58394)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5CQM-0006YT-9q
 for 19457 <at> debbugs.gnu.org; Sun, 28 Dec 2014 06:54:18 -0500
Received: by mail-pa0-f44.google.com with SMTP id et14so15831193pad.3
 for <19457 <at> debbugs.gnu.org>; Sun, 28 Dec 2014 03:54:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:face:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=mPgVYFGAYWcuq8UimQQ2ZyKPz5/dIc5AjJvS/YF/qzY=;
 b=vpypJKsObEs1jpjb9jvxW4Fe5/gTUetakSBh0mo1xVC7uHbRzeKtaziGPC5NxGL8Nh
 cC9SsE7LpXCu/NtBa1ZUrVtWjn6UT5BvxmqOEwGjJsh8ZF1e/fv9TnL1sTv7A4fEWyeo
 NxROQwb/zJ06/lI+xG5MQBESb5XNGJgcWegkBcSDuoafER0vPM6KtdcJRQliMs63V/+z
 e38oCeeiAWgCrtQfsKrSSYYpXVWL2Sy3TGE7nVV7zRduzfDfOFyzP3vPxRjbXRHui62l
 CeKRP97HQ0lQJR8c4UYNPg+toZdlgMqrR35/CQ1EWeNP74fo0PY+TrMQpLa7SKgNakAj
 Px8A==
X-Received: by 10.70.103.5 with SMTP id fs5mr83401291pdb.16.1419767657401;
 Sun, 28 Dec 2014 03:54:17 -0800 (PST)
Received: from Zeuss-MacBook.local ([1.152.136.143])
 by mx.google.com with ESMTPSA id fu17sm32953987pdb.5.2014.12.28.03.54.12
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 28 Dec 2014 03:54:16 -0800 (PST)
From: Leo Liu <sdl.web@HIDDEN>
To: 19457 <at> debbugs.gnu.org
Subject: Re: bug#19457: 24.4;
 exec_sentinel_error_handler and read_process_output_error_handler
References: <m1sig0m5pb.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAACkAAAApAQAAAACAGz1bAAABKElEQVQYlWNg3NIt5FDPUPt7
 4+X79Qyucz5/ugik+L2PBgKpyphaIK921q23QDnG0NBQoMr/vaWl9f8ZLL78uPv5PwN7RETfzXoG
 jhmFz27XM0RXmpuY/WfY+fv0Mc56BvFybfXA/wwL5t/wF61n2PU59axXPcOVzbmSW/8zrNt1benC
 /ww70hqUU/4zKCtrT9jwn8FhwynbufUMendE2aLqGRpdX9al1zM8eh17lKeeQcTMrdD5P8P3j/YT
 Q/8zXHSb7p1Qz/C4OM2JuZ7hgtI7K6AjqsMnf8j4z8C6xG1tw3+GqpqvsVn/GTzmpD9j/8/wP/oZ
 S/l/Bka+QO/g/wy15ueeFQL9N1O8mPU/g+umV3t1gdT0/1bTgHLqYVeXAlWKpMWt+w8Az82C9nHf
 X0cAAAAASUVORK5CYII=
Date: Sun, 28 Dec 2014 22:54:03 +1100
In-Reply-To: <m1sig0m5pb.fsf@HIDDEN> (Leo Liu's message of "Sun, 28 Dec
 2014 21:25:36 +1100")
Message-ID: <m1zja82dno.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (OS X 10.10.1)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 19457
Cc: Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 2014-12-28 21:25 +1100, Leo Liu wrote:
> This can be problematic in a situation triggered by completion-at-point.
> in my setup I have 3 items in completion-styles and it can trigger 6
> sentinel/filter errors in a row for every char input. While the errors
> are signalled and even if I keep hitting C-g I have to wait many
> seconds.

There is also this issue:

See completion--some; all errors are deferred to the end of the
function. There is no way a completion table can tell completion--some
"I am not ready" don't call me again. For example, when a completion
table involves running an external command and that command is not
installed in the system. In this case the completion table knows better
i.e. no need to retry so as to save precious time.

Leo




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#19457; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Dec 2014 10:26:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 28 05:26:05 2014
Received: from localhost ([127.0.0.1]:59410 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y5B2z-0004Ij-1o
	for submit <at> debbugs.gnu.org; Sun, 28 Dec 2014 05:26:05 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38170)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2w-0004Ib-Pf
 for submit <at> debbugs.gnu.org; Sun, 28 Dec 2014 05:26:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2v-00016o-Rm
 for submit <at> debbugs.gnu.org; Sun, 28 Dec 2014 05:26:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50966)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2v-00016k-PS
 for submit <at> debbugs.gnu.org; Sun, 28 Dec 2014 05:26:01 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39885)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2u-0005cI-Ou
 for bug-gnu-emacs@HIDDEN; Sun, 28 Dec 2014 05:26:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2q-00014k-OU
 for bug-gnu-emacs@HIDDEN; Sun, 28 Dec 2014 05:26:00 -0500
Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:34577)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sdl.web@HIDDEN>) id 1Y5B2q-00013Z-HT
 for bug-gnu-emacs@HIDDEN; Sun, 28 Dec 2014 05:25:56 -0500
Received: by mail-pa0-f41.google.com with SMTP id rd3so15642765pab.14
 for <bug-gnu-emacs@HIDDEN>; Sun, 28 Dec 2014 02:25:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=2QvSit77cpZ9jYqvmbTt2+JdIT5aHpqjbK33WKO9Z5I=;
 b=Bb3XORS6/bIF3S8cihm7X53bfmtt/F9Hob4p7uYP5H71pVVhHg8GPR7jVIHAdB8Jsy
 mdGVz0NoLHB2279GxQITSaUkKRRpxVfdhpJ1gTAeeBMgUoOPBzn6qAdbf+6W7gbsMT3G
 tAv5h8887q2anvsBaqUGV1hvfGoUGhA2oAp6Wtx6py8jhy5/UlXHbz5pTCenNZ97XqVB
 lNFrc6dRElZZr9cbZsCbC1IKnu2By3tIJPXzhQ4UvsSCMLY9ZkN6Zzyq6+WpBOky8H9o
 1cvLLO9NeOwQO+AV4Hrxz4/mBtNTqjsjW7YbTvOd9ea5yzQ92FrOx1a05ay2Pco4pQTs
 FXUQ==
X-Received: by 10.66.63.2 with SMTP id c2mr58526206pas.23.1419762355033;
 Sun, 28 Dec 2014 02:25:55 -0800 (PST)
Received: from Zeuss-MacBook.local ([1.158.28.206])
 by mx.google.com with ESMTPSA id bu4sm32668604pdb.80.2014.12.28.02.25.49
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 28 Dec 2014 02:25:54 -0800 (PST)
From: Leo Liu <sdl.web@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.4;
 exec_sentinel_error_handler and read_process_output_error_handler
X-Debbugs-CC: 
Date: Sun, 28 Dec 2014 21:25:36 +1100
Message-ID: <m1sig0m5pb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


why are these functions have a hard-coded 2 seconds wait while
inhibit-quit?

This can be problematic in a situation triggered by completion-at-point.
in my setup I have 3 items in completion-styles and it can trigger 6
sentinel/filter errors in a row for every char input. While the errors
are signalled and even if I keep hitting C-g I have to wait many
seconds.

Leo




Acknowledgement sent to Leo Liu <sdl.web@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#19457; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 1 Jan 2015 16:30:02 UTC

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