From: Lars Ingebrigtsen <larsi@gnus.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Ihor Radchenko <yantar92@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Really noninteractive
Date: Thu, 20 Feb 2020 19:36:48 +0100 [thread overview]
Message-ID: <87r1yp2ji7.fsf@gnus.org> (raw)
In-Reply-To: <CAM-tV-9R94tbUs8sSr3HS6Wm+cx2FVP23dP1eR5QSy7ignEVUg@mail.gmail.com> (Noam Postavsky's message of "Thu, 20 Feb 2020 12:56:32 -0500")
Noam Postavsky <npostavs@gmail.com> writes:
> I think if you redirect stdin from /dev/null any
> noninteractive/batch-mode reading will fail immediately.
Yes, but that's not what I want. :-) I want to say "this function
call, in this otherwise totally normal Emacs, should not prompt".
I.e., what my original example said:
(let ((noninteractive t)) (read-string "foo"))
=> error
But it's starting to sound like nobody's implemented this?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-02-20 18:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-20 14:39 Really noninteractive Lars Ingebrigtsen
2020-02-20 15:23 ` Andreas Schwab
2020-02-20 17:42 ` Lars Ingebrigtsen
2020-02-24 9:16 ` Andreas Schwab
2020-02-24 12:55 ` Noam Postavsky
2020-02-24 13:03 ` Lars Ingebrigtsen
2020-02-20 19:05 ` Clément Pit-Claudel
2020-02-20 15:32 ` Ihor Radchenko
2020-02-20 17:42 ` Lars Ingebrigtsen
2020-02-20 17:56 ` Noam Postavsky
2020-02-20 18:36 ` Lars Ingebrigtsen [this message]
2020-02-20 19:11 ` dick.r.chiang
2020-02-21 13:20 ` Noam Postavsky
2020-02-21 14:11 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1yp2ji7.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=npostavs@gmail.com \
--cc=yantar92@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.