From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Locating file via load-path Date: Sun, 11 Aug 2024 23:24:09 +0200 Message-ID: References: <868qx6n9ug.fsf@gnu.org> <86zfpml0sq.fsf@gnu.org> <86zfplj5s8.fsf@gnu.org> <86mslji1y9.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="blaine.gmane.org:116.202.254.214"; logging-data="32311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Arash Esbati , Eli Zaretskii , "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 11 23:24:56 2024 Return-path: Envelope-to: geh-help-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 1sdG3b-0008Ay-Js for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 11 Aug 2024 23:24:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdG34-0003uI-MZ; Sun, 11 Aug 2024 17:24:22 -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 1sdG32-0003u9-N5 for help-gnu-emacs@gnu.org; Sun, 11 Aug 2024 17:24:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdG2y-0002Nr-TP; Sun, 11 Aug 2024 17:24:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1723411449; x=1724016249; i=dimech@gmx.com; bh=ZuKxr4CN+k2wkQYNdaNgWh7FBnkP9d4aZUpyzGoPuCw=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=hzO6KCIC5Ug6VRo5Y/01td4TzwN/A6JsV+bi2wUD6DFTf129m1bTkhLrMkHq5SFu RGG/7yCg6O8H74DTo6EDcEbl/Szo3b7ou5bkHGzZ9UBSyZ9ul+UIZTTWFvGxYTqV1 ia3PwvL6DA8gn4cq88KiBTTUJDB0fgjAzYDYICXjfTFebDjpchH6Sjpx0GWMAnOe7 7WQ/GPKAzavPdvbmw5lV+aP5xDZ8Z/nBbFkniuEZBeorqexxLFJ3YHPnNXIv1u7yi e2LT1Aqe+rH912HPwsvFSSfXQFSgy2dLBVDxOmI3493WqDJTDC8SIbkx7MY3x5FWG ilgWt7AfFP4FzaJs8Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [92.251.79.197] ([92.251.79.197]) by web-mail.gmx.net (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sun, 11 Aug 2024 23:24:09 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:r5ZEZzdhp1hYwsF3gVQ31+t1PtP0yG6gMTlmh2hKExQjw/GabIQ6Be2/k4/6yN6k5JMDa Y2XZI/MJWn0NxHqPIYUjWshE/+qQ/PZwOPpNBVIau4XNNMf1gJh7Z/4/uZx3sMvs8UwZbsty1N54 7Zr+Jv8BLL+C2SEOJOdCKr99zojCNyv5sBZbaNmGAXgY0d5t+U1J6eYnKh3bHcU8P12NzwUd9rfn HA8Xo99dyzR6LCkxUovlcm9XYNAfL7SRqPN4YkI0uq12Avp/EM8cdZeLCG+0mwRC3A4FfKzant+i LQ= UI-OutboundReport: notjunk:1;M01:P0:IbDDPjCpDD0=;O8iRxZLz9NJpPgZL192cx1WT0kS TDjJWnDyTzh6hR01OO5cjggbagCB1NzMxP23R7wxX/EIpqqE4XFQaPZrhySAyoo24kNF3iGDY Cx69IsfLt7sMjz67pmn0uFjdSCyKxTpxOSuwor/ZrQcpG0NnLj+07BWYbYaylxHDNOJoz6veQ RU0quZFY7C9arYvb7Sv0M8uXguMXo9H+m+G+3cO9WtGQWRgPaJb3fS5LUxOZacT5r4JgOJmRt 3QPI2DaOwDe69z4KVPnDQslJXzqgxEvsyU8ZTgZjcibMeWQVnKurr2+5tD31cPahHD7hii96C rohS/+fcxnhDlCcaex7T8ZgrMGIybJ0R8p9ATL88zPMygNzkISmJiNNP5l7vtPU6+IHKish7z y/ns960JCGprgp/I1i0bCwh4RJvPCLps5NDujoRj2yjD9gbenkvfpV3kRv31JvLksqAqAj6jc hWsjhiCuXCdzrTCMBsXHYPRzVA4AjUT+alvGoc8avNd955bHudI6XP4pqvymPyIaPrpUNDOu3 JNwaAGlns7lpQIlkECib1VDx/jn6ghaxlIMVTjUKz1vJwBkPHYh/QrLGILhsAfCrIwstAgz8k 3GkvkWYtnFg0lzYk/ThxSfWdxA1Gy2qm/SClV38IHrbSL3LBRNM2uLCDNjGXf4mp4qHAiEyxM UBPEqprt+z+jQ4T4S2gcFsyU0jcs4YCfci3ZGLqWCA== Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147616 Archived-At: > Sent: Monday, August 12, 2024 at 9:07 AM > From: "Drew Adams" > To: "Arash Esbati" , "Eli Zaretskii" > Cc: "help-gnu-emacs@gnu.org" > Subject: RE: [External] : Re: Locating file via load-path > > > > Why not nconc? > > > > The use case I have to deal with runs inside hooks which run more than > > once, and I don't want to pollute the target variable with same entry > > over and over again. > > > > Of course I can check if the entry is already there, but I think it > > would be convenient if `cl-pushnew' could be a full replacement for > > `add-to-list' and one would use only the former in Lisp and be done wi= th > > it. > > It would be OK for Emacs to have such a function, > but it shouldn't be called `cl-pushnew'. > > That name should be reserved for our emulation of > the Common Lisp function `pushnew'. `cl-pushnew' > shouldn't do anything different from what CL's > `pushnew' does. > > Just one opinion. A agree with it. A good set that are always recommended would be a great improvement and no guesswork would be required on which ones are to be used. There could also be some special ones if properly named.