From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4463: vc-do-command return value when using 'async Date: Thu, 17 Sep 2009 14:05:45 -0400 Message-ID: References: <200909171543.n8HFhaR1024941@godzilla.ics.uci.edu> Reply-To: Stefan Monnier , 4463@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253212166 22203 80.91.229.12 (17 Sep 2009 18:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 18:29:26 +0000 (UTC) Cc: 4463@emacsbugs.donarmstrong.com, bug-gnu-emacs To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 17 20:29:19 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoLjJ-0003ra-Ik for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 20:29:17 +0200 Original-Received: from localhost ([127.0.0.1]:60619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoLjJ-0000en-1b for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Sep 2009 14:29:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoLjD-0000e6-Bp for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:29:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoLj9-0000dc-Pb for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:29:11 -0400 Original-Received: from [199.232.76.173] (port=38279 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoLj9-0000dZ-Ms for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:29:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42506) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoLj8-0005I0-VG for bug-gnu-emacs@gnu.org; Thu, 17 Sep 2009 14:29:07 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8HIR1Ym004597; Thu, 17 Sep 2009 11:27:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8HIF8Mc002716; Thu, 17 Sep 2009 11:15:08 -0700 Resent-Date: Thu, 17 Sep 2009 11:15:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 17 Sep 2009 18:15:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4463 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4463-submit@emacsbugs.donarmstrong.com id=B4463.12532107521281 (code B ref 4463); Thu, 17 Sep 2009 18:15:07 +0000 Original-Received: (at 4463) by emacsbugs.donarmstrong.com; 17 Sep 2009 18:05:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8HI5owl001278 for <4463@emacsbugs.donarmstrong.com>; Thu, 17 Sep 2009 11:05:52 -0700 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n8HI5jAx019101; Thu, 17 Sep 2009 14:05:45 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 59C943A104; Thu, 17 Sep 2009 14:05:45 -0400 (EDT) In-Reply-To: <200909171543.n8HFhaR1024941@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 17 Sep 2009 08:43:36 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3365=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 17 Sep 2009 14:29:11 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31177 Archived-At: > When passing 'async to vc-do-command there's no reliable way to > determine the exit status for the command. > When using (vc-do-command 'async BLAG) it is possible that by the time > the next command is executed the process has finished and it's not > possible to retrieve the process return value. > The patch below change vc-do-command to return the process for the async > case, that way the use has a handle to use in case the return value is > needed. If you've checked that returning a process object won't trip up any of the callers, feel free to install the change. Stefan