Giter Site home page Giter Site logo

Comments (8)

telotortium avatar telotortium commented on August 27, 2024

The current behavior is that, when an event is deleted on the server, it has no effect on the org file. org-gcal-fetch will retrieve events not currently in any Org file reachable via org-id-goto and update any events that have already been retrieved, but won't delete events deleted on the server from the org file. You can manually delete the Org headlines corresponding to deleted events.

Perhaps it would be worth modifying org-gcal-sync-buffer to prompt to delete headlines with deleted events.

from org-gcal.el.

TobyHFerguson avatar TobyHFerguson commented on August 27, 2024

I cannot confirm the original post. I just tried it with a repeating event which I setup in Google and then synched to my calendar file. When I deleted one of the events in Google calendar and then executed org-gcal-sync the corresponding headline was deleted from my calendar file and from my agenda (after a manual refresh).

from org-gcal.el.

telotortium avatar telotortium commented on August 27, 2024

Hi @TobyHFerguson, are you using the most up-to-date version? I believe the behavior you observed is what would be expected before #34, but the current behavior is what @chughtapan observed.

from org-gcal.el.

jackkamm avatar jackkamm commented on August 27, 2024

Is there an option to revert to the old behavior of deleting events that have been removed from the server?

I use org-gcal to fetch a shared calendar, and it's a hassle for me to manually delete events that my coworkers have modified or removed.

Ever since I updated my version of org-gcal, my org-agenda calendar is now filled with duplicate and old events.

from org-gcal.el.

podiki avatar podiki commented on August 27, 2024

Agree with above, this should be a configurable option (how to handle events deleted from server). Especially with Google Calendar being something often modified on e.g. a phone, this would help keep things straight. As of right now I'm only trying to use emacs to display the calendar, so my modifications are made on the web or via mobile and this is really necessary.

from org-gcal.el.

telotortium avatar telotortium commented on August 27, 2024

Hi everyone, my life is getting busy at the moment, and will be until at least mid-January. If anyone wants to write a patch for this, I'd be more than willing to review it.

from org-gcal.el.

kidd avatar kidd commented on August 27, 2024

I'll try to take a stab at it but I've been out of the loop for some time now (wanting to get in again, but "life"...).

Happy to help driving it through while @telotortium is busy (thanks for the great job with the package!)

First I have to get my tokens working again anyway. :)

from org-gcal.el.

gewthen avatar gewthen commented on August 27, 2024

I hope this gets address sooner or later. Not having it fully sync with Google Calendar means org-gcal is not reliable. I never really know if the meeting I see in my Agenda is still relevant for the day. I would suggest that the new behavior would not only prompt the user to confirm every deletion, but also recognize whether it is repeating and delete the whole series. However if the event has been modified in Org then we might not want to delete it.

For now I'll have to delete the Org files and fetch to get a full copy of the calendar. Though that means any notes attached for the events will need to live somewhere else.

from org-gcal.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.