all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: daanturo <daanturo@gmail.com>
Cc: 56260@debbugs.gnu.org
Subject: bug#56260: 29.0.50; Provide a way to define shortdoc groups without loading shortdoc.el
Date: Tue, 28 Jun 2022 14:42:31 +0200	[thread overview]
Message-ID: <87ilolq7rc.fsf@gnus.org> (raw)
In-Reply-To: <13719b8d-abd9-810b-6e72-f95bc2288498@gmail.com> (daanturo@gmail.com's message of "Mon, 27 Jun 2022 22:06:29 +0700")

daanturo <daanturo@gmail.com> writes:

> Currently to use `define-short-documentation-group`, we must first load
> `shortdoc.el`, but loading it isn't exactly a cheap task: my startup is
> slowed down by ~0.0186s.
>
> We can achieve this with an autoloaded progn:
>
> ```elisp
>
> ;; Allow registering shortdoc groups without loading this file

I've now done this in Emacs 29.  An alternative approach would be to
move all the definitions of groups out of shortdoc.el into a different
file so that loading shortdoc.el would be fast.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-06-28 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 15:06 bug#56260: 29.0.50; Provide a way to define shortdoc groups without loading shortdoc.el daanturo
2022-06-28 12:42 ` Lars Ingebrigtsen [this message]
2022-06-28 13:20   ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=87ilolq7rc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=56260@debbugs.gnu.org \
    --cc=daanturo@gmail.com \
    /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.