[Top][All Lists]

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

Re: kill-emacs and returning values

From: Mathias Megyei
Subject: Re: kill-emacs and returning values
Date: Sat, 14 Feb 2009 18:17:25 +0100

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

 (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,


reply via email to

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