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: Wed, 30 Oct 2002 10:59:39 -0000 Organization: Mathematical Sciences, Queen Mary, University of London Sender: emacs-devel-admin@gnu.org Message-ID: <002e01c28003$8328edb0$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> <00dc01c27f6d$9932eed0$3a50258a@maths.qmul.ac.uk> <9743-Tue29Oct2002225005+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0029_01C28003.71160180" X-Trace: main.gmane.org 1035975767 32666 80.91.224.249 (30 Oct 2002 11:02:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2002 11:02:47 +0000 (UTC) Cc: Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 186qcX-0008Ug-00 for ; Wed, 30 Oct 2002 12:02:45 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 186qhb-0000Di-00 for ; Wed, 30 Oct 2002 12:07:59 +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 186qaF-0005f2-00; Wed, 30 Oct 2002 06:00:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 186qZq-0005FF-00 for emacs-devel@gnu.org; Wed, 30 Oct 2002 05:59:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 186qZo-0005F4-00 for emacs-devel@gnu.org; Wed, 30 Oct 2002 05:59:58 -0500 Original-Received: from zeta.qmw.ac.uk ([138.37.6.6]) by monty-python.gnu.org with esmtp (Exim 4.10) id 186qZn-0005F0-00 for emacs-devel@gnu.org; Wed, 30 Oct 2002 05:59:55 -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 186qZi-0003x1-00; Wed, 30 Oct 2002 10:59:50 +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 KAA03135; Wed, 30 Oct 2002 10:59:45 GMT Original-To: "Eli Zaretskii" 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:8944 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8944 This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C28003.71160180 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit From: "Eli Zaretskii" To: Cc: Sent: Tuesday, October 29, 2002 7:50 PM Subject: Re: [F.J.Wright@qmul.ac.uk: rcs2log] > > From: "Dr Francis J. Wright" > > Date: Tue, 29 Oct 2002 17:06:27 -0000 > > > > 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. > > None is needed. You can iterate thru PATH with a FOR builtin, for > example. I think that's probably overkill. Here is a simpler approach that seems to work well for me. It requires only that a suitable sh program is found in the search path used within Emacs. If the environment variable VC_SORT_PATH is set to a search path appropriate to the sh program then it is prepended to PATH; otherwise /bin is prepended to PATH. In a reasonably recent default Cygwin installation, sort is in /bin (and Cygwin knows where its own root directory is within the Windows file system). Hence I think this should work correctly by default for most users of Cygwin and probably any other sensible UNIX-like environment. If it doesn't then the user can specify an appropriate search path by setting VC_SORT_PATH. This could in fact be used to specify the location of any of the programs run by rcs2log, although I think only sort clashes with the name of a standard Windows program and on my system they are all in /bin. (In fact, they appear to be in /usr/bin, but /bin is mounted on /usr/bin by default and the files are physically in /bin.) Francis ------=_NextPart_000_0029_01C28003.71160180 Content-Type: application/x-gzip; name="rcs2log.bat.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rcs2log.bat.gz" H4sICKYXvz0CA3JjczJsb2cuYmF0AK1S227TQBB9j5R/OA+xDCh2RcutgaCGqIFWkFa5EN7Cer22 V7V33d11goX4d8Z2QvMBvI3H5zJnZq8EzzR0kvR7RhQw3J7nOg0j5hAEmK+uC8YtpHLCJIwLOH3E wGYiz2G5kaXr2JPKZdqMMDNMcWlxG2JjZJo5fJiFt2FXXz0WVR4yHlYPHzva2ooYUQ2XCXR+XBcF UzF+7nhQlTFzIuAZU6kIyNgPO9on7bJ/wzRol5FnInOBorIOkaC5D4IRVbE0gjtt6gN/IR4ralms 5zc/INROGq0KodywVWu7O2Gs1IoWBKuNOzA32jxY7Jv4e0lDTOt0TwYlIRrk5/n6VO5Aujc6YlFe wxx9p4uvM+RSCULHUqUW5LSRKtZ7i8tfxOuYNwmU4MJaZuohrHDtpk4csGNGkrbA9+l2ebdYbe8n qy90q47PnqLjmTakwAzPUDKXPadVK8ekInvCtZmboCiNTg0rhp1CZZv/jWuiTUFvg5UEKMnUtS3U uiLd7EhrR5cJfO9u6fnjsX9ItZ2vfKSaHtFTo98jXsDhNzOPB79PI4yCM7rcn9Gg+XiPwfW3yXTZ 1GfHu3sv4Z3Du4D3Ct5reG/gvYX3Dt6l3++1TrTbfm/03/xekO6o1fwLz54zOTsDAAA= ------=_NextPart_000_0029_01C28003.71160180--