From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [ELPA] New package: transient Date: Sat, 2 May 2020 10:33:12 -0700 (PDT) Message-ID: References: <87368npxw4.fsf@bernoul.li> <87v9ljo5d0.fsf@bernoul.li> <87ftcnxu5m.fsf@bernoul.li> <83y2qezlpd.fsf@gnu.org> <83tv12zjx1.fsf@gnu.org> <20200429101755.GF24737@tuxteam.de> <838sicw4do.fsf@gnu.org> <83zhaqu89z.fsf@gnu.org> <83sggiu2p9.fsf@gnu.org> <83r1w2u20y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="23957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: tomas@tuxteam.de, Richard Stallman , Emacs developers To: Philippe Vaucher , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 19:35:56 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jUw3Q-00069C-3O for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 19:35:56 +0200 Original-Received: from localhost ([::1]:52548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUw3P-00072r-6l for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 13:35:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUw2t-0006RT-W5 for emacs-devel@gnu.org; Sat, 02 May 2020 13:35:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUw2t-00032C-B7 for emacs-devel@gnu.org; Sat, 02 May 2020 13:35:23 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:38446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUw2r-0002xf-MS; Sat, 02 May 2020 13:35:21 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042HZBZn059640; Sat, 2 May 2020 17:35:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=ESBwgMW6zKEftIKjLBNCFQ25V3L+jvgq90vXwprVbIc=; b=W+G7Sei8+JfKY39dE3UPE+Tj4DthJX2vNrKG80ATPeY7/pB+9hOwhbm630UoDRBGewM8 CipA3ynX3yXn1e/Ng7UDUxYLpHRuK5kHq59L7LcqX+k3q62GDZNYJy43K2CBQ9s0cghO qT9j6woAb3bf3rVN1Iw+6qr3/CDAo2dMNRPHrCfskV4kWegsbDAXjqRDC6QfZGBiBeTE ljsgJ6vSxscUzM/fLkR6nEQNo4jvKag6LltW7S6ELKstXqrwW3/T+sx44Hu/GAE0UE2k kaZuBpzM7s7vMoZi/3/XDjqXtf30dT09mFB2ka792vrvXqS0C6A44Xe+hwFhXJvp8CRx Nw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 30s09qsma2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 17:35:15 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 042HX61l121017; Sat, 2 May 2020 17:33:14 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 30s913edaq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 02 May 2020 17:33:14 +0000 Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 042HXDOO014926; Sat, 2 May 2020 17:33:13 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=842 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020155 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9609 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=877 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005020155 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/02 12:51:55 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248511 Archived-At: > My original use case is: I want to copy an association list, > I know the function will probably have "copy" in its name > and "alist", Maybe, maybe not. Yep, there's a function named `copy-alist'. A win. But in general the function you want might have "copy" and something more general than "alist" in its name. What's an alist? It's a list. What's a (true) list? It's a sequence. `copy-sequence' (aka `copy-seq') also copies an alist. So yeah, it's sometimes about things, not just their names. If `copy-alist' didn't exist, then no reasonable naming scheme would have gotten you there. You'd have to have some understanding that an alist is a list is a sequence. And _then_, sure, good naming can help. And in this case, just `C-h f copy TAB' gives you a list of 41 function names, and it's pretty easy to see find `copy-alist', `copy-sequence', and `copy-seq'. (If it weren't easy, it would at least be easy to match others and remove those other matches, assuming you have a way to do that.)