[Top][All Lists]

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

Re: interactive-p and called-interactively-p

From: Richard Stallman
Subject: Re: interactive-p and called-interactively-p
Date: Thu, 03 Sep 2009 09:48:24 -0400

    > A mandatory argument would make people think, each time, about which
    > question they want to ask.  That would be good.  But it would require
    > changing every existing call to either of these functions.  That's
    > a rather high price.

    Since I don't like the status quo and want to replace those two
    functions with a single one, there's going to be a price in terms of
    changes.  The lower price is to obsolete called-interactively-p and add
    an optional arg to interactive-p instead.  You don't seem to like this

If the arg is optional, it won't require or remind the programmer to
consider the issue of which question he wants to ask.

If we don't use a mandatory arg, I think the next best solution is the
one we use now: two functions with different names.

The names could be clearer than they are, but the one which is least clear
now is `interactive-p'.  That's why I proposed to change that one.

If you don't mind the size of the transient caused by the change, I think
the mandatory argument is the best design.

reply via email to

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