From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: Locating file via load-path Date: Fri, 09 Aug 2024 21:52:24 +0200 Message-ID: References: <868qx6n9ug.fsf@gnu.org> <86zfpml0sq.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="26511"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 09 21:52:59 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 1scVfW-0006l4-TJ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 09 Aug 2024 21:52:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scVf3-0006K4-NA; Fri, 09 Aug 2024 15:52:29 -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 1scVf2-0006Ju-FT for help-gnu-emacs@gnu.org; Fri, 09 Aug 2024 15:52:28 -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 1scVf2-000423-7Y for help-gnu-emacs@gnu.org; Fri, 09 Aug 2024 15:52:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=A6rabwBCmmuIAA7yPmTFXMOeQ51I3lacNPUuR0B8Yb4=; b=L68OFAW2YzNI6EmoPEQF XKG3/H3oF5ykczKovEUMwSIJmo+9m8ScrWMpHT/AFxG4Nhz2HJqmFl0s+GLSso/QpC6za9bQ04qJN sDcQGCcmZrPte0NERZW03YHUv/Kl9ome90bl1ktqKBhH+tQAgI/t+m3wGPHbaxmKEQ1os/kOM3jiF DXVkCmb9dvkZivOuw0pzh3eaB/D89FWag+1tQ9P1U73vmKdwV3wXWhM3wRRHnBsLmxID/jHOwLR0V 1FUdqnbI9fhq08+f69DXvIKAHqx7L8R5tbChaAMneDSuVbu61R0NH4Z9B8zA5DgA8pw392Ej5Kvpi Kb07cU/f0oYzrg==; In-Reply-To: <86zfpml0sq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Aug 2024 08:31:33 +0300") 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:147576 Archived-At: Eli Zaretskii writes: > 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 =E2=80=98push=E2=80=99 or =E2=80=98cl-pushnew=E2=80=99. > > IOW, don't (ab)use add-to-list if all you need is to add a new element > to some list of elements. Maybe off-topic, but I always missed the APPEND arg provided by `add-to-list' in `cl-pushnew'. Best, Arash