[Top][All Lists]

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

Re: Brittleness of called-interactively-p

From: Stefan Monnier
Subject: Re: Brittleness of called-interactively-p
Date: Thu, 16 Jul 2015 18:55:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> When interactive-p was deprecated and we moved to the new
> called-interactive-p -- I was unable to get the behavior I wanted using
> (called-interactive-p 'interactive) as  the test;

Are you sure?

(interactive-p) is 99.9% equivalent to (called-interactively-p
'interactive), including interactions with advice and whatnot.
More recently both functions have been reimplemented, and the new
implementation should work about as well as the old one in most cases.
The new advice library interacts differently (and that appeared
at the same time as the new called-interactively-p implementation), so
that can be mistaken as a consequence of the new called-interactively-p
implementation, but mostly the new implementation of
called-interactively-p mostly handles more cases.


reply via email to

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