From: Sven Joachim <svenjoac@gmx.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: master f198a5c: Revert "emacsclient: ignore --eval parameters when starting alternate editor"
Date: Mon, 16 Sep 2019 16:18:19 +0200 [thread overview]
Message-ID: <87o8zkz5n8.fsf@turtle.gmx.de> (raw)
In-Reply-To: <87a7b4v2tx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Sep 2019 14:32:42 +0200")
On 2019-09-16 14:32 +0200, Lars Ingebrigtsen wrote:
> Sven Joachim <svenjoac@gmx.de> writes:
>
>> But if there is no server running, the new Emacs instance does not
>> actually eval the expression. This is mentioned in the NEWS file:
>>
>> ,----
>> | *** emacsclient no longer passes '--eval' arguments to an alternate editor.
>> | Previously, '--eval' arguments were passed as file names to any
>> | alternate editor started by '--alternate-editor'.
>> `----
>
> This is the entry in the NEWS file that describes the patch that was
> reverted, but the NEWS entry was left behind. I've now removed it.
So, in what way is --eval useful without an Emacs already running?
,----
| $ lib-src/emacsclient -a emacs --eval '(+ 2 2)'
| 4
| $ lib-src/emacsclient -a emacs --eval '(server-force-delete)'
| "Connection file \"/run/user/1000/emacs/server\" deleted"
| $ lib-src/emacsclient -a emacs --eval '(+ 2 2)'
| lib-src/emacsclient: can't find socket; have you started the server?
| lib-src/emacsclient: To start the server in Emacs, type "M-x server-start".
`----
And I have a new Emacs instance running with a buffer named (+ 2 2) and
(New file) printed in the echo area.
Cheers,
Sven
next prev parent reply other threads:[~2019-09-16 14:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190915121331.17901.64590@vcs0.savannah.gnu.org>
[not found] ` <20190915121332.E09E720BC2@vcs0.savannah.gnu.org>
2019-09-15 16:17 ` master f198a5c: Revert "emacsclient: ignore --eval parameters when starting alternate editor" Sven Joachim
2019-09-16 12:32 ` Lars Ingebrigtsen
2019-09-16 14:18 ` Sven Joachim [this message]
2019-09-16 15:36 ` Benjamin Riefenstahl
2019-09-16 15:41 ` Lars Ingebrigtsen
2019-09-16 19:18 ` Andreas Schwab
2019-09-16 19:24 ` Lars Ingebrigtsen
2019-09-16 20:24 ` Andreas Schwab
2019-09-16 20:33 ` Lars Ingebrigtsen
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=87o8zkz5n8.fsf@turtle.gmx.de \
--to=svenjoac@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.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.