emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/rcirc-menu 40eb60c 11/13: rcirc-menu: server buffer act


From: Stefan Monnier
Subject: [elpa] externals/rcirc-menu 40eb60c 11/13: rcirc-menu: server buffer activity sorts lower
Date: Tue, 1 Dec 2020 16:56:13 -0500 (EST)

branch: externals/rcirc-menu
commit 40eb60cff1a637a7925d57bef7ff44dd52b49f64
Author: Alex Schroeder <alex@gnu.org>
Commit: Alex Schroeder <alex@gnu.org>

    rcirc-menu: server buffer activity sorts lower
    
    Rcirc server buffers often mention your nick and thus in the default
    sort order, they used to come out on top, even though it's the kind of
    activity nobody cares about. Now server buffers are sorted at the
    bottom. Getting rid of them is also not a good solution because
    sometimes, rarely, users still want to visit the server buffers.
---
 rcirc-menu.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rcirc-menu.el b/rcirc-menu.el
index e7cf0e3..17019f8 100644
--- a/rcirc-menu.el
+++ b/rcirc-menu.el
@@ -229,7 +229,8 @@ examine `rcirc-activity-types'."
   (setq args (mapcar (lambda (v)
                       (let ((buf (car v)))
                         (with-current-buffer buf
-                          (cond ((memq 'nick rcirc-activity-types) 1)
+                          (cond ((null rcirc-target) 5)
+                                ((memq 'nick rcirc-activity-types) 1)
                                 ((memq 'keyword  rcirc-activity-types) 2)
                                 (rcirc-activity-types 3)
                                 (t 4)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]