From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Lisp watchpoints Date: Sun, 29 Nov 2015 10:39:49 -0500 Message-ID: References: <83wpt922dn.fsf@gnu.org> <87fuzpjb90.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448811616 12509 80.91.229.3 (29 Nov 2015 15:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Nov 2015 15:40:16 +0000 (UTC) Cc: John Wiegley , Eli Zaretskii , emacs-devel@gnu.org, Noam Postavsky To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 29 16:40:08 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a3457-0002DB-Kx for ged-emacs-devel@m.gmane.org; Sun, 29 Nov 2015 16:40:05 +0100 Original-Received: from localhost ([::1]:36693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a345B-0007mS-I2 for ged-emacs-devel@m.gmane.org; Sun, 29 Nov 2015 10:40:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a344w-0007mL-VS for emacs-devel@gnu.org; Sun, 29 Nov 2015 10:39:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a344w-0007Yd-4i for emacs-devel@gnu.org; Sun, 29 Nov 2015 10:39:54 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:18419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a344s-0007Va-5u; Sun, 29 Nov 2015 10:39:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtCwA731xV/yr292hcgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQcBAQEBHos6hQUHhC0FjDCoVCOEFiCCeAEBAQ X-IPAS-Result: A0CtCwA731xV/yr292hcgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCws0EhQYDSSINwjPIwEBAQcBAQEBHos6hQUHhC0FjDCoVCOEFiCCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="179697062" Original-Received: from 104-247-246-42.cpe.teksavvy.com (HELO fmsmemgm.homelinux.net) ([104.247.246.42]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Nov 2015 10:39:49 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 42FE7AE07A; Sun, 29 Nov 2015 10:39:49 -0500 (EST) In-Reply-To: <87fuzpjb90.fsf@igel.home> (Andreas Schwab's message of "Sun, 29 Nov 2015 12:28:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195537 Archived-At: >> 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). Duh, indeed, sorry! Stefan