From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#17623: 24.4.50; incorrect example for `apply-partially' in (elisp) `Calling Functions' Date: Sat, 28 Jun 2014 21:37:06 +0200 Message-ID: <87mwcwx1ul.fsf@web.de> References: <9fd43ff1-d6cf-4ac6-b173-2fd634f45a98@default> <871tua2o12.fsf@web.de> <1ac7ebe5-6b43-4367-beb8-df7d9f5b6750@default> <87tx75ni8k.fsf@web.de> <8338ep6kk1.fsf@gnu.org> <87pphsor8h.fsf@web.de> <83tx746fgd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403984304 5303 80.91.229.3 (28 Jun 2014 19:38:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2014 19:38:24 +0000 (UTC) Cc: 17623@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 21:38:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1X0yS0-0001j1-NJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2014 21:38:16 +0200 Original-Received: from localhost ([::1]:55672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0yS0-0005iM-BB for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2014 15:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0yRs-0005hL-7V for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 15:38:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0yRm-00006M-8N for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 15:38:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0yRm-000060-4k for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 15:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X0yRl-0003sv-Q5 for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 15:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jun 2014 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17623-submit@debbugs.gnu.org id=B17623.140398424514869 (code B ref 17623); Sat, 28 Jun 2014 19:38:01 +0000 Original-Received: (at 17623) by debbugs.gnu.org; 28 Jun 2014 19:37:25 +0000 Original-Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0yRA-0003rl-Mb for submit@debbugs.gnu.org; Sat, 28 Jun 2014 15:37:25 -0400 Original-Received: from mout.web.de ([212.227.17.12]:64936) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0yR7-0003rS-Is for 17623@debbugs.gnu.org; Sat, 28 Jun 2014 15:37:22 -0400 Original-Received: from drachen.dragon ([94.217.127.201]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0LudKu-1WaofE3yGe-00zksT; Sat, 28 Jun 2014 21:37:09 +0200 In-Reply-To: <83tx746fgd.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Jun 2014 21:45:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-Provags-ID: V03:K0:akjXTIyWHlGsvYcFlz9k6eFghdDNedJS7IVIq8e65oaLXLMB7HE jMWiwhClNvlRivb0faGzduYZZmHDT2O9ngYLvGkSjgykoUzIv44d+SRhzy2dWh14gYK8qi8 aHfQ5p0L1CnPs8rohSdI2wHcxwJyUtTPpgm8ZwmwGe9sFpFctxCFzkU1q8DmsYXHXiaLqnT /e2afXeOb2cg1gtZDNDsg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90950 Archived-At: Eli Zaretskii writes: > > Say that > > > > (apply-partially f arg_1 ... arg_n) > > > > is equivalent to > > > > (lambda (&rest args) (apply f arg_1 ... arg_n args)) > > Sorry, I don't see how this is an improvement. It's an improvement because it's short and clearer than any text that just tries to describe it. > Accidentally, the current text is a bit different from what you cited: I didn't cite anything, I just said that I don't find it clear, because I think it can be misunderstood. > > And I think that the paragraph about `apply-partially` should be merged > > into the later text talking about functionals, because the main use case > > of `apply-partially` is to construct anonymous functions for usage as > > argument to some other function. > > If you mean this: > > It is common for Lisp functions to accept functions as arguments or > find them in data structures (especially in hook variables and property > lists) and call them using `funcall' or `apply'. Functions that accept > function arguments are often called "functionals". > > Sometimes, when you call a functional, it is useful to supply a no-op > function as the argument. Here are two different kinds of no-op > function: > > then it directly follows the part we were talking about. I were talking about both parts, and that we should say that `apply-partially` is, like ignore and identity, as well mainly useful in combination with functionals. That's all. Eli, dunno why, but our discussions don't yield any results most of the time. I would like to stop here, ok? Michael.