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 | |
| 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.
| -rw-r--r-- | lisp/gnus/gnus-notifications.el | 5 | ||||
| -rw-r--r-- | src/androidterm.c | 20 |
2 files changed, 13 insertions, 12 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))) |
diff --git a/src/androidterm.c b/src/androidterm.c index 9948a2919d8..ba9b6d3b8a9 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -376,11 +376,11 @@ android_android_to_emacs_modifiers (struct android_display_info *dpyinfo, | |||
| 376 | tem = Fget (Vx_super_keysym, Qmodifier_value); | 376 | tem = Fget (Vx_super_keysym, Qmodifier_value); |
| 377 | if (FIXNUMP (tem)) mod_super = XFIXNUM (tem) & INT_MAX; | 377 | if (FIXNUMP (tem)) mod_super = XFIXNUM (tem) & INT_MAX; |
| 378 | 378 | ||
| 379 | return (((state & ANDROID_CONTROL_MASK) ? mod_ctrl : 0) | 379 | return (((state & ANDROID_CONTROL_MASK) ? mod_ctrl : 0) |
| 380 | | ((state & ANDROID_SHIFT_MASK) ? mod_shift : 0) | 380 | | ((state & ANDROID_SHIFT_MASK) ? shift_modifier : 0) |
| 381 | | ((state & ANDROID_ALT_MASK) ? mod_meta : 0) | 381 | | ((state & ANDROID_ALT_MASK) ? mod_meta : 0) |
| 382 | | ((state & ANDROID_SUPER_MASK) ? mod_super : 0) | 382 | | ((state & ANDROID_SUPER_MASK) ? mod_super : 0) |
| 383 | | ((state & ANDROID_META_MASK) ? mod_alt : 0)); | 383 | | ((state & ANDROID_META_MASK) ? mod_alt : 0)); |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | static int | 386 | static int |
| @@ -402,11 +402,11 @@ android_emacs_to_android_modifiers (struct android_display_info *dpyinfo, | |||
| 402 | tem = Fget (Vx_super_keysym, Qmodifier_value); | 402 | tem = Fget (Vx_super_keysym, Qmodifier_value); |
| 403 | if (FIXNUMP (tem)) mod_super = XFIXNUM (tem); | 403 | if (FIXNUMP (tem)) mod_super = XFIXNUM (tem); |
| 404 | 404 | ||
| 405 | return (((state & mod_ctrl) ? ANDROID_CONTROL_MASK : 0) | 405 | return (((state & mod_ctrl) ? ANDROID_CONTROL_MASK : 0) |
| 406 | | ((state & mod_shift) ? ANDROID_SHIFT_MASK : 0) | 406 | | ((state & shift_modifier) ? ANDROID_SHIFT_MASK : 0) |
| 407 | | ((state & mod_meta) ? ANDROID_ALT_MASK : 0) | 407 | | ((state & mod_meta) ? ANDROID_ALT_MASK : 0) |
| 408 | | ((state & mod_super) ? ANDROID_SUPER_MASK : 0) | 408 | | ((state & mod_super) ? ANDROID_SUPER_MASK : 0) |
| 409 | | ((state & mod_alt) ? ANDROID_META_MASK : 0)); | 409 | | ((state & mod_alt) ? ANDROID_META_MASK : 0)); |
| 410 | } | 410 | } |
| 411 | 411 | ||
| 412 | static void android_frame_rehighlight (struct android_display_info *); | 412 | static void android_frame_rehighlight (struct android_display_info *); |