On 23.05.2013 20:52, Eli Zaretskii wrote:
>> Date: Thu, 23 May 2013 20:46:07 +0400
>> From: Dmitry Gutov <
dgu...@yandex.ru>
>> CC:
14...@debbugs.gnu.org, Eli Zaretskii <
el...@gnu.org>
>>
>> I'm not sure how to find out.
>
> You could put a breakpoint on call-process and examine its arguments,
> for example.
I've rummaged around the manual a bit, and still don't understand what
the recommended workflow is.
Should I normally do `edebug-defun' before adding a breakpoint?
How do I display the value of a local variable? Even after breakpoint
hits, using `edebug-eval-expression' with the variable name still gives
me "variable is void".
How do I un-instrument a function? AFAICS, there are no commands like
`edebug-cancel-', `-reset-' or `-remove-'.
Please point me at any relevant documentation.
>> `vc-do-command' receives the following arguments:
>>
>> buffer: *vc-diff* command: bzr file-or-list: nil flags: (diff
>> --diff-options -u -r 112671..112672)
>
> Why do you use --diff-options? "bzr diff" works as if -u was
> specified anyway, and will use its internal emulation of Diff if you
> don't pass --diff-options.
`vc-bzr-diff' does that automatically because `diff-switches' is '-u' here.
If I remove that explicit setting from my config, it falls back to "-c",
and that (when external diff program is present, of course) makes vc-bzr
produce context diffs.
Curiously, vc-git still uses the unified format in that case.
Setting it to nil works as you expected.
>> After recent overhaul of my MinGW installation, a number of Unix
>> utilities became unavailable globally, including `diff'.
>
> That's probably related. So restore your diff.exe, and things will
> work again. They do for me, because my diff.exe is in perfect working
> order.
I've done that, works fine now. Sorry for the false alarm, I should have
investigated it more myself first.
Using diff.exe from the GnuWin32 collection is recommended, right?