From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64866: 30.0.50; Emacsclient block for 2 seconds when error is raised from command Date: Wed, 26 Jul 2023 18:58:24 +0300 Message-ID: <83a5vioean.fsf@gnu.org> References: <83y1j3o158.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64866-done@debbugs.gnu.org To: Yikai Zhao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 26 21:02:44 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qOjmW-0000nM-62 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jul 2023 21:02:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOiDQ-0000oy-8F; Wed, 26 Jul 2023 13:22:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOgtn-0007zF-11 for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 11:58:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOgtm-0003Hk-Oi for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 11:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOgtm-0004Yl-Kj for bug-gnu-emacs@gnu.org; Wed, 26 Jul 2023 11:58:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jul 2023 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64866 X-GNU-PR-Package: emacs Mail-Followup-To: 64866@debbugs.gnu.org, eliz@gnu.org, yikai@z1k.dev Original-Received: via spool by 64866-done@debbugs.gnu.org id=D64866.169038707117508 (code D ref 64866); Wed, 26 Jul 2023 15:58:02 +0000 Original-Received: (at 64866-done) by debbugs.gnu.org; 26 Jul 2023 15:57:51 +0000 Original-Received: from localhost ([127.0.0.1]:49936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOgtb-0004YJ-Br for submit@debbugs.gnu.org; Wed, 26 Jul 2023 11:57:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOgtZ-0004Y6-00 for 64866-done@debbugs.gnu.org; Wed, 26 Jul 2023 11:57:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOgtT-0003FC-Gr; Wed, 26 Jul 2023 11:57:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1vkH4uCoM0CvvurHGYWUCnVCKjdXWO0w57uoX+ZZHKY=; b=gBlxJ3Ncg7ll ILb34J2LvGkN/ALpAPauOEHjmR/HjW4uUv7zyaEt1kad1eMOsDtVyyOgJ56XjKeP749Xegh4Xan77 FxusnfMOK8u0Z7IWN32rUHAVnCpUp8j0YBFE8E3inVzrgpqYYGWn4lQUsIyUja4+clZdohSFhsQsR 4n19Oaqgdsl0w7/Z0irk0wM+9Y1Ubn5weYfVePm/mncoJBmwxCN2GvzQNptfJR2TOYjhj7EP0x10I Jbel9QGPCV8GYvFHwLTnZFVAs9QKDEdphXFj5L3QHJxWGm5Lp7/RXeQEl493mtmcH9I2LGi6poDoh vLSoP6BtjXLBeIO9rKGzuw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOgtP-00024N-4E; Wed, 26 Jul 2023 11:57:43 -0400 In-Reply-To: (message from Yikai Zhao on Wed, 26 Jul 2023 23:50:43 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266135 Archived-At: > From: Yikai Zhao > Date: Wed, 26 Jul 2023 23:50:43 +0800 > Cc: 64866@debbugs.gnu.org > > That's OK, I understand your point. Previously I thought this should > be treated as a bug because in my mind, "emacsclient -e xxxx" is > similar to "emacs --eval=xxx" (and further, similar to "python -c > xxxx"), which is a general interface to evaluate code (but maybe in a > specific environment (the server)). In that case, arbitrarily sleeping > some extra seconds in some valid evaluation scenarios seems > unexpected. Now I can see why that's not the case as the primary > function of emacsclient is to "tell a running Emacs to visit a file". > > > For any others who may be interested, my use case can be workaround by > using a slightly more complex command: > > RES="$(emacsclient -e "(condition-case nil (progn (windmove-right) > t) (error nil))")" > if [ "$RES" != "t" ]; then > return 1 > fi Thanks, I'm therefore closing this bug.