[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yes-or-no-p prompt conditionally broken in master?
From: |
David Kastrup |
Subject: |
Re: yes-or-no-p prompt conditionally broken in master? |
Date: |
Fri, 04 Sep 2015 22:04:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
>> Date: Fri, 04 Sep 2015 22:47:05 +0300
>> From: Eli Zaretskii <address@hidden>
>> Cc: address@hidden, address@hidden, address@hidden,
>> address@hidden, address@hidden,
>> address@hidden, address@hidden, address@hidden
>>
>> > From: David Kastrup <address@hidden>
>> > Date: Fri, 04 Sep 2015 20:39:22 +0200
>> > Cc: address@hidden, address@hidden, address@hidden,
>> > address@hidden, address@hidden,
>> > address@hidden, address@hidden, address@hidden
>> >
>> > >> Reliable translation into selection boxes when feeding emacs -batch from
>> > >> a script?
>> > >
>> > > y-or-n-p already does TRT in that case (no dialog boxes in -batch).
>> >
>> > Feeding emacs -batch _from_ a script. Meaning the script supplies "yes"
>> > and "no".
>>
>> That already works, AFAIK.
>
> I meant it already works if the script supplies "y" or "n", not
> literally "yes" and "no". If you had the latter in mind, then I see
> no reason for a script to supply "yes" when it knows that Emacs needs
> "y".
How would the script know which user settings for the proposed
customizable yes-or-no-p behavior options are active when it is used in
a manner reading in the user init file before proceeding?
> But we could, of course, extend y-or-n-p to accept "yes" and "no" when
> in batch mode.
>
> IOW, it's a separate issue, whose solution is not necessarily to make
> y-or-n-p work as yes-or-no-p.
It's not entirely separate since it extends the manners in which Emacs
might "legitimately" behave. Customizable options usually don't fall
into "if it breaks, you get to keep the pieces" category.
--
David Kastrup
- Re: yes-or-no-p prompt conditionally broken in master?, (continued)
- Re: yes-or-no-p prompt conditionally broken in master?, Alan Mackenzie, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Kaushal Modi, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Kaushal Modi, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?,
David Kastrup <=
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/05
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/05
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Alan Mackenzie, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Chad Brown, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Eli Zaretskii, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Kaushal Modi, 2015/09/04
- RE: yes-or-no-p prompt conditionally broken in master?, Drew Adams, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, Stefan Monnier, 2015/09/04
- Re: yes-or-no-p prompt conditionally broken in master?, David Kastrup, 2015/09/04