[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-ev
From: |
Lars Ingebrigtsen |
Subject: |
Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation |
Date: |
Wed, 30 Oct 2019 00:58:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
> 'message' can be easily replaced with 'minibuffer-message',
> then it doesn't obscure the minibuffer:
>
> (progn
> (run-at-time 2 nil (lambda () (minibuffer-message "foo")))
> (read-from-minibuffer "Yes? "))
Oh, nice. I guess whenever we're displaying things from an async
context, we should be using minibuffer-message?
> Whereas it obscures the prompt in y-or-n-p:
>
> (progn
> (run-at-time 2 nil (lambda () (minibuffer-message "foo")))
> (y-or-n-p "Yes? "))
Then I'm all for your suggestion to rewrite y-or-n-p with
read-from-minibuffer... but without a history. (And yes-or-no-p too,
somehow, I guess.) (Or fix both of those functions to work the same
with respect to minibuffer-message.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, (continued)
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Stefan Monnier, 2019/10/27
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Lars Ingebrigtsen, 2019/10/28
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/28
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Stefan Kangas, 2019/10/28
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/29
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Lars Ingebrigtsen, 2019/10/29
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/29
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation,
Lars Ingebrigtsen <=
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, martin rudalics, 2019/10/30
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/30
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Stefan Monnier, 2019/10/30
Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Alan Mackenzie, 2019/10/26
Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juanma Barranquero, 2019/10/26
Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/27