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.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Tue, 31 Oct 2023 05:27:43 +0200 Message-ID: <83r0lba2ts.fsf@gnu.org> References: <46ab3c7d-d820-4bb4-8ec4-97c614d7c8a0@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11215"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org, stefankangas@gmail.com To: Adam Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 31 04:28:55 2023 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 1qxfR1-0002jj-4J for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Oct 2023 04:28:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxfQE-0004lO-Ga; Mon, 30 Oct 2023 23:28:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxfQC-0004lF-2n for emacs-devel@gnu.org; Mon, 30 Oct 2023 23:28:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxfQB-0007Ax-M9; Mon, 30 Oct 2023 23:28:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=YL/p61B0N4kfHKeXQqW3CyDA8O9tXN9DJp+nsTG/d5k=; b=eMUz1JgsztooNMaut4Ot DQ7h5GMGwUnMXZTBBb1wRMBGtRv1zc1kH6UP/OVbUAiqaOqDBAeJJIywrUREdmPxF9EjzwfL4LGkD yyfyRNZ6PA47aqPpC0xsEjF9psJ4AXkkVGOFCEc8g0AGYWONM/HXIGB9SpHko4+J+3F11exNqdTf8 A6W3MoUB+W+KT5EU/9ZN9CRu8zzpThsUOjBh4Zfuv+E+nBIZRWxyWWyYCKCYEv+CKeAqn/X/Grpqx 0FLIQx82Uws2n+UTybd2TmF9ynSG8/l8G1ctc7B2I/4V+O1m6Cue5JfqleCDESGPB5EAC0H7dw50t nzT/ijifjXmQGA==; In-Reply-To: <46ab3c7d-d820-4bb4-8ec4-97c614d7c8a0@alphapapa.net> (message from Adam Porter on Mon, 30 Oct 2023 21:31:41 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312008 Archived-At: > Date: Mon, 30 Oct 2023 21:31:41 -0500 > Cc: emacs-devel@gnu.org, stefankangas@gmail.com > From: Adam Porter > > By the way, with regard to CL-PUSHNEW, it seems surprising that no one's > mentioned the existing counterpart in "core" Elisp, ADD-TO-LIST. > Notably, its docstring says: > > This is handy to add some elements to configuration variables, > but please do not abuse it in Elisp code, where you are usually > better off using ‘push’ or ‘cl-pushnew’. > > So even "core", non-cl-lib Elisp recommends the use of some cl-lib > functions, i.e. CL-PUSHNEW. That certainly suggests a "gap" in core > Elisp functionality. This kind of remarks in Emacs doc strings are never about "gaps" of any kind, they are about cleaner coding practices.