emacs-devel
[Top][All Lists]
Advanced

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

RE: Emacs 25.0.04: Feature Request: Make called-interactively-p's argume


From: Drew Adams
Subject: RE: Emacs 25.0.04: Feature Request: Make called-interactively-p's argument optional
Date: Wed, 29 Jun 2016 14:19:33 -0700 (PDT)

> There was a function, interactive-p, that many people used without any
> arguments and found that useful.  Now (called-interactively-p
> 'interactive) is equivalent but makes code much uglier (I know as I
> just changed all my code to use it and it is much less readable now).
> The request is for a function of no arguments that does what
> interactive-p did; it could be called-interactively-p with an optional
> argument signature or it could be another function that provides an
> equivalent.

If (called-interactively-p 'interactive) is equivalent to
`interactive-p', and if "the call is for a function of no
arguments that does what `interactive-p' did" (and still does)

...then just use `interactive-p'.

(I do.  But then, I also want to be backward compatible.)



reply via email to

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