You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to get it set up in my config and I've run into a bit of an issue: although I can get the package installed just fine, emacs doesn't seem to be sending out notifications for org events! I've tried, among other things, adding the "chocolate factory" example from the README (with the timestamp adjusted, of course) to one of my org agenda files, but I don't see notifications at any time.
Evaluating (alert "test") results in a desktop notification as desired. I thought it might have been due to another org-mode package in my config file, so I tried running emacs -Q and evaluating the following code to get org-wild-notifier installed:
I poked around in the source code a bit and was surprised by the behavior of the following block, lines 265-271 in org-wild-notifier.el at the time of writing:
I didn't expect this behavior (to be fair, I don't understand the source code super well), so I thought it would be worth mentioning in the issue. This happened when using the "minimal working example" above as well as when using my default emacs config.
EDIT: I tried running the code using ielm rather than M-S-; and the output was reasonable. I realize now that the strange output above is likely just a truncated version of the full output! Oops . . . .
I've made some partial progress on this. First, it seems like org-wild-notifier--apply-whitelist is filtering things out too aggressively, at least when org-wild-notifier-keyword-whitelist is left at its default value: seemingly, all events are filtered out, even ones with TODOs (including the chocolate factory example). I'm not sure why this is the case at the moment. This particular issue doesn't seem to be present when org-wild-notifier-keyword-whitelist is set to nil.
Second, in the function org-wild-notifier--extract-notication-intervals, it looks like 'string-to-number is being mapped over a space-delimited string of digits (e.g., "80 60 55 43 5") instead of a list, which results in an error. The error goes away when we split the string first by redefining org-wild-notifier--extract-notication-intervals as follows:
(defun org-wild-notifier--extract-notication-intervals (event)
"Extract notification intervals from the event's properties.
Resulting list also contains standard notification
interval (`org-wild-notifier-alert-time')."
`(,@(-flatten (list org-wild-notifier-alert-time))
,@(-map 'string-to-number
(let ((times
(cdr (assoc org-wild-notifier-alert-times-property event))))
(if times
(split-string times)
nil)))))
In summary: if I set org-wild-notifier-keyword-whitelist to nil and modify org-wild-notifier--extract-notication-intervals as above, org-wild-notifier sends out notifications as expected; however, if org-wild-notifier-keyword-whitelist is left at its default value, no notifications are sent out, even for events with TODOs.
First, thank you for your work on this package!
I've been trying to get it set up in my config and I've run into a bit of an issue: although I can get the package installed just fine, emacs doesn't seem to be sending out notifications for org events! I've tried, among other things, adding the "chocolate factory" example from the README (with the timestamp adjusted, of course) to one of my org agenda files, but I don't see notifications at any time.
Evaluating
(alert "test")
results in a desktop notification as desired. I thought it might have been due to another org-mode package in my config file, so I tried runningemacs -Q
and evaluating the following code to get org-wild-notifier installed:The results were the same as in my usual config.
I poked around in the source code a bit and was surprised by the behavior of the following block, lines 265-271 in org-wild-notifier.el at the time of writing:
I tried evaluating the following code separately:
The output was:
I didn't expect this behavior (to be fair, I don't understand the source code super well), so I thought it would be worth mentioning in the issue. This happened when using the "minimal working example" above as well as when using my default emacs config.
EDIT: I tried running the code using ielm rather than M-S-; and the output was reasonable. I realize now that the strange output above is likely just a truncated version of the full output! Oops . . . .
Other things that are probably worth mentioning:
Please let me know if there's any additional information that I can provide that would make debugging easier!
The text was updated successfully, but these errors were encountered: