[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-notify dd342f86d6 11/23: org-notify-audible: new co
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-notify dd342f86d6 11/23: org-notify-audible: new configuration variable. |
Date: |
Mon, 25 Jul 2022 12:57:57 -0400 (EDT) |
branch: externals/org-notify
commit dd342f86d6a65e41cb93cecc579590bb00f71adc
Author: Peter Münster <pmrb@free.fr>
Commit: Peter Münster <pmrb@free.fr>
org-notify-audible: new configuration variable.
---
org-notify.el | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/org-notify.el b/org-notify.el
index 2ad7a632b0..7ea2c62977 100644
--- a/org-notify.el
+++ b/org-notify.el
@@ -60,6 +60,16 @@
(declare-function notifications-notify "notifications" (&rest prms))
(declare-function article-lapsed-string "gnus-art" (t &optional ms))
+(defgroup org-notify nil
+ "Options for Org-mode notifications."
+ :tag "Org Notify"
+ :group 'org)
+
+(defcustom org-notify-audible t
+ "Non-nil means beep to indicate notification."
+ :type 'boolean
+ :group 'org-notify)
+
(defconst org-notify-actions '("done" "done" "hour" "one hour later" "day"
"one day later" "week" "one week later")
"Possible actions for call-back functions.")
@@ -148,6 +158,10 @@ forgotten tasks."
(org-notify-maybe-too-late diff period heading)))
(setq prms (plist-put prms last-run-sym now)
plist (append todo prms))
+ (if (if (plist-member prms :audible)
+ (prm :audible)
+ org-notify-audible)
+ (ding))
(unless (listp actions)
(setq actions (list actions)))
(dolist (action actions)
@@ -178,6 +192,7 @@ List of possible parameters:
format as :time.
:duration Some actions use this parameter to specify the duration of the
notification. It's an integral number in seconds.
+ :audible Overwrite the value of `org-notify-audible' for this action.
For the actions, you can use your own functions or some of the predefined
ones, whose names are prefixed with `org-notify-action-'."
@@ -321,8 +336,6 @@ org-notify window. Mostly copied from
`appt-select-lowest-window'."
(defun org-notify-action-notify (plist)
"Pop up a notification window."
-; todo perhaps: dbus-unregister-service for NotificationClosed to
-; prevent resetting idle-time
(require 'notifications)
(let* ((duration (plist-get plist :duration))
(id (notifications-notify
@@ -330,8 +343,7 @@ org-notify window. Mostly copied from
`appt-select-lowest-window'."
:body (org-notify-body-text (plist-get plist :deadline))
:timeout (if duration (* duration 1000))
:actions org-notify-actions
- :on-action 'org-notify-on-action-notify
- :on-close 'org-notify-on-close)))
+ :on-action 'org-notify-on-action-notify)))
(setq org-notify-on-action-map
(plist-put org-notify-on-action-map id plist))))
- [elpa] externals/org-notify 148ec5ad27 22/23: Integrate enhancements from Stefan Monnier, (continued)
- [elpa] externals/org-notify 148ec5ad27 22/23: Integrate enhancements from Stefan Monnier, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify d05ef86787 18/23: org-notify.el (org-notify-on-action): Pressing "done" should never act on, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 704e023ad8 21/23: Simplify call to time-add in org-notify-body-text, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify f47c137a96 23/23: Add a todo list, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify d24a1525c1 06/23: Remove obsolete org-notify-verbose., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify d2e1c297fa 17/23: README.md: this module is no more in the org-mode distribution, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 3a9c55aabd 19/23: Fix package-lint errors, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify d61af2d334 04/23: Use common prefix for all objects., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 75df171a0a 05/23: Allow also suffixes for predefined functions., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 13afc93024 08/23: Add support for sending emails., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify dd342f86d6 11/23: org-notify-audible: new configuration variable.,
ELPA Syncer <=
- [elpa] externals/org-notify 76f75705b3 13/23: org-notify-on-action: New action: show the entry., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 1c65ee9597 16/23: org-notify.el: update to version in org-mode distribution, ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify f566817937 10/23: New notification type: "notify or window"., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 5875631410 09/23: Treat only one file per call of org-notify-process., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify 160c7eb64d 12/23: org-notify-body-text: Add time-stamp to text., ELPA Syncer, 2022/07/25
- [elpa] externals/org-notify e4bdac5a14 15/23: Create README.md, ELPA Syncer, 2022/07/25