help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to avoid y-or-n-p in a program?


From: Stefan Monnier
Subject: Re: How to avoid y-or-n-p in a program?
Date: Wed, 12 Mar 2014 14:14:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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.


        Stefan




reply via email to

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