emacs-devel
[Top][All Lists]
Advanced

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

Re: other "concurrency" approaches


From: Nic Ferrier
Subject: Re: other "concurrency" approaches
Date: Tue, 03 Nov 2015 22:28:03 +0000

Eli Zaretskii <address@hidden> writes:

>> From: Nic Ferrier <address@hidden>
>> Cc: address@hidden
>> Date: Tue, 03 Nov 2015 17:16:10 +0000
>> 
>> Eli Zaretskii <address@hidden> writes:
>> 
>> >> What you want is the ability to do something like this:
>> >> 
>> >> 
>> >>  (let ((proc (start-process "emacs" args-to-make-it-headless)))
>> >>    (process-send-string proc (prin1-to-string '(+ 1 (* 30 45))))
>> >>    (process-send-eof proc)
>> >>    (print (buffer-string (process-buffer proc))))
>> >> 
>> >> in other words, an Emacs that just reads forms from stdin and executes
>> >> them and outputs to stdout.
>> >
>> > This sounds like a description of -batch, but you already know about
>> > it, so I'm quite sure I'm missing something important here.
>> 
>> -batch has a peculiar environment, it does not read the user's
>> environment.
>
> You mean, the init files?  But you can load them via -l, no?

That fixes the init files but doesn't fix the environment. There are all
sorts of little things wrong.

There's also something wrong with stdin in that scenario as I recall.

Why don't you try it and see what I mean?



Nic



reply via email to

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