all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phillip Lord <phillip.lord@newcastle.ac.uk>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bug-gnu-emacs@gnu.org, 927@emacsbugs.donarmstrong.com
Subject: bug#927: vc-bzr.el with cygwin bzr
Date: Tue, 09 Sep 2008 16:44:11 +0200	[thread overview]
Message-ID: <EMEW-k88FiH23efbdfa01d69a74f11ca08d3a710066-81prndtm4k.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <EMEW-k88FN4d513b6d9437cad00641ec17907dfd5b8-jwvmyihh03v.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Tue, 09 Sep 2008 10:22:57 -0400")

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> 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






  parent reply	other threads:[~2008-09-09 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-08  9:51 bug#927: vc-bzr.el with cygwin bzr Phillip Lord
2008-09-09 14:22 ` Stefan Monnier
     [not found] ` <EMEW-k88FN4d513b6d9437cad00641ec17907dfd5b8-jwvmyihh03v.fsf-monnier+emacsbugreports@gnu.org>
2008-09-09 14:44   ` Phillip Lord [this message]
2008-09-09 17:22     ` Stefan Monnier
     [not found]     ` <EMEW-k88IMHa0452283789433ad2c459dd52d31d774-jwvsks9qlqs.fsf-monnier+emacsbugreports@gnu.org>
2008-09-10 14:33       ` Phillip Lord
2008-09-11 16:32       ` Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EMEW-k88FiH23efbdfa01d69a74f11ca08d3a710066-81prndtm4k.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --cc=927@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.