From: Tassilo Horn <tsdh@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to use emacs as a "diff3 -m" compatible merge tool?
Date: Fri, 10 Jun 2022 18:42:42 +0200 [thread overview]
Message-ID: <875yl8qx6t.fsf@gnu.org> (raw)
In-Reply-To: <87mtelpq9t.fsf@web.de>
Michael Heerdegen <michael_heerdegen@web.de> writes:
Hi Michael,
>> How do I print the merge buffer's contents to stdout? And how can I
>> influence the exit code? (I could do (kill-emacs my-exit-code) but
>> would be more happy if I could also use the merge command with
>> emacsclient where I obviously don't want to kill emacs.)
>
> Never did something like this before. I spent some time trying to
> understand the code in server.el however. Seems `server-send-string'
> can be used for this. Maybe search for the occurrences - e.g. in
> `server-edit-abort' (and the rest of server.el).
>
> The available "options" are explained in the doc of
> `server-process-filter' AFAIU. I think you are interested in those
> "accepted by the client" - especially -print and -error.
Thanks, I will have a look. Do I understand it correctly that your
answer is specifically about the emacsclient case?
If so, I'd rather tackle my usual sysadmin work "emacs -Q -l minimal.el
..." use-case first where (kill-emacs my-exit-code) would be ok. But
how do I print buffer contents to emacs' stdout?
Bye,
Tassilo
next prev parent reply other threads:[~2022-06-10 16:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-09 10:52 How to use emacs as a "diff3 -m" compatible merge tool? Tassilo Horn
2022-06-09 19:53 ` Michael Heerdegen
2022-06-10 16:42 ` Tassilo Horn [this message]
2022-06-10 18:50 ` Michael Heerdegen
2022-06-12 11:31 ` Robert Pluim
2022-06-10 22:52 ` Emanuel Berg
2022-06-13 5:21 ` Tassilo Horn
2022-06-13 8:09 ` Robert Pluim
2022-06-13 9:34 ` Tassilo Horn
2022-06-13 9:52 ` Michael Heerdegen
2022-06-13 11:18 ` Robert Pluim
2022-06-13 21:13 ` Emanuel Berg
2022-06-14 7:50 ` Tassilo Horn
2022-06-14 10:06 ` Emanuel Berg
2022-06-14 11:23 ` Tassilo Horn
2022-06-13 13:34 ` Tassilo Horn
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=875yl8qx6t.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.