[Top][All Lists]

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

Re: Brittleness of called-interactively-p

From: raman
Subject: Re: Brittleness of called-interactively-p
Date: Thu, 16 Jul 2015 08:57:50 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Speaking from the perspective of developing Emacspeak:

Emacspeak uses the "is this an interactive call" heavily  -- it provides
spoken feedback only if the call is interactive. 

I originally implemented emacspeak starting in late 1994 and used the
(when (interactive-p)...)
in all my code.

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;  --  the code ended up
chasing its tail given the heavy use of advice.

I worked around the problem by defining my own version of the
interactive test -- see http://github.com/tvraman/emacspeak --
specifically the implementation of function ems-interactive-p.


reply via email to

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