From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: interactive feel of Emacs: the need for speed, and -Q [measure.el] Date: Thu, 23 Apr 2020 16:57:31 -0400 Message-ID: References: <87tv26qvwh.fsf@ebih.ebihd> <87mu7njm9h.fsf@ebih.ebihd> <87h7xv44xr.fsf@md5i.com> <875zeasexm.fsf@ebih.ebihd> <87d08i3vvk.fsf@md5i.com> <87h7xph5a4.fsf@ebih.ebihd> <87sgh4ah4x.fsf@tcd.ie> <86imhzgs5f.fsf@stephe-leake.org> <2c7cfff7-240f-6444-9a79-b5c36b381272@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41160"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?windows-1252?Q?Cl=E9ment?= Pit-Claudel , EMACS development team To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 23 22:58:14 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 1jRivF-000Ac0-NM for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Apr 2020 22:58:13 +0200 Original-Received: from localhost ([::1]:41818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRivE-00039j-OS for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Apr 2020 16:58:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36088) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRiug-0002bs-L6 for emacs-devel@gnu.org; Thu, 23 Apr 2020 16:57:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRiue-0006U9-7W for emacs-devel@gnu.org; Thu, 23 Apr 2020 16:57:37 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRiud-0006Td-RW for emacs-devel@gnu.org; Thu, 23 Apr 2020 16:57:35 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D0A25100F40; Thu, 23 Apr 2020 16:57:34 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EE898100B4F; Thu, 23 Apr 2020 16:57:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1587675452; bh=4rz5PJQW0Kyh3DSeMKSuQ9N7Mcln0c/mYcCpRE3BFWw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YxF1xiuDphLGG5NxV3vIcMkawqHtraBhXhEukGkqBSJCOlGfn3uFIS3VHYtKHl5at ItcedVjo+hgJQLtHVBi0N0nwVxWDG7YqxILXXJroZkZuLO978xVBV3ykM08crQH07g G+AWBz2kVsCXj4/yLQFpCPJxNqpE5/6Tu3ECW2YOoRXoAGDsSC04U9iiuPseJIb6Qq ld1ZhPn7A3d7FTPVhe6GAFXZQ3JKUIkiflXDSPtCaOBR7xcd2FW4JF141DIOuOVrSV Y8YZIyCNqAsAx5l/S56sZdHeiJUAp7ADUQyM3lMlKw2nybuFH1a6omWP01u55aUwp/ zwWae9udBmclw== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 91673120284; Thu, 23 Apr 2020 16:57:32 -0400 (EDT) In-Reply-To: (chad's message of "Thu, 23 Apr 2020 13:05:43 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/23 16:03:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:247634 Archived-At: > I long ago adopted the use of require in my .emacs file as a well-worn > shorthand for "load this unless it's already loaded". Is there an > alternative that I should be using instead? If what you want is "load this unless it's already loaded", then `require` is the answer. But the code in ~/.emacs should not about about "loading" it should be about enabling/disabling: loading a file (other than the init file, that is) should never noticeably affect Emacs's behavior, so "loading" should be of no concern when writing your config file (unless you're concerned about pre-loading a package for performance reasons, maybe). Stefan