From: Mathias Megyei <mathias@mnet-mail.de>
To: Mathias Dahl <mathias.dahl@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: kill-emacs and returning values
Date: Sat, 14 Feb 2009 18:17:25 +0100 [thread overview]
Message-ID: <1234631845.6514.4.camel@surlej> (raw)
In-Reply-To: <7dbe73ed0902140551w7a85d043n54e451896d99279e@mail.gmail.com>
On Sat, 2009-02-14 at 14:51 +0100, Mathias Dahl wrote:
> Okay, sounds promising. I did a small test:
>
> $ cat ke.el
> ;; Interactive stuff goes here...
>
> ;; In the end, kill emacs and return a value to the script running in
> ;; the shell
> (kill-emacs "This is the return value.")
>
Does it work for your purpose if you change the last line
to:
(kill-emacs "returnvalue='This is the return value.'")
$ emacs -Q -nw -l ke.el
returnvalue='This is the return value.'
$ echo $returnvalue
This is the return value.
Best Regards,
Mathias
next prev parent reply other threads:[~2009-02-14 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-14 13:51 kill-emacs and returning values Mathias Dahl
2009-02-14 17:17 ` Mathias Megyei [this message]
2009-02-14 20:23 ` Mathias Dahl
2009-02-14 21:47 ` Mathias Megyei
2009-02-14 22:01 ` Mathias Dahl
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1234631845.6514.4.camel@surlej \
--to=mathias@mnet-mail.de \
--cc=emacs-devel@gnu.org \
--cc=mathias.dahl@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).