help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to use emacs as a "diff3 -m" compatible merge tool?


From: Robert Pluim
Subject: Re: How to use emacs as a "diff3 -m" compatible merge tool?
Date: Mon, 13 Jun 2022 10:09:21 +0200

>>>>> On Mon, 13 Jun 2022 07:21:00 +0200, Tassilo Horn <tsdh@gnu.org> said:

    Tassilo> "emacsclient <file>" exits on `server-edit' (C-x #) (or goes to 
the next
    Tassilo> buffer if more than one file were specified on the command line) 
but
    Tassilo> won't make emacs itself exit.  So there is an exit code for 
emacsclient
    Tassilo> but it seem one cannot influence it.

Thereʼs `server-edit-abort', but that doesnʼt (currently) allow you to
tell emacsclient which exit code to use. I guess it could be extended.

    >>> How do I print the merge buffer's contents to stdout?
    >> 
    >> Here is some material on that but if you use Emacs as a shell
    >> tool you don't need it
    >> 
    >> https://stackoverflow.com/a/41435631

    Tassilo> Indeed,

    Tassilo>   (append-to-file (point-min) (point-max) "/dev/stdout")

Except on platforms that donʼt have "/dev/stdout".

Robert
-- 



reply via email to

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