unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Narendra Joshi <narendraj9@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Query about Emacs Process API | Asynchronous processes
Date: Sun, 05 Jul 2020 21:13:11 +0200	[thread overview]
Message-ID: <87eeppydvc.fsf@gmail.com> (raw)
In-Reply-To: <jwvwo3infvw.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 05 Jul 2020 11:25:25 -0400")

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	other threads:[~2020-07-05 19:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-04 22:42 Query about Emacs Process API | Asynchronous processes Narendra Joshi
2020-07-05 14:29 ` Eli Zaretskii
2020-07-05 14:33   ` Narendra Joshi
2020-07-05 15:25     ` Stefan Monnier
2020-07-05 19:13       ` Narendra Joshi [this message]
2020-07-07 22:26         ` Narendra Joshi

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=87eeppydvc.fsf@gmail.com \
    --to=narendraj9@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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).