Skip to content

Commit

Permalink
Revert "Update to oauth2 branch on kidd/org-gcal.el"
Browse files Browse the repository at this point in the history
On kidd/org-gcal.el#14, some difficulties have been
encountered with the oauth2 branch, and refresh tokens don't work properly on
this branch, so I'm reverting back to the rebind branch for now.
  • Loading branch information
Robert Irelan committed Jul 23, 2018
1 parent 89008c7 commit 124fd00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/ido.last
/network-security.data
/org-clock-save.el
/oauth2.plstore
/.persistent-scratch
/recentf
/smex-items
Expand Down
19 changes: 7 additions & 12 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1007,11 +1007,15 @@ my-org-pomodoro--remove-temp-files-hook when Emacs exits.")
(org-gcal-file-alist `((,calendar-id . ,temp-file)))
(org-gcal-token-file (format "%s-%s" org-gcal-token-file calendar-id))
(org-gcal-token-plist nil))
;; (org-gcal--ensure-token)
(org-gcal--ensure-token)
(message "current buffer: %s" (current-buffer))
(org-gcal--post-event time-iso time-iso
"org-pomodoro break end -- get back to work!"
nil nil nil)))))
nil nil calendar-id
;; skip import and export to avoid attempting to
;; perform I/O using the NIL file in
;; ORG-GCAL-FILE-ALIST.
nil nil 'skip-import 'skip-export)))))

(add-hook 'org-pomodoro-finished-hook #'my-org-pomodoro-finished-notify-hook)
(add-hook 'org-pomodoro-finished-hook #'my-org-pomodoro-finished-lock-screen)
Expand Down Expand Up @@ -1101,19 +1105,10 @@ TAG is chosen interactively from the global tags completion table."
((eq system-type 'darwin)
'osx-notifier)
(t 'message))))
(eval-when-compile
;; Squelch byte compilation warnings from oauth2 (used by org-gcal) - see
;; https://emacs.stackexchange.com/a/37042/17182.
(defvar url-http-method nil)
(defvar url-http-data nil)
(defvar url-http-extra-headers nil)
(defvar oauth--token-data nil)
(defvar url-callback-function nil)
(defvar url-callback-arguments nil))
(use-package org-gcal
:ensure org-plus-contrib
:ensure alert
:ensure oauth2
:ensure request-deferred
:ensure nil
:load-path "~/.emacs.d/lisp/org-gcal.git"
:config
Expand Down
2 changes: 1 addition & 1 deletion lisp/org-gcal.git
Submodule org-gcal.git updated 1 files
+415 −174 org-gcal.el

0 comments on commit 124fd00

Please sign in to comment.