[erlang-questions] how can I run emacs from erlang

Håkan Mattsson hm@REDACTED
Wed Jul 17 10:01:10 CEST 2013


It looks like you are trying to use Emacs without proper X settings.

Erlang R16B01 (erts-5.10.2) [source] [64-bit halfword] [smp:8:8]
[async-threads:10] [kernel-poll:false]

Eshell V5.10.2  (abort with ^G)
1> os:cmd("emacs").
[]
2> os:cmd("emacs -nw").
"emacs: standard input is not a tty\n"
3>

On Tue, Jul 16, 2013 at 4:18 PM, Aaron France <aaron.l.france@REDACTED> wrote:
> Hi,
>
>> os:cmd("emacs").
>
> Works for me. Are you running in X?
>
> Aaron
>
>
> On Tue, Jul 16, 2013 at 3:00 PM, Joe Armstrong <erlang@REDACTED> wrote:
>>
>> Is there a simple way to run emacs from erlang?
>>
>> This doesn't work
>>
>> > os:cmd("emacs").
>> "emacs: standard input is not a tty\n"
>>
>> I just want to pop up a window with emacs in it (and some text in a
>> buffer)
>> and get the text back when the user quits emacs
>>
>> Is there an easy way to do this?
>>
>> And no - I don't want to run erlang inside emacs - I want the other way
>> around.
>>
>> Cheers
>>
>> /Joe
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list