emacs-devel
[Top][All Lists]
Advanced

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

Re: interactive-p and called-interactively-p


From: Stefan Monnier
Subject: Re: interactive-p and called-interactively-p
Date: Sun, 16 Aug 2009 10:53:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> It would have been far better to just add an optional argument to
>>> `interactive-p' than to create a new, similarly named function.
>> 
>> Agreed.  Any objection?

> Since called-interactively-p has been around since Emacs 22, and the
> benefit in cleanliness is rather minute, I don't think it's worth the
> hassle.  We can't just remove called-interactively-p because that would
> break backward compatibility, which means adding another argument to
> interactive-p just means more non-useful complexity (how many people
> would benefit from this anyway?).

It would make this cleaner and easier to explain.
Marking called-interactively-p as obsolete is easy, and
called-interactively-p is probably very rarely used nowadays outside of
Emacs's bundled packages.  Also an argument to `interactive-p' makes it
easier for people to learn about the functionality.


        Stefan




reply via email to

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