From: Cambell Barton <ideasman42@gmail.com>
Cc: 37257@debbugs.gnu.org
Subject: bug#37257: failure of emacsclient ... --alternate-editor="emacs --eval"
Date: Sun, 15 Sep 2019 06:45:46 +1000 [thread overview]
Message-ID: <bdf01ce8-669b-7026-3cf7-b03772b3d6c0@gmail.com> (raw)
In-Reply-To: <87ftky62hy.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]
On 2019-09-15 06:34, Lars Ingebrigtsen wrote:
> , I guess we should just revert the patch -- I don't see any obvious
> way to determine whether --alternate-editor is Emacs (which will then
> understand the rest of the parameters) or something else (which will
> then not). So leaving it the way it was is best.
I'm not sure what the best solution is here, it's just I had something
that worked and now I can't get emacs27 to work usefully in the same way.
It should be possible to run the code in the client or a new instance,
but I didn't manage to get this working.
CODE='(progn (message "HELLO WOLD"))'
emacsclient --eval "$CODE" --alternate-editor "emacs --eval '$CODE'"
Instead of starting a new emacs and printing HELLO WOLD,
it reports:
emacsclient: error executing alternate editor "emacs --eval '(progn
(message "HELLO WORLD"))'"
[-- Attachment #2: emacsclient_or_emacs_with_file.sh --]
[-- Type: application/x-shellscript, Size: 290 bytes --]
next prev parent reply other threads:[~2019-09-14 20:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-01 16:21 bug#37257: 27.0.50; Campbell Barton
2019-09-05 21:52 ` bug#37257: failure of emacsclient ... --alternate-editor="emacs --eval" Paul Eggert
2019-09-14 12:15 ` Lars Ingebrigtsen
2019-09-14 18:01 ` Paul Eggert
2019-09-14 20:34 ` Lars Ingebrigtsen
2019-09-14 20:45 ` Cambell Barton [this message]
2019-09-15 12:13 ` Lars Ingebrigtsen
2019-09-15 17:52 ` Cambell Barton
2019-09-16 12: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=bdf01ce8-669b-7026-3cf7-b03772b3d6c0@gmail.com \
--to=ideasman42@gmail.com \
--cc=37257@debbugs.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.