From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.bugs Subject: bug#927: vc-bzr.el with cygwin bzr Date: Tue, 09 Sep 2008 16:44:11 +0200 Message-ID: References: Reply-To: Phillip Lord , 927@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 1220973191 7309 80.91.229.12 (9 Sep 2008 15:13:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2008 15:13:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 927@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 17:14:00 2008 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 1Kd4q0-0007Vs-6G for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 17:09:04 +0200 Original-Received: from localhost ([127.0.0.1]:38577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd4p0-000769-56 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Sep 2008 11:08:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kd4ob-0006w4-Ug for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kd4oa-0006v5-8I for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:37 -0400 Original-Received: from [199.232.76.173] (port=47629 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kd4oZ-0006ut-Ps for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38430) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kd4oZ-0003sq-CV for bug-gnu-emacs@gnu.org; Tue, 09 Sep 2008 11:07:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89F7WXK026917; Tue, 9 Sep 2008 08:07:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m89Eo5cU019798; Tue, 9 Sep 2008 07:50:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Phillip Lord Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 09 Sep 2008 14:50:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 927 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 927-submit@emacsbugs.donarmstrong.com id=B927.122097146517733 (code B ref 927); Tue, 09 Sep 2008 14:50:05 +0000 Original-Received: (at 927) by emacsbugs.donarmstrong.com; 9 Sep 2008 14:44:25 +0000 Original-Received: from cheviot20.ncl.ac.uk (cheviot20.ncl.ac.uk [128.240.234.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m89EiIRJ017727 for <927@emacsbugs.donarmstrong.com>; Tue, 9 Sep 2008 07:44:20 -0700 Original-Received: from cheviot20.ncl.ac.uk (localhost.localdomain [127.0.0.1]) by cheviot20.ncl.ac.uk (8.13.8/8.13.8) with SMTP id m89EiHXG016381; Tue, 9 Sep 2008 15:44:17 +0100 Original-Received: from smtpauth4.ncl.ac.uk (smtpauth4.ncl.ac.uk [10.8.232.174]) by cheviot20.ncl.ac.uk (cheviot20.ncl.ac.uk [128.240.234.73]) id k88FiH031103546143 ret-id pass; Tue, 09 Sep 2008 15:44:17 +0100 Original-Received: from HAUGHTON ([212.247.10.33]) (authenticated bits=0) by smtpauth4.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id m89EiFxH032645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Sep 2008 15:44:16 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 09 Sep 2008 10:22:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-smtpf-Report: client=lan,relay,white,ipv6; mail=; rcpt=white X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 09 Sep 2008 11:07:37 -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:20395 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >> My hack is platform specific. A better solution would be, to modify >> vc-bzr-command to be either of the form "bzr-program-name" or >> '("python name" "bzr name"). vc-bzr-command would need to be >> modified to cope. There is couple of other places vc-bzr-command is >> used which would need changing also. Stefan> A better solution would be to write a w32 wrapper for Bzr (an Stefan> plain w32 executable that runs python with the bzr script), so Stefan> that it does not rely on cygwin's own handling of #! I don't think that the two contradict. Both would be possible. But, yes, a bzr.bat in cygwin would probably solve the problem. Stefan> After all, does Cygwin's bzr work with any other program Stefan> that's not part of Cygwin? I'd guess not, which is why I think Stefan> the problem is not specific to Emacs. This depends on how they launch bzr; for vc-bzr, for instance, if vc used an external shell-command instead of start-process it would work. Even if emacs was using dos as it's shell, I could reconfigure bzr-command to be "c:/cygwin/bin/python bzr"; unfortunately, you can't do this with start-process because the space is interpreted as part of the command name, and bzr not considered an argument. Given that the change I suggested is quite small, is there a problem with putting it in; I'm willing to send in a patch if you wish. It would also support the use case where one the user wishes to use a specific python to run bzr. It should be transparent to other users. In the meantime, if I can work out how to do it, I'll write to the cygwin packager and ask for a bzr.bat to be added to cygwin (having tested that it works). As you say, it would help to make it more usuable, irrespective of emacs. Phil