[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: |
Tue, 29 Oct 2019 12:38:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Juri Linkov <address@hidden> writes:
>> So read-from-minibuffer reasserts the query if an asynchronous message
>> hides it?
>
> An asynchronous message doesn't hide the minibuffer. It's displayed
> at the end of the minibuffer text.
The original bug report was about:
(progn
(run-at-time 2 nil (lambda () (message "foo")))
(y-or-n-p "Yes? "))
But this seems to have the same problem?
(progn
(run-at-time 2 nil (lambda () (message "foo")))
(read-from-minibuffer "Yes? "))
When I eval that, "foo" completely hides the prompt -- it's not appended
or reasserted.
>> I think having a history for y-or-n-p doesn't sound very useful?
>> Hitting `M-p' doesn't to get to the previous answer just sounds
>> confusing to me.
>
> Please try the example I sent earlier. It feels quite naturally
> typing 'M-p RET' to repeat a previous y/n answer.
I played with it a bit, and I'm not very enthusiastic about that. Like
Stefan K says, it seems error-prone, and I think it would just create
frustration. And it's a bigger change in the interface than it first
sounds like -- people may be used to hitting <up> as a way to reassert
the prompt, for instance.
--
(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, Juri Linkov, 2019/10/27
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, Juri Linkov, 2019/10/27
- Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation, martin rudalics, 2019/10/28
- 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 <=
- 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, 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