gnus-notifications: Raise frame when clicking Read
authorrasmus <x200s@pank.eu>
Sat, 7 Mar 2015 17:10:03 +0000 (18:10 +0100)
committerAdam Sjøgren <asjo@koldfront.dk>
Sat, 7 Mar 2015 21:51:26 +0000 (22:51 +0100)
* gnus-notifications.el (gnus-notifications-action): Raise window
  frame.

lisp/ChangeLog
lisp/gnus-notifications.el

index b0e26d8..e6330be 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-07  Rasmus Pank Roulund  <rasmus@pank.eu>
+
+       * gnus-notifications.el (gnus-notifications-action): Raise window
+       frame.
+
 2015-02-25  Adam Sjøgren  <asjo@koldfront.dk>
 
        * message.el (message-insert-formatted-citation-line): Change %F to
index 2941cc4..1ed344e 100644 (file)
@@ -80,7 +80,8 @@ not get notifications."
       (when group-article
         (let ((group (cadr group-article))
               (article (nth 2 group-article)))
-          (gnus-fetch-group group (list article)))))))
+          (gnus-fetch-group group (list article))
+          (when (window-system) (x-focus-frame (selected-frame))))))))
 
 (defun gnus-notifications-notify (from subject photo-file)
   "Send a notification about a new mail.