-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handle org-clock-marker properly #21
Conversation
Thanks for reporting this problem and submitting this PR. I agree we should fix this problem, but I am hesitant to add such a specific accommodation for org-mode -- I would prefer a more general solution. It seems like the underlying issue is that all markers get destroyed by If specific accommodations for org-mode are absolutely required, I think it would be better to create a second file, Could you comment on the specific parts of |
Hi! Basically, I agree with your idea that keep the core module as simple as possible. So providing an additional file to fix some issues on specific package. Here is a demo that shows the original implementation breaks Explanation:
According to my analysis, the breaking is happened, I mean |
I've filed an issue for the more general problem of markers: #22 I think fixing the general problem of markers more broadly will require some major changes, possibly even a redesign. It may be some time before it's solved. So, I think it is a good idea to start a second module for various workarounds/integrations, and refactor the core module as needed to make these workarounds possible (e.g. by adding more hooks). |
That's sound good! I can help anything on upgrading this nice package, so feel free to assign any tasks to me :) I'll also retrieve a good and generic solution for handling markers. It's up to you to close this PR or not. Until the integration of a second module, I can use my private repository for my daily base activities in Emacs with a combination of |
Hi.
This PR will support remaining
org-clock-marker
properly. The original implementation will loose the marker position oforg-clock-marker
whencopy-to-buffer
inundo-propose-commit
andundo-propose-squash-commit
if the original buffer has an active clock. It causes a breaking oforg-clock
.So I added a new private and buffer local variable
undo-propose--org-clock-marker
. The workflow to keeporg-clock
is built as follow:undo-propose
command, check the original buffer isorg
and having an active clock.undo-propose-commit
orundo-propose-squash-commit
, move the position oforg-clock-marker
to the right position that is recorded inundo-propose--org-clock-marker
.Best,
Takaaki