From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Elisp - Store path only once Date: Sat, 9 Jan 2021 14:07:36 -0800 (PST) Message-ID: <0f6a4349-5603-4f43-b7b5-639a97eca3b7@default> References: <87a6tie5yv.fsf@omarpolo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2843"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 23:08:33 2021 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 1kyMPR-0000fW-EP for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 23:08:33 +0100 Original-Received: from localhost ([::1]:60234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyMPQ-0006YE-FJ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 17:08:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyMOh-0006Y7-91 for help-gnu-emacs@gnu.org; Sat, 09 Jan 2021 17:07:47 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:35986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyMOe-0006uv-PO for help-gnu-emacs@gnu.org; Sat, 09 Jan 2021 17:07:46 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 109LxZDC036106; Sat, 9 Jan 2021 22:07:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=lMFuoPAgLxGgFN9STZc4DvUrydV9fdV4984zojy7TbY=; b=AFEyw7x790oKuAkdZZY8JPzZuBiJe2w1iRMOQE/d5d+u19YfOBCKeL8fWQBHYvzLglhF ZNQ8dtc2KP0mm75o/h4BJyo7g+PLegFVQNVbl2Nx5MpY557BZD39yl0lcNk03sGmtOxb CG1RWoqR2I6FzZEKXddy1fQ2ueys/ufhWoP50kyJ13fsBjv/msDwv3UfWZPhVEZHnpbv VHb2l4EoLS35Xbgh75jdzSgrhG/ezU0oEdihAYONyz65PUMHCDa+8aqTf1YphllagDcs XckCtvnPOw2yG8ETh2ANzEkbYaIdI8vUNzW8H2ZMflnZFI8Rk5+e4ZdcQ1TNSlmJoCWD jQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 35y4ekh7t3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 09 Jan 2021 22:07:38 +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 109M10ZT005151; Sat, 9 Jan 2021 22:07:38 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 35y4a0am2s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 09 Jan 2021 22:07:38 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 109M7b4F015721; Sat, 9 Jan 2021 22:07:37 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9859 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 suspectscore=0 mlxscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101090145 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9859 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 phishscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101090145 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.251, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:127152 Archived-At: > >> >(load 'g-eshell) > >> >(load 'g-utils) > >> (require 'something) > > There are (at least) 3 functions you can use to load a list file: > > `require', `load-library', and `load'. >=20 > Actually `load-library` (just like `load-file`) is not meant to be used > as a function but rather as a command. Both `load-library` and > `load-file` are two commands which give interactive access to the > Lisp-level function `load`. Yes. (But `load-file' at least applies `expand-file-name' for you.)