emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/org-journal 0e1dbddb31 2/6: Apply suggestions from code re


From: ELPA Syncer
Subject: [nongnu] elpa/org-journal 0e1dbddb31 2/6: Apply suggestions from code review
Date: Fri, 13 Oct 2023 10:01:43 -0400 (EDT)

branch: elpa/org-journal
commit 0e1dbddb312066ae8ff0de34025f8f5f220a468f
Author: Dylan Cascio <dcascio73@gmail.com>
Commit: GitHub <noreply@github.com>

    Apply suggestions from code review
    
    Co-authored-by: zhyzky <zhyzky@users.noreply.github.com>
---
 org-journal.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/org-journal.el b/org-journal.el
index d8ae419ccb..430c5734b2 100644
--- a/org-journal.el
+++ b/org-journal.el
@@ -465,10 +465,10 @@ before it will be deposed."
                  (generate-new-buffer (file-name-nondirectory ,file))))
           result)
      (with-current-buffer buf
-       (let ((major-mode 'org-mode))
          (unless buffer-exists
            (insert-file-contents ,file))
-         (setq result (progn ,@body))))
+         (setq result (let ((major-mode 'org-mode))
+                             (progn ,@body))))
      (unless buffer-exists
        (kill-buffer buf))
      result))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]