Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support emacs 29.1 #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

0robustus1
Copy link

It seems that the values in org-time-stamp-formats no longer contain the < and > markers in emacs-29.1.
This leads to the functionality of org-clock-split not working as values that were expected to be inactive timestamps no longer are.

This changes the default value for the org-clock-split-inactive-timestamp-hm variable to once again include the inactive markers.
I also performed a few changes on the tests to work in both emacs-28.2 and emacs-29.1.

In emacs 29.1 format-time-string no longer wraps time strings
in their corresponding square brackets ("[", "]"). This breaks
org-clock-split in its current form.
This adds a function that provides a proper inactive time string, with the
wrapped square brackets if it does not yet have them (meaning it'll support both
emacs 28 and 29+).

Also removes one superfluous test that is already handled in the larger
duplicated org-clock-split-split-line-test.
In emacs-29.1 timestamps with incorrect day names will be automatically updated
as part of the timestamp formatting functions, this revealed the test cases
where the selected day was incorrect (2019-12-17 was a Tuesday not a Wednesday).
This updates both the expected values and the source values of the test
cases (source values are updated because the tests would otherwise fail on emacs-28.2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant