[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-journal 4bbe643452 4/6: Add comment describing the use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-journal 4bbe643452 4/6: Add comment describing the use of let to override major-mode value |
Date: |
Fri, 13 Oct 2023 10:01:45 -0400 (EDT) |
branch: elpa/org-journal
commit 4bbe643452a7de2aa3770411c3ad7d1907c4fec3
Author: Dylan Cascio <code@drfiresign.com>
Commit: Dylan Cascio <code@drfiresign.com>
Add comment describing the use of let to override major-mode value
---
org-journal.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/org-journal.el b/org-journal.el
index 207b420990..47383cac1c 100644
--- a/org-journal.el
+++ b/org-journal.el
@@ -467,6 +467,8 @@ before it will be deposed."
(with-current-buffer buf
(unless buffer-exists
(insert-file-contents ,file))
+ ;; Use `let' to change the local value of `major-mode' and
+ ;; avoid `org-mode' directly and incurring a performance penalty.
(setq result (let ((major-mode 'org-mode))
(progn ,@body))))
(unless buffer-exists
- [nongnu] elpa/org-journal updated (18df4d5ae5 -> ac0832f02a), ELPA Syncer, 2023/10/13
- [nongnu] elpa/org-journal ac0832f02a 6/6: Merge pull request #415 from drfiresign/patch-1, ELPA Syncer, 2023/10/13
- [nongnu] elpa/org-journal 4bbe643452 4/6: Add comment describing the use of let to override major-mode value,
ELPA Syncer <=
- [nongnu] elpa/org-journal 7efc5ed148 3/6: indentation update, ELPA Syncer, 2023/10/13
- [nongnu] elpa/org-journal 9e3f0436cb 1/6: Update org-journal.el, ELPA Syncer, 2023/10/13
- [nongnu] elpa/org-journal be005c1f93 5/6: Reword comment for better clarity, ELPA Syncer, 2023/10/13
- [nongnu] elpa/org-journal 0e1dbddb31 2/6: Apply suggestions from code review, ELPA Syncer, 2023/10/13