From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49316: Add apply-partially's right version Date: Thu, 01 Jul 2021 21:45:15 +0300 Message-ID: <834kddlvpg.fsf@gnu.org> References: <2315db79-00cf-b2f0-b5df-93cd53392292@gmail.com> <87czs2faas.fsf@tcd.ie> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22512"; mail-complaints-to="usenet@ciao.gmane.io" Cc: contovob@tcd.ie, 49316@debbugs.gnu.org To: daanturo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 01 20:46:37 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lz1hs-0005gm-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 20:46:36 +0200 Original-Received: from localhost ([::1]:37382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lz1hr-0007ht-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Jul 2021 14:46:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz1hK-0007G9-KP for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 14:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lz1hK-0003K0-BW for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 14:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lz1hK-0002Qv-6h for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2021 14:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jul 2021 18:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49316 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49316-submit@debbugs.gnu.org id=B49316.16251651289304 (code B ref 49316); Thu, 01 Jul 2021 18:46:02 +0000 Original-Received: (at 49316) by debbugs.gnu.org; 1 Jul 2021 18:45:28 +0000 Original-Received: from localhost ([127.0.0.1]:33697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz1gm-0002Q0-6e for submit@debbugs.gnu.org; Thu, 01 Jul 2021 14:45:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lz1gk-0002Pm-KZ for 49316@debbugs.gnu.org; Thu, 01 Jul 2021 14:45:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58286) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lz1ge-0002kF-MI; Thu, 01 Jul 2021 14:45:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4512 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lz1ge-00030Q-B6; Thu, 01 Jul 2021 14:45:20 -0400 In-Reply-To: (message from daanturo on Fri, 2 Jul 2021 00:06:35 +0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209282 Archived-At: > From: daanturo > Date: Fri, 2 Jul 2021 00:06:35 +0700 > Cc: "Basil L. Contovounesios" > > (Please ignore my immediately precededing email, I'm sorry for not being > used to sending patches by mailing list.) I see no problems in the preceding email, so I think you have nothing to apologize for. > +@defun apply-rpartially func &rest args > +This function does mostly the same as @code{apply-partially}, but > +@var{args} are aligned to the right of @var{func}'s parameters > +instead. I don't think this explains the purpose of the function clearly enough. The documentation of apply-partially doesn't mention any "alignment", so it's hard to understand what you want to say here. Can you think of a better description? > +@example > +@group > +(defalias 'square (apply-rpartially #'expt 2) > + "Return argument squared.") > +@end group > +@group > +(square 3) > + @result{} 9 > +@end group > +@end example IMO, the example could be more revealing if you could contrast apply-rpartially with apply-partially. > ++++ > +** New function 'apply-rpartially'. > +Funcionally equivalent to 'apply-partially' but arguments are aligned > +to the right instead. After we find a good wording for the manual, we should think how to reword the NEWS entry accordingly. Thanks.