From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daanturo Newsgroups: gmane.emacs.bugs Subject: bug#49316: Add apply-partially's right version Date: Fri, 2 Jul 2021 23:32:25 +0700 Message-ID: <67d42829-b223-198b-3d46-c2705a7bbfc2@gmail.com> References: <2315db79-00cf-b2f0-b5df-93cd53392292@gmail.com> <87czs2faas.fsf@tcd.ie> <834kddlvpg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------BA23B12AC3991520B2AB21BF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15814"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 To: 49316@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 02 18:33:25 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 1lzM6W-0003yO-4j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 18:33:24 +0200 Original-Received: from localhost ([::1]:47204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzM6U-0000gc-VJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jul 2021 12:33:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzM6A-0000gN-7g for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 12:33:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzM6A-0007R3-0U for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzM69-0007IK-NG for bug-gnu-emacs@gnu.org; Fri, 02 Jul 2021 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: daanturo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jul 2021 16:33:01 +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.162524355728004 (code B ref 49316); Fri, 02 Jul 2021 16:33:01 +0000 Original-Received: (at 49316) by debbugs.gnu.org; 2 Jul 2021 16:32:37 +0000 Original-Received: from localhost ([127.0.0.1]:36991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzM5k-0007Ha-Is for submit@debbugs.gnu.org; Fri, 02 Jul 2021 12:32:36 -0400 Original-Received: from mail-pf1-f175.google.com ([209.85.210.175]:34549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzM5i-0007HM-I2 for 49316@debbugs.gnu.org; Fri, 02 Jul 2021 12:32:35 -0400 Original-Received: by mail-pf1-f175.google.com with SMTP id f20so1477983pfa.1 for <49316@debbugs.gnu.org>; Fri, 02 Jul 2021 09:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=8CkrC9+Z1vdLcPhZIBhEFS6eJRvHaytg9Er88Aszegw=; b=I+Ui5GghMneUXuhSyzt+8nHMVRjgtgge4rW+U0DB89xINYHGKczv9H1pEA9n2H8Xnn A7iDtVAIB47uYqmuOMfmqey4XvIjuIImJ88skF4K462EALuT9L9mcy/yg7bGTtOxX5cj g5CsZc4d9A/O7KP/OQlvxIsvUMBaYJxK0s7h2fJ3tr1Cs0NKcm+gXv6D+7hmzkRYz0iw 7x/k64ZfjK+rxT+tnLGxygxpHk6juzj0+2CGLfEGXI3tQW0iNbOat3WSsjiNpOiY+uNP 7OYt9OLm/WoOvcKr12F04jxc4opvBlKSiYZJpVuBG/NkttPhJociLhU4ose7NUHoXPGw AqBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=8CkrC9+Z1vdLcPhZIBhEFS6eJRvHaytg9Er88Aszegw=; b=Xi0Prl2RZRFuEHqMKVCiuPY7gPTgXcNEOerdxIYgRzFaqqVHBAQsidmyrJPpQ5Jnwd 7iyt+5AsvffjECU9RAU0RWaMB2sJNERjS0rSCJ7rBpESSTou3D1LWexCfIeuQtD7DDTj fuL5AOB+mR0F1QDDFpWQECOC+cZ1oaeLm1sZkScyzReN4S0JZ+xTi/JGknjMceC0B1w7 WnE1qvD0d9BW++MLsbDTJLk8KlH1heGc6G9EYFBhXO/4SjAyRj2J5dCJ2Hvwh8BJxDmv eUwdWuuSxjJiFCx+ELVHIeSdi8PIKEtRBna5XkyFS6f8XaUpKDStkdkhJm5lrPYRmjVf fvOQ== X-Gm-Message-State: AOAM531KEjmigbtgOmdzK9ovurV6Dir9YXLkIYGH6gKhSkwhrMRHryBx Df46u5DXmcFRU5BpA3SiRXT2bNtdtRiC7Q== X-Google-Smtp-Source: ABdhPJzhSQyOqnd6+zB7HmwY78Mfsn+cvtah8bzqQheNCLc7Z2TNMFDDAoCH/pIYOVRVlsYUSc/XOw== X-Received: by 2002:a63:f65:: with SMTP id 37mr786428pgp.367.1625243548618; Fri, 02 Jul 2021 09:32:28 -0700 (PDT) Original-Received: from ?IPv6:2402:800:630f:53b:ee3a:5256:1634:1e03? ([2402:800:630f:53b:ee3a:5256:1634:1e03]) by smtp.gmail.com with ESMTPSA id 20sm3981441pfi.170.2021.07.02.09.32.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jul 2021 09:32:28 -0700 (PDT) In-Reply-To: <834kddlvpg.fsf@gnu.org> Content-Language: en-US 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:209332 Archived-At: This is a multi-part message in MIME format. --------------BA23B12AC3991520B2AB21BF Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit --=-=-= Content-Type: text/plain Tags: patch Re-write the NEWS entry of apply-rpartially. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0005-Better-explanation-for-apply-rpartially-in-NEWS.patch From 339b0ed82dbc0430ce71294f04a53547f532c1af Mon Sep 17 00:00:00 2001 From: Daanturo Date: Fri, 2 Jul 2021 23:24:37 +0700 Subject: [PATCH] Better explanation for apply-rpartially in NEWS * etc/NEWS (Lisp Changes in Emacs 28.1): Better explanation for apply-rpartially --- etc/NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index be30d6c859..a06456035c 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2911,8 +2911,8 @@ The former is now declared obsolete. +++ ** New function 'apply-rpartially'. -Functionally equivalent to 'apply-partially' but arguments are aligned -to the right instead. +This is almost similar to 'apply-partially' except that the last +arguments are fixed instead of first ones. +++ ** New function 'syntax-class-to-char'. -- 2.32.0 --=-=-=-- On 7/2/21 1:45 AM, Eli Zaretskii wrote: >> 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. -- Daanturo. --------------BA23B12AC3991520B2AB21BF Content-Type: text/x-patch; charset=UTF-8; name="0005-Better-explanation-for-apply-rpartially-in-NEWS.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0005-Better-explanation-for-apply-rpartially-in-NEWS.patch" >From 339b0ed82dbc0430ce71294f04a53547f532c1af Mon Sep 17 00:00:00 2001 From: Daanturo Date: Fri, 2 Jul 2021 23:24:37 +0700 Subject: [PATCH] Better explanation for apply-rpartially in NEWS * etc/NEWS (Lisp Changes in Emacs 28.1): Better explanation for apply-rpartially --- etc/NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index be30d6c859..a06456035c 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2911,8 +2911,8 @@ The former is now declared obsolete. +++ ** New function 'apply-rpartially'. -Functionally equivalent to 'apply-partially' but arguments are aligned -to the right instead. +This is almost similar to 'apply-partially' except that the last +arguments are fixed instead of first ones. +++ ** New function 'syntax-class-to-char'. -- 2.32.0 --------------BA23B12AC3991520B2AB21BF--