From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 9fc3b00373: Improve `restart-emacs' error reporting Date: Mon, 18 Apr 2022 17:08:16 +0800 Message-ID: <8735iaiwsf.fsf@yahoo.com> References: <165027259019.5917.10350012783877143480@vcs2.savannah.gnu.org> <20220418090310.749C3C01684@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7320"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Lars Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 18 11:24:31 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ngNcT-0001gp-W6 for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 11:24:30 +0200 Original-Received: from localhost ([::1]:49446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngNcQ-0007AL-Ol for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 05:24:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngNMz-0004t8-Bx for emacs-devel@gnu.org; Mon, 18 Apr 2022 05:08:29 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:42215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngNMx-0003Rk-Jc for emacs-devel@gnu.org; Mon, 18 Apr 2022 05:08:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650272905; bh=Tfuj1nPt22TY8uXLgLcyR5GTJqPsAh94hW9AupB1pQw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=QKhvUvYbfcJMPVPcFGAdr82W8KW8ZHlAD0Hl7gUzS2g8dJHkC8b28AjPc0QJzmf2yenODNs0qEJX3BFY6xt3OhB41AbJop8HIZk5WPU/3l0nZY9YQQmizg2V1zwBKpUUZ0Gl/RsSEu1sUmRrVUKTHx1YQMEi5HdhaGh6lv+O//ZUVeAn+6GcOj8roL9fILZRTsjA/geAzWr0qhq5ZKTZ2Mm8ynX38seT4yCl5sAbv5U+itmVDuwzKr0x+hdMsjgQBPpvr4kD74tinA0jAX8xmXJK0Oh4qbXx5Fmu2Bf/fpWL3AaEaLYwU+4NqyeDwN7u5cyNtyOAhasQKNqsDNtXXQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650272905; bh=EcGsjA94K3jgb1TtVPOlPQh5U8gO8jwgzpIR3ga5RdZ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Rkmm6yIBB+imSLYFFOYrQtxW+7g/k+gMeCSsBbNzGs8yP3c4BzVTg8TPG0zcsGUcTBDnesAzReMyqeSdvMCo9eqFlAklR1BUKDa3heqhGZU1h1LgRSHtkIRIQnqLHSkfniMSVujnaP5eI2lqhHEkfRPggZ0N/LbfheTMTXCZp2GQRwubQv3BmwXVMAwzUH6WONGUlowetvVK40hx/J08UFaYkbG5CfGzx+nXQD/TnsQzVxt6brcsIOL7QcdagkvS2f2Ynpj1VnOxkxfieKcxibjBGdI2x8QJOml3SWo88BsP0hp+5iyGBTTgapzpj1TulXFBKcXZND2qwTIjLwmW/A== X-YMail-OSG: iPywP.8VM1mPCL9nu7Ir3A17L6ZPVF9KRdj59CuSAWDk07OZqIruu7VNlnTCIxi B_h5D0ASBzjHinC8XJQZcw3ssCN7Lvq42hJ1bEG.dm6haeli_IPB..uVw0o7U_vx6h_EQ4dLYtfb VzOqKVlvfVes.8OyZbjXLfutRsmjzSR2aBs.mIG2Q4BotW818wOBlkLYgKIUskjjKz1RCaeC8bgJ YXp_ebo_cg9duuF9cXik1y4nc1qPBQYSjuIYlgQyUWAXoGVEtptFZVCdrtp_U56jpREHzRtV587H EcdOTr.b2BFw1D91zIsvxNHMZLfgE_7u_Xv8vjHdA94FyjAkR5fQIfbXeuAxSG.PFJSrOGT_grQi 4BIK_aL0VUzo2uh4t71xxU_YGoYswO5G9s9ZV7jS4waSH40M2iM5ARV0ZmIZErecQoT_FU0Grnwl RLTznF5w4Ez3qvKY89Bd3NVLOmxJyvSJ8_8Lw73xnoVo14ZDci5qz5HfvZEqzLHvYMMc1pAGPINo xxFAZMTzKn.l_TeVE3yfS6tl644WPRA5DnEgLXdf7mhGRB6QT1XIsmVTfyhz6US6Odf_ZPw6p.X5 RVSsIo0GEmzv4zlYZz5hlg7SgxhhcZVDCA71Q0uy4k3zR0yKHuomq14U0DR8WsQ0ksPfTgjhMDPC YUeJb80bZ0GdMJqqEMIAzFTglkRp6gd.NOo2xzsr8d_rS0VkG9mWBpA7IMZaUMdI4j05D9RbOHI4 y9VUWjgRs1SKDdCDip0bWmre43XcBekkGZ08YgP6m19WmUOyGjNwzpECPWMECt_PRK8Ik9GUDkzI hbY84YfTse2piGcV.qKOCwRk7BxezCVvq62XLwvkuX X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Apr 2022 09:08:25 +0000 Original-Received: by hermes--canary-production-sg3-cfddc4f9d-gtcd4 (VZM Hermes SMTP Server) with ESMTPA ID 28c40c611a2d06f39258655c49c893d8; Mon, 18 Apr 2022 09:08:20 +0000 (UTC) In-Reply-To: <20220418090310.749C3C01684@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Mon, 18 Apr 2022 05:03:10 -0400 (EDT)") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.31; envelope-from=luangruo@yahoo.com; helo=sonic307-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288618 Archived-At: Lars Ingebrigtsen writes: > + /* Check that the binary hasn't gone away. */ > + if (!file_access_p (initial_argv[0], F_OK)) > + error ("Emacs executable \"%s\" can't be found", initial_argv[0]); > + } How would this work if initial_argv[0] is a binary in the PATH, not a file name?