emacs-devel
[Top][All Lists]
Advanced

[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, 06 Aug 2015 18:36:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> It is not clear for me whether this approach will help to solve the current
> problem of macros wrapping fragments of code in lambdas.

BTW, the real solution, which is simple and reliable is to not use
called-interactively-p at all, and use an argument instead:

   (defun foo (bar &optional called-interactively)
     (interactive (list toto t))
     ...here.I.can.use.called-interactively...)

called-interactively-p is fundamentally a kludge and is better avoided.


        Stefan



reply via email to

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