emacs-erc
[Top][All Lists]
Advanced

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

/list (was: Re: /ame source)


From: Emanuel Berg
Subject: /list (was: Re: /ame source)
Date: Tue, 02 Jan 2024 16:32:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

J.P. wrote:

>> (defun erc-sort-list (col)
>>   "Use after /list.
>> Sort table by  column COL.
>> A negative value will reverse the result after sorting."
>>   (interactive (list (read-number "column [- to reverse]: " -2)))
>>   (let ((colu (abs col))
>>         (buffer-read-only nil)
>>         (beg (point-min))
>>         (end (point-max)) )
>>     (if (= colu 1)
>>         (sort-fields colu beg end)
>>       (sort-numeric-fields colu beg end) )
>>     (when (< col 0)
>>       (reverse-region beg end) )
>>     (goto-char beg) ))
>
> Last I checked, /list is fundamentally broken in its
> understanding of the IRC protocol. If that's true, we should
> fix it before or at least while adding to it.

Oh, no, it works. Try /list on Libera, then do

  M-x erc-sort-list RET RET

to sort it and see what channels are the most popular.

As a sample, here are the top 20, with that method.

#archlinux          1435
##rust               986
#bash                880
#c                   846
##programming        766
#ansible             758 
##math               589 
#C++                 549 
##electronics        530 
##chat               513
#bitcoin             394
##proxmox            382
#archlinux-offtopic  360
#btrfs               347
#C++-general         325
#commonlisp          309
#crypto              300
#centos              274
#arduino             259
#android             253

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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