From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalize start-process with keyword args Date: Tue, 17 Mar 2015 17:42:18 -0400 Message-ID: References: <87d24d3uwz.fsf-ueno@gnu.org> <86a8zc21ua.fsf@gmail.com> <83oanszq6u.fsf@gnu.org> <8661a01stb.fsf@gmail.com> <83egooyu08.fsf@gnu.org> <86oanrwdhb.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426628570 29109 80.91.229.3 (17 Mar 2015 21:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2015 21:42:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 17 22:42:41 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXzG3-0003JB-Ru for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 22:42:39 +0100 Original-Received: from localhost ([::1]:57187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXzG3-0004Tl-9e for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2015 17:42:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXzFq-0004Ps-5M for emacs-devel@gnu.org; Tue, 17 Mar 2015 17:42:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXzFm-0000eF-FX for emacs-devel@gnu.org; Tue, 17 Mar 2015 17:42:26 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXzFm-0000dx-B0 for emacs-devel@gnu.org; Tue, 17 Mar 2015 17:42:22 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2HLgJJT030238; Tue, 17 Mar 2015 17:42:19 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E6A281F6E; Tue, 17 Mar 2015 17:42:18 -0400 (EDT) In-Reply-To: <86oanrwdhb.fsf@gmail.com> (Andy Moreton's message of "Tue, 17 Mar 2015 20:55:28 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5248=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5248> : inlines <2430> : streams <1407144> : uri <1883117> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183974 Archived-At: > A simple example is using the cscope package from Cygwin. This installs > a cscope executable, a cscope-indexer script and cscope.el that uses the > cscope indexes for symbol lookup. cscope.el can also invoke the indexer > script to regenerate the indexes (by invoking `cscope-indexing-script' > with arguments via `start-process'). > This script can easily be reused without modification, by advising > `start-process to rework its arguments: cahnge PROGRAM to be "bash" and > prepend "-c" to the PROGRAM-ARGS list. This allows cscope.el to invoke > the original script from a Win32 emacs build without needing any changes > to the original package. But there is no need for such changes if you use the Cygwin version of Emacs, right? The root of the problem is that you're trying to run a Cygwin program from the W32 build of Emacs, while this Cygwin program was designed for Cygwin-only (you can't run that script directly from the normal W32 command prompt, for example). Of course, the W32 build of Emacs could try to accommodate Cygwin programs a bit better, but it seems like it's probably easier to just use the Cygwin build of Emacs instead (especially now that there's a Cygwin-W32 build which uses the native GUI). Stefan