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

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

[nongnu] elpa/org-journal ceed76f0de 1/2: fix to check journal files in


From: ELPA Syncer
Subject: [nongnu] elpa/org-journal ceed76f0de 1/2: fix to check journal files in symlink directory correctly
Date: Fri, 24 Feb 2023 11:00:39 -0500 (EST)

branch: elpa/org-journal
commit ceed76f0de5d9dd658337d4232e000dcc8bd5e0d
Author: Tomoyuki Murakami <tomoyukim@outlook.com>
Commit: Tomoyuki Murakami <tomoyukim@outlook.com>

    fix to check journal files in symlink directory correctly
---
 org-journal.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-journal.el b/org-journal.el
index f175439c54..720e46181f 100644
--- a/org-journal.el
+++ b/org-journal.el
@@ -482,7 +482,7 @@ before it will be deposed."
 (defun org-journal-is-journal ()
   "Determine if file is a journal file."
   (and (buffer-file-name)
-       (string-match (org-journal--dir-and-file-format->pattern) 
(buffer-file-name))))
+       (string-match (org-journal--dir-and-file-format->pattern) 
(file-truename (buffer-file-name)))))
 
 ;; Open files in `org-journal-mode' if `org-journal-is-journal' returns true.
 (add-to-list 'magic-mode-alist '(org-journal-is-journal . org-journal-mode))



reply via email to

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