help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Query about Emacs Process API | Asynchronous processes


From: Narendra Joshi
Subject: Re: Query about Emacs Process API | Asynchronous processes
Date: Sun, 05 Jul 2020 21:13:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> I read that section of the manual. I am still not sure what will be the
>> use cases for this. Where in Emacs (or the package ecosystem) is this
>> feature being used currently?
>
> I think it's used for `ielm`.
>
>         Stefan
>
`ielm` seems to be adding a dummy process to its buffer using either
`cat` or `hexl` binary.

--8<---------------cut here---------------start------------->8---
  ;; A dummy process to keep comint happy. It will never get any input
  (unless (comint-check-proc (current-buffer))
    ;; Was cat, but on non-Unix platforms that might not exist, so
    ;; use hexl instead, which is part of the Emacs distribution.
    (condition-case nil
        (start-process "ielm" (current-buffer) "hexl")
      (file-error (start-process "ielm" (current-buffer) "cat")))
    (set-process-query-on-exit-flag (ielm-process) nil)
    (goto-char (point-max))
--8<---------------cut here---------------end--------------->8---


-- 
Narendra Joshi



reply via email to

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