[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient in elisp
From: |
Jean Louis |
Subject: |
Re: emacsclient in elisp |
Date: |
Fri, 21 May 2021 09:27:14 +0300 |
User-agent: |
Mutt/2.0.6 (2021-03-06) |
* Stefan Monnier <monnier@iro.umontreal.ca> [2021-05-20 19:41]:
> >> Yes, synchronously reading from stdin is supported. But it is not
> >> possible to do this asynchronously, or is it? This was specifically the
> >> functionality I have been looking for.
> > What do you mean by that? how can Emacs read input _asynchronously_
> > when reading is inherently a synchronous operation?
>
> I think the problem is that in batch mode, `read-from-minibuffer` is not
> only synchronous (which is fine) but it doesn't perform any async
> processing, like running process filters and timers while waiting for
> the input from stdin.
Please send a reference how read-from-minibuffer reads standard input,
as I don't get it to work.
(defun tell-me ()
(read-from-minibuffer "")))
$ emacs -Q -l process-org.el --batch -f tell-me
Debugger entered--Lisp error: (end-of-file)
read-from-string("")
tell-me()
command-line-1(("-l" "process-org.el" "-f" "tell-me"))
command-line()
normal-top-level()
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/
- Re: emacsclient in elisp, (continued)
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Stefan Monnier, 2021/05/21
- Re: emacsclient in elisp, Daniel Mendler, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp,
Jean Louis <=
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Eli Zaretskii, 2021/05/21
- Re: emacsclient in elisp, Jean Louis, 2021/05/21