[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer ne
From: |
Stefan Kangas |
Subject: |
Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed |
Date: |
Tue, 3 Jan 2023 15:33:21 +0000 |
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Thu, 16 Sep 2021 03:38:53 -0400 (EDT), stefankangas@gmail.com (Stefan
>>>>>> Kangas) said:
> Stefan> * src/fns.c (Fyes_or_no_p): Doc fix to reflect that a
> trailing space
> Stefan> is no longer needed; one is added or removed automatically.
>
> I just tested this on master, and I donʼt think this is qute accurate:
Hmm, I guess you're right. Not sure what I was smoking:
> - `y-or-n-p' will append a space if there is one
> - it wonʼt remove one
(y-or-n-p "foo") => prompt is "foo (y or n) "
(y-or-n-p "foo ") => prompt is "foo (y or n) "
> - `yes-or-no-p' never modifies the passed prompt
(yes-or-no-p "foo") => prompt is "foo(yes or no) "
(yes-or-no-p "foo ") => prompt is "foo (yes or no) "
I think the best fix here is to change `yes-or-no-p' to work the same
way as `y-or-n-p'.
- Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Robert Pluim, 2023/01/03
- Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed,
Stefan Kangas <=
- Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Robert Pluim, 2023/01/03
- Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Jean Louis, 2023/01/04
- Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Robert Pluim, 2023/01/04
- RE: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Drew Adams, 2023/01/04
- Re: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Robert Pluim, 2023/01/04
- RE: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Drew Adams, 2023/01/04
- Re: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Robert Pluim, 2023/01/04
- Re: [External] : Re: master 7f53446: Doc fix for y-or-n-p; trailing space is no longer needed, Eli Zaretskii, 2023/01/04