emacs-devel
[Top][All Lists]
Advanced

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

Re: Lisp watchpoints


From: Andreas Schwab
Subject: Re: Lisp watchpoints
Date: Sun, 29 Nov 2015 12:28:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> +      else if (FUNCTIONP (watcher))
>> +        CALLN (Ffuncall, watcher, operation, where, symbol, newval);
>
> I don't think you need to test "FUNCTIONP (watcher)".
> And you don't need Ffuncall: what you wrote is similar to writing
>
>    (funcall #'funcall watcher operation where symbol newval)

The first argument to CALLN is a C function implementing a Lisp
function, like Ffuncall, but watcher isn't.  So the Ffuncall is needed
and it's equivalent to (funcall watcher operation where symbol newval).

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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