From: Jean Louis <bugs@gnu.support>
To: Nicolas Graner <nicolas@graner.name>, help-gnu-emacs@gnu.org
Subject: Re: sending data to an asynchronous process
Date: Fri, 2 Apr 2021 22:10:46 +0300 [thread overview]
Message-ID: <YGdsNmFBRfqCh/d8@protected.localdomain> (raw)
In-Reply-To: <YGdoSlGfxISG6JSx@protected.localdomain>
* Jean Louis <bugs@gnu.support> [2021-04-02 21:58]:
> (defun rcd-command-output-from-input (program input &rest args)
> "Returns output from PROGRAM INPUT with optional ARGS"
> (let* ((output (with-temp-buffer
> (insert input)
> (apply #'call-process-region nil nil program t t nil args)
> (buffer-string))))
> output))
>
> (rcd-command-output-from-input "sox" (buffer-string)
> "-r" "44100"
> "-c" "2"
> "-b" "32"
> "-e" "signed-integer"
> "-t" "raw"
> "-"
> "-q"
> "-d") → ""
I can imagine that if the above command is added as some hook on
load-file or require, then we could sound-alize loading of Emacs
libraries.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
Sign an open letter in support of Richard M. Stallman
https://rms-support-letter.github.io/
next prev parent reply other threads:[~2021-04-02 19:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-02 10:20 sending data to an asynchronous process Nicolas Graner
2021-04-02 16:13 ` Jean Louis
2021-04-02 17:18 ` Jean Louis
2021-04-02 18:35 ` Nicolas Graner
2021-04-02 18:54 ` Jean Louis
2021-04-02 19:10 ` Jean Louis [this message]
2021-04-02 19:15 ` Eli Zaretskii
2021-04-02 23:03 ` Nicolas Graner
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=YGdsNmFBRfqCh/d8@protected.localdomain \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=nicolas@graner.name \
/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).