bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.24k stars 123 forks source link

In weekly mode, creating new entries sometimes hides most of last week's entries #342

Open drewbenn opened 3 years ago

drewbenn commented 3 years ago

When I create (with C-c C-j) any entry on the first day of the week, and when I create the first entry on the second day of the week, the buffer holding last week's entries hides everything but the last day of the week.

So for example, last week has 5 * entries (Monday through Friday) each with several ** sub-entries. On Monday of this week, every time I did C-c C-j to create a new entry for the current day, last week's buffer would hide everything before '* Friday...' and I would have to M-x revert-buffer to be able to see any of Monday through Thursday. When creating the first entry this week on Tuesday, the same thing happened. For each additional entry on Tuesday, and every entry the rest of the week, there are no changes to last week's buffer.

The relevant lines of my .emacs are: (load "calendar") (setq org-journal-dir "~/journal/") (setq org-journal-file-type 'weekly) (load "~/.emacs.d/org-journal.el") (load "~/.emacs.d/org-journal-tags.el")

org-journal-tags.el is just: (setq org-tag-alist `( ))

I only started using weekly mode 3 weeks ago when I upgraded from org-mode 1.12.4 (which I've been happily using daily for over 3 years, thank you so much for this great tool!) to 2.1.2 to try out weekly mode, and I've encountered this issue every week so far, though this week is the first time where all of this week's and last week's entries were created by org-mode instead of manually converted from daily to weekly (concatenating files and adding :PROPERTIES: drawers for each day) by me.

GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2021-01-30, modified by Debian on Debian 10 (stable) KDE.