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>; Done: Lars Ingebrigtsen <larsi@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 29.1, send any further explanations to 19457 <at> debbugs.gnu.org and Leo Liu <sdl.web@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 19457) by debbugs.gnu.org; 2 Dec 2021 11:54:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 02 06:54:49 2021
Received: from localhost ([127.0.0.1]:46846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mskfp-0005Lm-Jr
	for submit <at> debbugs.gnu.org; Thu, 02 Dec 2021 06:54:49 -0500
Received: from quimby.gnus.org ([95.216.78.240]:38632)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mskfo-0005LX-Gb
 for 19457 <at> debbugs.gnu.org; Thu, 02 Dec 2021 06:54:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=PEOsX1BO4wMY87FlgpGSmZh2h4oTbpykvj/Vmcgh+4k=; b=CLya2QB7ve0IPOOWbYzyZ4Llbd
 AE+0b8UEQ/DhQCHla7vdyNtllLstKkLTp3xraqa6f4uoUHx2JIqlm93Nt98cKdFXRQzWvehDtyQ/x
 PnM5fJrah0BITlRBPFs8f9A7zom9/xIsBqcvFdZLorosGR7b4uZeRpcGbOVgdwX5utGg=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mskff-0000ZO-3C; Thu, 02 Dec 2021 12:54:42 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Leo Liu <sdl.web@HIDDEN>
Subject: Re: bug#19457: 24.4; exec_sentinel_error_handler and
 read_process_output_error_handler
References: <m1sig0m5pb.fsf@HIDDEN>
X-Now-Playing: DACM's =?utf-8?Q?=5FSt=C3=A9r=C3=A9otypie=5F=3A?= "LN End"
Date: Thu, 02 Dec 2021 12:54:38 +0100
In-Reply-To: <m1sig0m5pb.fsf@HIDDEN> (Leo Liu's message of "Sun, 28 Dec
 2014 21:25:36 +1100")
Message-ID: <878rx343y9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Leo Liu <sdl.web@HIDDEN> writes: > why are these functions
 have a hard-coded 2 seconds wait while > inhibit-quit? I've now introduced
 a new variable, `process-error-pause-time', in Emacs 29 for this. (Setting
 it to 0 will disable these pauses.) 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.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.18
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: -3.3 (---)

Leo Liu <sdl.web@HIDDEN> writes:

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

I've now introduced a new variable, `process-error-pause-time', in Emacs
29 for this.  (Setting it to 0 will disable these pauses.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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; 5 Jan 2015 01:58:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 04 20:58:42 2015
Received: from localhost ([127.0.0.1]:36817 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y7wwM-0008Rf-BA
	for submit <at> debbugs.gnu.org; Sun, 04 Jan 2015 20:58:42 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2959)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Y7wwK-0008RS-Jt
 for 19457 <at> debbugs.gnu.org; Sun, 04 Jan 2015 20:58:40 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kLogcCdZZAQEBAQYBAQEBHpBvB4RIBYsBnR6HEIF4gjeBYiGCdwEBAQ
X-IPAS-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kLogcCdZZAQEBAQYBAQEBHpBvB4RIBYsBnR6HEIF4gjeBYiGCdwEBAQ
X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="106579052"
Received: from 69-165-141-1.dsl.teksavvy.com (HELO pastel.home)
 ([69.165.141.1])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 04 Jan 2015 20:58:39 -0500
Received: by pastel.home (Postfix, from userid 20848)
 id BF4792527; Sun,  4 Jan 2015 20:58:39 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
Subject: Re: bug#19457: 24.4;
 exec_sentinel_error_handler and read_process_output_error_handler
Message-ID: <jwv4ms69eh6.fsf-monnier+emacsbugs@HIDDEN>
References: <m1sig0m5pb.fsf@HIDDEN> <m1zja82dno.fsf@HIDDEN>
 <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN>
 <54A9D018.8040505@HIDDEN>
Date: Sun, 04 Jan 2015 20:58:39 -0500
In-Reply-To: <54A9D018.8040505@HIDDEN> (Dmitry Gutov's message of "Mon, 05
 Jan 2015 02:43:20 +0300")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 19457
Cc: 19457 <at> debbugs.gnu.org, Leo Liu <sdl.web@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.3 (/)

> So all in all, it seems like the caching function has to return completions
> for an empty prefix, and then cache that. That might be pretty costly
> at times.

Indeed.  And for the "error" case, the caching is yet different.  In my
experience, there can't really be a "one stop" caching solution.


        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; 4 Jan 2015 23:43:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 04 18:43:29 2015
Received: from localhost ([127.0.0.1]:36768 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y7upV-00044r-3H
	for submit <at> debbugs.gnu.org; Sun, 04 Jan 2015 18:43:29 -0500
Received: from mail-la0-f46.google.com ([209.85.215.46]:57462)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <raaahh@HIDDEN>) id 1Y7upR-00044c-5p
 for 19457 <at> debbugs.gnu.org; Sun, 04 Jan 2015 18:43:25 -0500
Received: by mail-la0-f46.google.com with SMTP id q1so17830680lam.33
 for <19457 <at> debbugs.gnu.org>; Sun, 04 Jan 2015 15:43:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject
 :references:in-reply-to:content-type:content-transfer-encoding;
 bh=OTbPyRj3sKdY/9v8MHFh95NWjv1ko+SFpP+QpX8c76s=;
 b=cz9DJYhPS09dqvGDxH5YmPheMFWu2k1ds8tYQi05G2RaL/S+SSigGIOoYoMPFGrXxJ
 ftAVQnTxHup+Gw4+zuTqYNiHlXYc/sxV/LxiUF/cyQ1+V6dsre9diKhFOPhFk4Uq5Jna
 2lWX5EIYUgaZBRcwj+Disig70sB6yGA/ssIStIC45x6Oo9hwKjo0okHdE0pKWYgUEPaE
 Kn/IlxPcDrZ3h2wom1rQq5B6/7uEuxWC8Gu8py4Ph18NB7ZpnalVY5pk+Czh+LWbjKLA
 XhsKq5sDYsl/FFDpxNjbD/rXHwUJJzqRYcXlxnOloCYA/qmRXJzGZPyosIvHci/48v85
 FFfw==
X-Received: by 10.112.64.35 with SMTP id l3mr69061534lbs.82.1420415004274;
 Sun, 04 Jan 2015 15:43:24 -0800 (PST)
Received: from [192.168.1.3] ([178.252.98.87])
 by mx.google.com with ESMTPSA id zp3sm14290118lbb.45.2015.01.04.15.43.23
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 04 Jan 2015 15:43:23 -0800 (PST)
Message-ID: <54A9D018.8040505@HIDDEN>
Date: Mon, 05 Jan 2015 02:43:20 +0300
From: Dmitry Gutov <dgutov@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:33.0) Gecko/20100101 Thunderbird/33.0
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>,
 Leo Liu <sdl.web@HIDDEN>
Subject: Re: bug#19457: 24.4; exec_sentinel_error_handler and
 read_process_output_error_handler
References: <m1sig0m5pb.fsf@HIDDEN> <m1zja82dno.fsf@HIDDEN>
 <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN>
In-Reply-To: <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
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: -0.7 (/)

On 01/01/2015 07:29 PM, Stefan Monnier wrote:

> 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.

A straightforward caching approach (like `completion-table-with-cache') 
won't be good enough, though: the completion styles that come later tend 
to query with shorter prefixes.

So all in all, it seems like the caching function has to return 
completions for an empty prefix, and then cache that. That might be 
pretty costly at times.




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; 4 Jan 2015 23:05:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 04 18:05:08 2015
Received: from localhost ([127.0.0.1]:36751 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Y7uEN-00035Q-GH
	for submit <at> debbugs.gnu.org; Sun, 04 Jan 2015 18:05:07 -0500
Received: from mail-pd0-f179.google.com ([209.85.192.179]:43457)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <sdl.web@HIDDEN>) id 1Y7uEK-00035G-DT
 for 19457 <at> debbugs.gnu.org; Sun, 04 Jan 2015 18:05:05 -0500
Received: by mail-pd0-f179.google.com with SMTP id fp1so27043955pdb.10
 for <19457 <at> debbugs.gnu.org>; Sun, 04 Jan 2015 15:05:03 -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=3asfc6qTSZ8n3dxoa3fU18bwA4UedIFucB6a7uz1PMg=;
 b=K0qnZj5vIk8mLPrj7lWUxoD7nWoIVIks7Dk/R0jdFCAvxaGjbuUb/IFiF0x7kVShuH
 Iz2DB9bmcnpc+uemgRfJUcYoyYOW3q/e0iyazlpUwrV0Dcv+zO5eaQtYYO1O18j7zS/d
 kffuUSRRsl2AS8imfbgEZisSDST/KQjZnHVkcQBdIm73a2/1FOpoBY9ZZHxVlVZtnHfo
 gCDLlz+rWiYbc/lzWWJSK7sKmBvxSGGJYvZauXO5Y6GCvQbb+zYz/4N1SQtQCMXZf+MB
 o1vggqdsJagRrneXh8Mj/QGoJeEW6WHTz6QTZI8DWZbwv4Zx5DO3WvA5MQRgGdRDmbae
 Xt0Q==
X-Received: by 10.70.35.207 with SMTP id k15mr140027812pdj.166.1420412703364; 
 Sun, 04 Jan 2015 15:05:03 -0800 (PST)
Received: from Zeuss-MacBook.local (ppp108-100.static.internode.on.net.
 [150.101.108.100])
 by mx.google.com with ESMTPSA id jt8sm39030031pbc.6.2015.01.04.15.05.00
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 04 Jan 2015 15:05:02 -0800 (PST)
From: Leo Liu <sdl.web@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#19457: 24.4;
 exec_sentinel_error_handler and read_process_output_error_handler
References: <m1sig0m5pb.fsf@HIDDEN> <m1zja82dno.fsf@HIDDEN>
 <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J
 kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA
 AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3
 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o
 uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c
 MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII=
Date: Mon, 05 Jan 2015 10:04:57 +1100
In-Reply-To: <jwvegrea2w7.fsf-monnier+emacsbugs@HIDDEN> (Stefan Monnier's
 message of "Thu, 01 Jan 2015 11:29:09 -0500")
Message-ID: <m1y4pi5equ.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: 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: -0.7 (/)

On 2015-01-02 03:29 +1100, Stefan Monnier wrote:
> 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.

Thanks for the information. For this instance I have chosen to silence
errors from sentinel/filter functions with logging of errors and
backtrace instead. The long unquittable wait is just too much. But
caching can reduce the multiple error instances to one.

Leo




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; 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, 2 Dec 2021 12:00:02 UTC

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