From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Problem quoting expression to be eval'ed by emacsclient Date: Wed, 30 Oct 2013 20:55:10 +0200 Message-ID: <8361seeghd.fsf@gnu.org> References: <86y55kcrpc.fsf@somewhere.org> <87a9i02wu4.fsf@gmail.com> <86wql3tzwf.fsf@somewhere.org> <86mwlxplvb.fsf@somewhere.org> <86li1b84g3.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1383159349 9416 80.91.229.3 (30 Oct 2013 18:55:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2013 18:55:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 19:55:53 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Vbavl-0005Iy-Ps for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 19:55:49 +0100 Original-Received: from localhost ([::1]:53961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbavl-0000kB-HR for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 14:55:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbavK-0000ii-6r for help-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:55:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbavE-0006G1-1W for help-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:55:22 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:65367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbavD-0006Fl-PM for help-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:55:15 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MVH00J00WI6WB00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Wed, 30 Oct 2013 20:55:13 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVH00JA2WK1IQB0@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Wed, 30 Oct 2013 20:55:13 +0200 (IST) In-reply-to: <86li1b84g3.fsf@somewhere.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94277 Archived-At: > From: "Sebastien Vauban" > Date: Wed, 30 Oct 2013 10:59:24 +0100 > > So, here, in my case, I almost only use `emacsclient' from "sendpatch", a shell > script (I wrote) which automates the sending of a diff per email, for other > colleagues to review and see what we commit in our SVN server. So you are using emacsclient as EDITOR, which is what it is for. > >> - Cygwin (/usr/bin) is second in my PATH, after ~/bin > > > > Why do you need Cygwin executables on your PATH? > > You mean from PATH as seen in a CMD shell? Or from a Bash shell? Both, and also why you need that in Emacs. > I need the Cygwin executables them all the time in my Bash sessions. You can set up your Bash sessions so that when you are in Bash, Cygwin's bin directory is on PATH, but when you are in cmd or Emacs, it is not. There's no necessity to have a single PATH in all your sessions. > And I need the Cygwin executables from Emacs as well (for the `M-x > find-grep-dired' or `M-x rgrep' commands, among others, which I use quite > extensively -- `rgrep', at least). And, there, I need them to be before the > default Windows executable, because of `find' (which also exist in > c:\Windows\system32). To avoid the problem with 'find', have the directory where the GNU 'find' lives appear before c:\Windows\system32 in PATH. After all, chances of you wanting to invoke the Windows 'find' are nil, right? As for grep, there's a native Windows port around, so no need to go Cygwin when you use Emacs. > > As for the v23 vs v24 emacsclient issue, you could have emacsclient23 > > and emacsclient24 (scripts, aliases, whatever) to DTRT for each one. > > Yes, but the question arises from the fact that `sendpatch' has no way to > detect (does it?) which Emacs server version is currently running, so which > `emacsclient' it has to call. I presume that you already have some arrangements to work with 2 Emacs versions, so that it should be easy to put something in the environment in each case, such that 'sendpatch' could look at that and decide.