From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem quoting expression to be eval'ed by emacsclient
Date: Wed, 30 Oct 2013 20:55:10 +0200 [thread overview]
Message-ID: <8361seeghd.fsf@gnu.org> (raw)
In-Reply-To: <86li1b84g3.fsf@somewhere.org>
> From: "Sebastien Vauban" <sva-news@mygooglest.com>
> 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.
next prev parent reply other threads:[~2013-10-30 18:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 8:33 Problem quoting expression to be eval'ed by emacsclient Sebastien Vauban
2013-10-23 8:52 ` Thorsten Jolitz
2013-10-23 14:07 ` Tassilo Horn
2013-10-23 15:33 ` Eli Zaretskii
[not found] ` <mailman.4544.1382542407.10748.help-gnu-emacs@gnu.org>
2013-10-23 21:56 ` Sebastien Vauban
2013-10-24 2:52 ` Eli Zaretskii
[not found] ` <mailman.4580.1382583151.10748.help-gnu-emacs@gnu.org>
2013-10-25 12:37 ` Sebastien Vauban
2013-10-25 13:47 ` Eli Zaretskii
[not found] ` <mailman.4697.1382708854.10748.help-gnu-emacs@gnu.org>
2013-10-30 9:59 ` Sebastien Vauban
2013-10-30 11:38 ` Stefan Monnier
2013-10-30 18:55 ` Eli Zaretskii [this message]
[not found] ` <mailman.4965.1383133220.10748.help-gnu-emacs@gnu.org>
2013-11-07 15:37 ` Sebastien Vauban
[not found] ` <mailman.4986.1383159329.10748.help-gnu-emacs@gnu.org>
2013-11-07 15:44 ` Sebastien Vauban
2013-10-23 10:14 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8361seeghd.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.