emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused by y-or-n-p


From: Stefan Monnier
Subject: Re: Confused by y-or-n-p
Date: Wed, 23 Dec 2020 13:11:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> > Would it make sense to add a user option to disallow switching from
>> > the minibuffer in the middle of y-or-n-p?  Then people who get
>> > confused by this could set it to avoid the confusion.
>> 
>> I wonder what makes `y-or-n-p` special in this respect.
>> IOW, I think the answer is "yes, it would make sense" but I also think
>> this option should apply to other cases that `y-or-n-p`.
>> 
>> Maybe it could/should even apply to most uses of the minibuffer?
>
> Could be.  However, y-or-n-p is somewhat special, in that it allowed
> only very restricted set of things to type.  By contrast
> read-from-minibuffer always allowed switching out of the minibuffer.

So you're saying the only reason to treat `y-or-n-p` differently is to
avoid surprising old users?

Fair enough, but IIRC `y-or-n-p` is not the only function we changed
recently to use a minibuffer instead of an ad-hoc modal read-event loop,
so I suspect we might want to apply this new option to those other
functions as well.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]