[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to avoid y-or-n-p in a program?
From: |
Thorsten Jolitz |
Subject: |
Re: How to avoid y-or-n-p in a program? |
Date: |
Wed, 12 Mar 2014 23:31:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
Hi Tassilo, Juanma and Stefan,
>> when in a program function A calls another (external) function B that
>> asks the user a y-or-n-p question, and you want to avoid that and
>> instead code in function A that the answer is always Y, so that the
>> prompt never shows up - how do you do that?
>
> The recommended way:
> - change B so that it doesn't call y-or-n-p unconditionally.
> - change A to adjust to the new behavior of B.
Thanks for your tips, so I have more than one solution.
Have to figure out the way of least resistance...
--
cheers,
Thorsten