[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: rcs2log]

From: Dr Francis J. Wright
Subject: Re: address@hidden: rcs2log]
Date: Tue, 29 Oct 2002 17:06:27 -0000

From: "Stefan Monnier" <monnier+gnu/address@hidden>
To: "Juanma Barranquero" <address@hidden>
Cc: "Stefan Monnier" <monnier+gnu/address@hidden>; "Dr Francis J.
Wright" <address@hidden>; "Eli Zaretskii" <address@hidden>;
Sent: Tuesday, October 29, 2002 3:43 PM
Subject: Re: address@hidden: rcs2log]

> > > As for your sorting problem, I have no idea what a vc-sort-program
> > > could do since VC doesn't use `sort' (try `grep sort lisp/vc*.el').
> > No, but vc uses rcs2log which in fact seems to need sort.
> No, VC does not *use* rcs2log AFAIK.  It does provide some way to run it
> for you, tho.  But it can also be run separately from Emacs, so the
> problem with `sort' should not be fixed in any elisp file, but in rcs2log
> (or maybe in rcs2log.bat instead.  That would be even better so that
> all this ugly w32 business doesn't stain the rest of the code).
> Stefan

I see the way that vc uses rcs2log as being the same as the way that hexl
mode uses an external helper program.  Here are two possible ways forward.

One is Eli's suggestion, namely a more sophisticated replacement for my
rcs2log.bat file that deduces the correct search path to use for sort.
Clearly this should not use any non-standard Windows technology other than
what is necessary anyway to run rcs2log.  (So, for example, a perl script
would not be not a good solution, although using Windows Script Host might
be.)  A good solution would be to pull the appropriate Cygwin path out of
the Registry, but I'm not sure how feasible that is.

The other is to modify vc.el to allow the user to specify a directory
containing the correct sort program and to prepend that to exec-path before
trying to execute rcs2log.  This could be made to happen only on Windows

I'll think about these two options and see whether I can produce a solution
that people find more acceptable than my original rcs2log.bat solution.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]