diff options
| author | Po Lu | 2024-03-16 15:15:10 +0800 |
|---|---|---|
| committer | Po Lu | 2024-03-16 15:16:00 +0800 |
| commit | 28e481bf7af873cdaf016e25855a8e0ebc424fe7 (patch) | |
| tree | 48ffdfe04268e762a66829951c69a701cdea22c8 /lisp | |
| parent | 658529921614b8d5498c267a7ffc786c25d2d26f (diff) | |
| download | emacs-28e481bf7af873cdaf016e25855a8e0ebc424fe7.tar.gz emacs-28e481bf7af873cdaf016e25855a8e0ebc424fe7.zip | |
Respond to default action from Gnus notifications
* lisp/gnus/gnus-notifications.el (gnus-notifications-action):
Consider default equivalent to read.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/gnus-notifications.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-notifications.el b/lisp/gnus/gnus-notifications.el index 35f90ebfe40..e4c3d2c0381 100644 --- a/lisp/gnus/gnus-notifications.el +++ b/lisp/gnus/gnus-notifications.el | |||
| @@ -75,10 +75,11 @@ not get notifications." | |||
| 75 | (when group-article | 75 | (when group-article |
| 76 | (let ((group (cadr group-article)) | 76 | (let ((group (cadr group-article)) |
| 77 | (article (nth 2 group-article))) | 77 | (article (nth 2 group-article))) |
| 78 | (cond ((string= key "read") | 78 | (cond ((or (equal key "read") |
| 79 | (equal key "default")) | ||
| 79 | (gnus-fetch-group group (list article)) | 80 | (gnus-fetch-group group (list article)) |
| 80 | (select-frame-set-input-focus (selected-frame))) | 81 | (select-frame-set-input-focus (selected-frame))) |
| 81 | ((string= key "mark-read") | 82 | ((equal key "mark-read") |
| 82 | (gnus-update-read-articles | 83 | (gnus-update-read-articles |
| 83 | group | 84 | group |
| 84 | (delq article (gnus-list-of-unread-articles group))) | 85 | (delq article (gnus-list-of-unread-articles group))) |