aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus.el22
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/gnus.el b/lisp/gnus.el
index b498747bc86..fb515e1e115 100644
--- a/lisp/gnus.el
+++ b/lisp/gnus.el
@@ -2695,7 +2695,7 @@ If argument UNREAD is non-nil, only unread article is selected."
2695 (gnus-summary-goto-article gnus-newsgroup-end)) 2695 (gnus-summary-goto-article gnus-newsgroup-end))
2696 (t 2696 (t
2697 ;; Select next newsgroup automatically if requested. 2697 ;; Select next newsgroup automatically if requested.
2698 (let ((cmd (string-to-char (this-command-keys))) 2698 (let ((cmd (aref (this-command-keys) 0))
2699 (group (gnus-summary-search-group)) 2699 (group (gnus-summary-search-group))
2700 (auto-select 2700 (auto-select
2701 (and gnus-auto-select-next 2701 (and gnus-auto-select-next
@@ -2713,20 +2713,22 @@ If argument UNREAD is non-nil, only unread article is selected."
2713 ;; Ignore characters typed ahead. 2713 ;; Ignore characters typed ahead.
2714 (not (input-pending-p)) 2714 (not (input-pending-p))
2715 ))) 2715 )))
2716 ;; Keep just the event type of CMD.
2717 (if (listp cmd)
2718 (setq cmd (car cmd)))
2716 (message "No more%s articles%s" 2719 (message "No more%s articles%s"
2717 (if unread " unread" "") 2720 (if unread " unread" "")
2718 (if (and auto-select 2721 (if (and auto-select
2719 (not (eq gnus-auto-select-next 'quietly))) 2722 (not (eq gnus-auto-select-next 'quietly)))
2720 (if group 2723 (if group
2721 (format " (Type %s for %s [%d])" 2724 (format " (Type %s for %s [%d])"
2722 (key-description (char-to-string cmd)) 2725 (single-key-description cmd)
2723 group 2726 group
2724 (nth 1 (gnus-gethash group 2727 (nth 1 (gnus-gethash group
2725 gnus-unread-hashtb))) 2728 gnus-unread-hashtb)))
2726 (format " (Type %s to exit %s)" 2729 (format " (Type %s to exit %s)"
2727 (key-description (char-to-string cmd)) 2730 (single-key-description cmd)
2728 gnus-newsgroup-name 2731 gnus-newsgroup-name))
2729 ))
2730 "")) 2732 ""))
2731 ;; Select next unread newsgroup automagically. 2733 ;; Select next unread newsgroup automagically.
2732 (cond ((and auto-select 2734 (cond ((and auto-select
@@ -2735,10 +2737,14 @@ If argument UNREAD is non-nil, only unread article is selected."
2735 (gnus-summary-next-group nil)) 2737 (gnus-summary-next-group nil))
2736 (auto-select 2738 (auto-select
2737 ;; Confirm auto selection. 2739 ;; Confirm auto selection.
2738 (let ((char (read-char))) 2740 (let* ((event (read-event))
2739 (if (= char cmd) 2741 (type
2742 (if (listp event)
2743 (car event)
2744 event)))
2745 (if (eq char type)
2740 (gnus-summary-next-group nil) 2746 (gnus-summary-next-group nil)
2741 (setq unread-command-char char)))) 2747 (setq unread-command-events (list event)))))
2742 ) 2748 )
2743 )) 2749 ))
2744 ))) 2750 )))