[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-notify f831c778a2 3/3: Revert bbd9a04, it was a bad
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-notify f831c778a2 3/3: Revert bbd9a04, it was a bad idea |
Date: |
Wed, 2 Nov 2022 13:58:00 -0400 (EDT) |
branch: externals/org-notify
commit f831c778a275adbdcdffbed969ad5fbc1996c78f
Author: Peter Münster <pm@a16n.net>
Commit: Peter Münster <pm@a16n.net>
Revert bbd9a04, it was a bad idea
---
org-notify.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/org-notify.el b/org-notify.el
index df0cb8c367..888c05fedf 100644
--- a/org-notify.el
+++ b/org-notify.el
@@ -43,11 +43,11 @@
;;
;; (org-notify-add 'appt
;; '(:time "-1s" :period "20s" :duration 10
-;; :actions (message ding))
+;; :actions (-message -ding))
;; '(:time "15m" :period "2m" :duration 100
-;; :actions notify)
-;; '(:time "2h" :period "5m" :actions message)
-;; '(:time "3d" :actions email))
+;; :actions -notify)
+;; '(:time "2h" :period "5m" :actions -message)
+;; '(:time "3d" :actions -email))
;;
;; This means for todo-items with `notify' property set to `appt': 3 days
;; before deadline, send a reminder-email, 2 hours before deadline, start to
@@ -69,6 +69,7 @@
;; beginning of the org-file, use markers instead.
;; - Options for procrastination (e.g. "do it tomorrow") should be more
;; configurable.
+;; - Add support for tags as in https://github.com/p-m/org-notify/issues/7.
;;; Code:
@@ -200,7 +201,7 @@ forgotten tasks."
(cl-incf notification-cnt)
(dolist (action actions)
(funcall (if (fboundp action) action
- (intern (concat "org-notify-action-"
+ (intern (concat "org-notify-action"
(symbol-name action))))
plist))
(when (>= notification-cnt
org-notify-max-notifications-per-run)
@@ -411,7 +412,7 @@ terminal an Emacs window."
(org-notify-action-window plist)))
;;; Provide a minimal default setup.
-(org-notify-add 'default '(:time "1h" :actions notify/window
+(org-notify-add 'default '(:time "1h" :actions -notify/window
:period "2m" :duration 60))
(provide 'org-notify)