From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [F.J.Wright@qmul.ac.uk: rcs2log] Date: Sat, 26 Oct 2002 16:16:08 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035663476 12471 80.91.224.249 (26 Oct 2002 20:17:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Oct 2002 20:17:56 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 185XNb-0003F1-00 for ; Sat, 26 Oct 2002 22:17:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 185XQu-0001yS-00 for ; Sat, 26 Oct 2002 22:21:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 185XNz-00071t-00; Sat, 26 Oct 2002 16:18:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 185XM1-0005vK-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:16:17 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 185XLt-0005sw-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:16:15 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 185XLs-0005sp-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:16:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 185XLs-0002V2-00; Sat, 26 Oct 2002 16:16:08 -0400 Original-To: emacs-devel@gnu.org 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:8813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8813 Anyone interested in working on this? ------- Start of forwarded message ------- Envelope-to: emacs-pretest-bug@gnu.org Delivery-date: Fri, 25 Oct 2002 07:13:15 -0400 From: "Dr Francis J. Wright" To: Subject: rcs2log Date: Fri, 25 Oct 2002 12:12:07 +0100 Organization: Mathematical Sciences, Queen Mary, University of London X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-1.3 required=5.0 tests=INVALID_MSGID,NOSPAM_INC,SPAM_PHRASE_00_01,USER_AGENT_OE version=2.41 X-Spam-Level: This is a multi-part message in MIME format. - ------=_NextPart_000_002D_01C27C1F.BCCCBD40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit GNU Emacs 21.2.91.1 (i386-mingw-nt4.0.1381) of 2002-10-13 on VALETTA Everything seems to work fine on both Windows NT and XP, except that the command `vc-update-change-log' does not work. It tries to execute a UNIX shell script called rcs2log in the bin directory, but the script is not there in NTEmacs, and even if it were there NTEmacs could not execute it directly I suggest the following solution. Modify the NTEmacs installation procedure to include the file rcs2log in the bin directory, and also include in the bin directory the attached file rcs2log.bat (with any modifications deemed appropriate), which NTEmacs can execute directly and which acts as an interface to rcs2log. I have written rcs2log.bat to be as portable across different versions of Windows as possible, without losing the advantages of NT. However, I have tested it only on Windows XP, where it seems to work well. Of course, this all assumes a suitable UNIX-like environment on the Windows platform, and I use Cygwin, which works well. I think it is reasonably likely that anyone trying to execute the Emacs command `vc-update-change-log' in NTEmacs will have a suitable environment for executing UNIX shell scripts. An alternative solution to using rcs2log.bat would be to make a trivial modification to vc.el so that it explicitly calls sh to interpret rcs2log instead of relying on the kernel to interpret the #! and call sh indirectly, which is the part that does not work on NTEmacs. I tested this solution, which also works well. The advantage of using rcs2log.bat is that it has no impact on any other platform. However, if you would prefer to modify vc.el I would be happy to provide diffs and a changelog entry if you want. Since rcs2log must be interpreted by sh anyway, I don't think that making this explicit in the Emacs source code would lose anything, so this is probably the most elegant solution. Francis - --- Dr Francis J. Wright School of Mathematical Sciences, Queen Mary University of London, Mile End Road, London E1 4NS, UK Tel: 020 7882 5453 (direct); Fax: 020 8981 9587 (dept.) F.J.Wright@qmul.ac.uk; http://centaur.maths.qmul.ac.uk/ - ------=_NextPart_000_002D_01C27C1F.BCCCBD40 Content-Type: application/x-gzip; name="rcs2log.bat.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rcs2log.bat.gz" H4sICFRluD0AA3JjczJsb2cuYmF0AI2RX0/bMBTF3yPlO5wHrEjVEgT7w6gGoqvoNjQ6BK26t+E4 N7FFYhfbaZdvP7dJgce9XV3f3znnXl+RkAamLOPIUgMr3GltqiznHmmK+eK64cJBaU+25ILgzWEG TlJdwwmr1r6nJ62Xxo4xs1wL5XCTYWVVJT2+zLKbrK+vnpu2zrjI2qfLHls6KpB38JLQ+wnTNFwX eNyItF0X3FMqJNcVpcE4yXrsq/HyJcxu2svgWaqa0LTOI6eQexDMQ1UoS8Ib2w38PT23oeWwnP/4 DdIbZY1uSPt3e7V9d0PWKaPDgeCMHdZ8UXXErZBY8xBklFNpLI0C20Ebnb7lB8eVsU8O293Ztiow 067aBrF1UN45fJsv38YYoDtrcp7XHewh7/T+5wy10hSmC6Urh5BwpXRhtg7nfwMXR6pEwn49sOTi Ihme/swXCSoTfvC1EUdOIhVIjq5vJ9OHu8ni+/HhpOwE7BTsPdgHsI9gn8DOwD6DnSdxtNcJ9nE0 /k+1UaDGe+IfeRjJ8HQCAAA= - ------=_NextPart_000_002D_01C27C1F.BCCCBD40-- ------- End of forwarded message -------