all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: chad <yandros@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Clément Pit-Claudel" <cpitclaudel@gmail.com>,
	"EMACS development team" <emacs-devel@gnu.org>
Subject: Re: interactive feel of Emacs: the need for speed, and -Q [measure.el]
Date: Thu, 23 Apr 2020 16:35:16 -0700	[thread overview]
Message-ID: <CAO2hHWb8Shw-y+T9RcfNk20L3MPUDJ-Mm=+1g89O=ZhNi_xM7A@mail.gmail.com> (raw)
In-Reply-To: <jwvsggtsz28.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1381 bytes --]

I'm loading code that I wrote, because I don't maintain my emacs
configuration as a single big pile of elisp used on every system (I grew up
in a very heterogenous environment at MIT). The code is safe to load
multiple times; I avoid doing so to avoid the overhead, and because in a
more complicated past there were include-loops to avoid. At some point in
the middle, I built myself a pair of functions enable-quiet/disable-quiet
to handle this sort of thing; it sounds like maybe I should dust that off
again. FWIW, I wonder if anyone here would recommend building it around
load-file or require, and why.

Thanks!
~Chad

On Thu, Apr 23, 2020 at 1:57 PM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> > 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
>
>

[-- Attachment #2: Type: text/html, Size: 1826 bytes --]

  reply	other threads:[~2020-04-23 23:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  5:00 interactive feel of Emacs: the need for speed, and -Q [measure.el] Emanuel Berg via Users list for the GNU Emacs text editor
2020-03-30 15:32 ` Drew Adams
2020-04-07 16:25   ` Emanuel Berg via Emacs development discussions.
2020-04-07 16:49     ` Michael Welsh Duggan
2020-04-08  5:51       ` Emanuel Berg via Emacs development discussions.
2020-04-08 14:17         ` Michael Welsh Duggan
2020-04-12  1:16           ` Emanuel Berg via Emacs development discussions.
2020-04-12  2:51             ` Michael Welsh Duggan
2020-04-14 23:00               ` Emanuel Berg via Emacs development discussions.
2020-04-15  1:34                 ` T.V Raman
2020-04-15  2:21                   ` Emanuel Berg via Emacs development discussions.
2020-04-15 14:51                     ` T.V Raman
2020-04-15 15:43             ` Basil L. Contovounesios
2020-04-15 16:06               ` Stefan Monnier
2020-04-16 19:14                 ` Stephen Leake
2020-04-16 19:59                   ` Clément Pit-Claudel
2020-04-16 20:14                     ` Stefan Monnier
2020-04-23 20:05                       ` chad
2020-04-23 20:43                         ` Stephen Leake
2020-04-23 20:57                         ` Stefan Monnier
2020-04-23 23:35                           ` chad [this message]
2020-04-24  3:28                             ` Stefan Monnier
2020-04-17  8:48                     ` Stephen Leake
2020-04-16 20:04                   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO2hHWb8Shw-y+T9RcfNk20L3MPUDJ-Mm=+1g89O=ZhNi_xM7A@mail.gmail.com' \
    --to=yandros@gmail.com \
    --cc=cpitclaudel@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.