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 13:05:43 -0700 [thread overview]
Message-ID: <CAO2hHWb9+QGsTcOwgSGNp0j8GWzAht=AJ0vNWvW_VX4AagJ=Sw@mail.gmail.com> (raw)
In-Reply-To: <jwvh7xjchxv.fsf-monnier+emacs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1373 bytes --]
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? (Please forgive the thread
necromancy; I just ran across this usage of require again today, and
remembered this thread.)
Thanks,
~Chad
On Thu, Apr 16, 2020 at 1:14 PM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
> >>>>> Here are my requires:
> >>> As a general rule, `require` should not appear in a `~/.emacs`.
> >>> It's for use at the top of a library file.
> > What's the replacement, then?
> >> They should be replaced with the relevant (load-file "...autoloads").
> > That doesn't do the same thing at all. What if you want to use functions
> > that are not autoloaded, or macros?
>
> In your ~/.emacs?
>
> Presumably if users can be expected to use a function/macro directly
> from ~/.emacs, the package should mark that function/macro as autoloaded
> (especially for macros; for functions this can often be avoided if the
> function is expected to be called only from with the corresponding mode
> hook or an `eval-after-load`).
>
> If not, it's a case that doesn't fall within the "general rule" and then
> you'd have to consider the details to know what *should* happen and what
> can be done temporarily until the ideal situation can be applied.
>
>
> Stefan
>
>
>
[-- Attachment #2: Type: text/html, Size: 1879 bytes --]
next prev parent reply other threads:[~2020-04-23 20:05 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 [this message]
2020-04-23 20:43 ` Stephen Leake
2020-04-23 20:57 ` Stefan Monnier
2020-04-23 23:35 ` chad
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='CAO2hHWb9+QGsTcOwgSGNp0j8GWzAht=AJ0vNWvW_VX4AagJ=Sw@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.