[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit e147f05577 61/76: eval-after-load: replace string fe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit e147f05577 61/76: eval-after-load: replace string feature w/ symbol |
Date: |
Thu, 13 Jan 2022 13:58:47 -0500 (EST) |
branch: elpa/orgit
commit e147f055772cc934fe1f1d8619059badeb647c93
Author: Henrik Lissner <henrik@lissner.net>
Commit: Henrik Lissner <henrik@lissner.net>
eval-after-load: replace string feature w/ symbol
TL;DR Given (eval-after-load FILE FORM), eval-after-load is less
efficient if FILE is a string than when it's a symbol.
When FILE is a string, eval-after-load creates a regexp entry in
after-load-alist that Emacs uses to scan the path of *every* file it
loads, and continues to do so after FILE is loaded.
When FILE is a symbol, you avoid this polling behavior. Instead, there
is no such aggressive lookup behavior. FORM isn't evaluated until
a (provide 'FILE) is evaluated in the target package.
---
orgit.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/orgit.el b/orgit.el
index d843aaf0da..ad9e0f1730 100644
--- a/orgit.el
+++ b/orgit.el
@@ -217,7 +217,7 @@ then store a link to the commit itself."
;;; Command
;;;###autoload
-(eval-after-load "magit"
+(eval-after-load 'magit
'(define-key magit-mode-map [remap org-store-link] 'orgit-store-link))
;;;###autoload
@@ -237,7 +237,7 @@ then store a link to the commit itself."
;;; Status
;;;###autoload
-(eval-after-load "org"
+(eval-after-load 'org
'(orgit-link-set-parameters "orgit"
:store 'orgit-status-store
:follow 'orgit-status-open
@@ -272,7 +272,7 @@ In that case `orgit-rev-store' stores one or more links
instead."
;;; Log
;;;###autoload
-(eval-after-load "org"
+(eval-after-load 'org
'(orgit-link-set-parameters "orgit-log"
:store 'orgit-log-store
:follow 'orgit-log-open
@@ -327,7 +327,7 @@ In that case `orgit-rev-store' stores one or more links
instead."
;;; Revision
;;;###autoload
-(eval-after-load "org"
+(eval-after-load 'org
'(orgit-link-set-parameters "orgit-rev"
:store 'orgit-rev-store
:follow 'orgit-rev-open
- [nongnu] elpa/orgit 976f3c7d25 32/76: Support storing link(s) to selected commit(s), (continued)
- [nongnu] elpa/orgit 976f3c7d25 32/76: Support storing link(s) to selected commit(s), ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 692256bac9 33/76: Add Makefile, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit d909f92d3b 35/76: Bump copyright years, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ea79e0567a 39/76: orgit-export-alist: Update kernel.org entry, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ddb830c38c 43/76: make: Add new indirect dependencies, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 8a65bd2750 42/76: Favor pcase and subr-x over dash, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit a2d3937040 49/76: Adapt to changes in Magit, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e23c7a6776 46/76: orgit--repository-directory: Error on non-existent directory, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 9598d71682 55/76: Revert "Add .github/FUNDING.yml", ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit c110371202 57/76: orgit--repository-directory: Support relative paths again, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e147f05577 61/76: eval-after-load: replace string feature w/ symbol,
ELPA Syncer <=
- [nongnu] elpa/orgit 229a2ae37a 65/76: orgit-export-alist: Add git.sr.ht entry, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 6a22c2e459 06/76: orgit-log-store: use branch name, not HEAD, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit efde657483 10/76: magit-log-export: use correct variable, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 455dac3422 15/76: orgit-export-alist: add gitlab and remove gitorious, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 2330a8cdb5 20/76: orgit-log-store: remove old kludges and todos, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 718343d40d 22/76: orgit-{log, rev}-open: use -let, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit adcfef22dc 28/76: add README.md, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit d91d16903d 27/76: support relative paths when opening and exporting links, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit c91e662ace 30/76: Add completion functions, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 022687eb02 31/76: Move note about org-magit.el to help elx-license, ELPA Syncer, 2022/01/13