From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Re: Problem quoting expression to be eval'ed by emacsclient Date: Thu, 07 Nov 2013 16:44:16 +0100 Organization: Sebastien Vauban Message-ID: <8661s4md2n.fsf@somewhere.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 Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383839122 8504 80.91.229.3 (7 Nov 2013 15:45:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Nov 2013 15:45:22 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Nov 07 16:45:26 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 1VeRlo-0000cB-J8 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Nov 2013 16:45:20 +0100 Original-Received: from localhost ([::1]:40922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeRlo-0008BK-8B for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Nov 2013 10:45:20 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 76 Injection-Info: mx05.eternal-september.org; posting-host="402b34550bd938aa98825778083dce0e"; logging-data="20739"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18BTDAzDKwuiqspdawjBJwD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:LiqwhJ29fFh2tu6TQUa/LfoUgtg= sha1:zdzymnBb24xIXybfoi8e9T0/bKc= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:202116 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:94387 Archived-At: Eli, Eli Zaretskii wrote: >> 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. Good. >>>> - 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. Those remarks are orthogonal to my problem, but they make sense. In Emacs, at the end, I would have Cygwin's bin directory in my PATH, only when Bash would be used as `shell-file-name'. >> 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? Right! > As for grep, there's a native Windows port around, so no need to go > Cygwin when you use Emacs. OK. I have to take a lot at that. >> > 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. FYI, I've tried running the Emacs-W32 version present in Cygwin. The look and feel is absolutely the same as the native Windows binary. That's great. Though, some things don't work anymore (such as "fancy splitting" in Gnus). I have no idea why at this stage. I'll need a couple of hours to try and understand what's going on -- though, right now, I'm back using the native Windows application made available by Dani. Best regards, Seb -- Sebastien Vauban