From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Re: Query about Emacs Process API | Asynchronous processes Date: Sun, 05 Jul 2020 21:13:11 +0200 Message-ID: <87eeppydvc.fsf@gmail.com> References: <87r1tqyka9.fsf@gmail.com> <83h7umt4qa.fsf@gnu.org> <87imf2xc8i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 05 21:13:44 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsA5A-0004PI-CQ for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Jul 2020 21:13:44 +0200 Original-Received: from localhost ([::1]:57214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsA59-0007ad-CX for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 05 Jul 2020 15:13:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsA4i-0007aN-Dg for help-gnu-emacs@gnu.org; Sun, 05 Jul 2020 15:13:16 -0400 Original-Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:36723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsA4g-0000JM-Ny for help-gnu-emacs@gnu.org; Sun, 05 Jul 2020 15:13:16 -0400 Original-Received: by mail-ed1-x52f.google.com with SMTP id dg28so32797433edb.3 for ; Sun, 05 Jul 2020 12:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=kDFjm816gFIwbniM1M2VLo9a7Hx16AxJmaW3AFmjReM=; b=DT1KYIOP6SWnRsGXnko4zCQhKefls/wb62bCpFnRnPJ8O7uMe6o3hmwRGQ5ZTr/8mq POjTi9u53SvWIoG2NDDRjbk+thFbwcHzb7NWe0AwzF5XTrVAXYPepveJwi/9CgrCrMHn KQVJU96t8Lmu0x4xp4lj4mGIILibtY2obolJBJQX3EG2eUmI0JshaN+TpKypwW9G/u19 o5nACpArVBU5PpC10d/dzmyecYoBcDYtpwWzF1Tp5LO8gYozWKcok6GrXNKeJrgu6PcL lYW7la9IyTpYX0gecd3k8cJkvR7B9Nf8qgrBJlTQN3cgOQ9/kl67bhV2kwDJQvEYgaKy qvhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=kDFjm816gFIwbniM1M2VLo9a7Hx16AxJmaW3AFmjReM=; b=YTnyb++Cyy1zsdePvEJ/kPCUmDs2ViGCP8YMxdq2TQgSSi5wuZoPkvogUs2LLKqFkz /DfoeOCBiFDdkXV0AOn6BG5nkmle+KEMi7MNqF96Qqy4Sflrnl+k8ftkFdTrDDm0/mu3 JrRHVfOhi1YsxA4qlWNWzFJKrSeeQSdQt9UE4T8ufih4MYMAwLbwgIGUwWFP3r/FAG6Y 7htW0ewaF96H9dtk71pfVIbNeW3M665NPzem3SGRgRdM+LBeHGo/M+7/j2nrwPErUe7H rIyew7Qf0ubqs+0TjSrQWrViPhQfei2ta1s3GmNMLA8seDmJT0m3Qw7DKTglSHYhuozv MCqg== X-Gm-Message-State: AOAM531BRHH8FMChGJsLfNQQAColvveRQ3k2gnN0+JOsctzI+yZmLShp f0xSZlb1tffeaWdy85I8ic45IsHCKHK6 X-Google-Smtp-Source: ABdhPJzTITHkmwwirkwxqHlWF8FmbpsVI9scKEi/QzC7KIVcOYWM1L5v8qqTwCYdZl40kBzwviz1Ug== X-Received: by 2002:a05:6402:b72:: with SMTP id cb18mr14998071edb.352.1593976392899; Sun, 05 Jul 2020 12:13:12 -0700 (PDT) Original-Received: from vicarie ([2a02:8109:b640:2344::529c]) by smtp.gmail.com with ESMTPSA id b18sm15409756ejl.52.2020.07.05.12.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2020 12:13:11 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sun, 05 Jul 2020 11:25:25 -0400") Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=narendraj9@gmail.com; helo=mail-ed1-x52f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123509 Archived-At: Stefan Monnier 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