[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f198a5c: Revert "emacsclient: ignore --eval parameters when s

From: Sven Joachim
Subject: Re: master f198a5c: Revert "emacsclient: ignore --eval parameters when starting alternate editor"
Date: Mon, 16 Sep 2019 16:18:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On 2019-09-16 14:32 +0200, Lars Ingebrigtsen wrote:

> Sven Joachim <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]