From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dr Francis J. Wright" Newsgroups: gmane.emacs.devel Subject: Re: [F.J.Wright@qmul.ac.uk: rcs2log] Date: Tue, 29 Oct 2002 17:06:27 -0000 Organization: Mathematical Sciences, Queen Mary, University of London Sender: emacs-devel-admin@gnu.org Message-ID: <00dc01c27f6d$9932eed0$3a50258a@maths.qmul.ac.uk> References: <20021029160458.A0AA.LEKTU@terra.es> <200210291519.g9TFJKS16350@rum.cs.yale.edu> <20021029163545.A0B0.LEKTU@terra.es> <200210291543.g9TFhiF16549@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035911708 11917 80.91.224.249 (29 Oct 2002 17:15:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2002 17:15:08 +0000 (UTC) Cc: "Eli Zaretskii" , Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186ZxG-00035e-00 for ; Tue, 29 Oct 2002 18:15:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 186a1x-0001mv-00 for ; Tue, 29 Oct 2002 18:19:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 186Zu4-0007He-00; Tue, 29 Oct 2002 12:11:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186Zpe-0004oK-00 for emacs-devel@gnu.org; Tue, 29 Oct 2002 12:07:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186ZpL-0004Sc-00 for emacs-devel@gnu.org; Tue, 29 Oct 2002 12:06:58 -0500 Original-Received: from zeta.qmw.ac.uk ([138.37.6.6]) by monty-python.gnu.org with esmtp (Exim 4.10) id 186ZpL-0004Ro-00 for emacs-devel@gnu.org; Tue, 29 Oct 2002 12:06:51 -0500 Original-Received: from dirac.maths.qmw.ac.uk ([138.37.80.10] ident=root) by zeta.qmw.ac.uk with esmtp (Exim 3.32 #1) id 186ZpF-0001nM-00; Tue, 29 Oct 2002 17:06:45 +0000 Original-Received: from centaur (centaur.maths.qmw.ac.uk [138.37.80.58]) by dirac.maths.qmw.ac.uk (8.9.3/8.9.3/Maths Hub 3.0) with SMTP id RAA28924; Tue, 29 Oct 2002 17:06:36 GMT Original-To: "Stefan Monnier" , "Juanma Barranquero" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8915 From: "Stefan Monnier" To: "Juanma Barranquero" Cc: "Stefan Monnier" ; "Dr Francis J. Wright" ; "Eli Zaretskii" ; Sent: Tuesday, October 29, 2002 3:43 PM Subject: Re: [F.J.Wright@qmul.ac.uk: 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 platforms. 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. Francis