[Top][All Lists]

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

Re: Writing to STDOUT from elisp

From: Eli Zaretskii
Subject: Re: Writing to STDOUT from elisp
Date: Thu, 10 Jul 2014 18:03:53 +0300

> Date: Wed, 9 Jul 2014 22:40:09 -0700
> From: Craig Muth <address@hidden>
> Cc: Andreas Schwab <address@hidden>, "Stephen J. Turnbull" <address@hidden>, 
> address@hidden, 
>       Mathias Dahl <address@hidden>
> > If you want to do this in an interactive session
> Yes, in an interactive session.
> > please tell what
> > exactly are you trying to do and why.  For example, is this only
> > needed when you exit Emacs
> Doing it when exiting emacs would work.

Then one way of doing this is call kill-emacs with a non-nil argument,
then wrap Emacs in a shell script that would do whatever you want
depending on the Emacs exit code.

Of course, submitting (trivial) patches for adding a command to write
to stdout would probably be welcome as well.  But please note that
sometimes Emacs is invoked with stdout redirected to some obscure
file, or even with stdout being closed/invalid.

reply via email to

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