From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "J.P." Newsgroups: gmane.emacs.bugs Subject: bug#49860: 28.0.50; add IRCv3 building blocks to ERC Date: Thu, 02 May 2024 19:31:59 -0700 Message-ID: <87y18ry6ao.fsf__27570.909510699$1714703593$gmane$org@neverwas.me> References: <87zftc4hyf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2498"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-erc@gnu.org, 49860@debbugs.gnu.org To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 03 04:33:04 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s2ijQ-0000Nx-2O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 May 2024 04:33:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2ij8-0003Yh-7m; Thu, 02 May 2024 22:32:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2ij2-0003YB-SK for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 22:32:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2ij1-0002IC-Kk for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 22:32:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2ijN-0002Ni-Nq for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 22:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "J.P." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 May 2024 02:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49860 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49860-submit@debbugs.gnu.org id=B49860.17147035529125 (code B ref 49860); Fri, 03 May 2024 02:33:01 +0000 Original-Received: (at 49860) by debbugs.gnu.org; 3 May 2024 02:32:32 +0000 Original-Received: from localhost ([127.0.0.1]:46052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2iiu-0002N7-1h for submit@debbugs.gnu.org; Thu, 02 May 2024 22:32:32 -0400 Original-Received: from mail-108-mta58.mxroute.com ([136.175.108.58]:44987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2iir-0002N1-59 for 49860@debbugs.gnu.org; Thu, 02 May 2024 22:32:30 -0400 Original-Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta58.mxroute.com (ZoneMTA) with ESMTPSA id 18f3c4b596e0008ca2.001 for <49860@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 03 May 2024 02:32:02 +0000 X-Zone-Loop: dba1cd6a2748dfdfbca74a007c6845b66abb968b2857 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=neverwas.me ; s=x; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BdwKc8EZH8U8oAm5MAkLvKPZykPrE0GxyWsVf/DheuM=; b=YBdXpzjYyNvBoyV4GhmeywBC/8 HE6Em53wsd86WxcCCJKADopTVCMbeHPfcbvzc83B41aVRT8plLsIugSz4TFhs8dLvh9a1DRI/lEp9 8pJZc+N9wiY8uyTV4GK2wJzUa5C5VzS8ysqbl6NpTG9YzfVZTmK+t+JGVRiucJv/2rXHlGd+Kz64n 67zmRmwjwbXMC7oyYYA5WukDW5aQh784dNLMNWffkJBWqG/to44zEcjegpoyZXK1rM5/BMIP0yfwr Pusi8LetANONeJCJqD+x9tDKINpm6igRP7aRhIERbtY8znlc5HKchjDQ41nU9A+zNWeBPVTssa5dy ThkBSMWw==; In-Reply-To: <87zftc4hyf.fsf@gmail.com> (Alexis's message of "Mon, 29 Apr 2024 19:49:12 +1000") X-Authenticated-Id: masked@neverwas.me X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284352 Archived-At: Hi Alexis, Apologies for the late reply. Alexis writes: > i'm using the soju bouncer, which supports the IRCv3 'chathistory' extension. > From what i can tell, this isn't supported in the ERC that ships with > 29.3? That's correct. > If that's so, has any work been done on adding support in this regard? In terms of basic, foundational IRCv3, a number of design decisions still have to be made before we can arrive at something installable. I will try to summarize the work that's been done so far and propose a rough roadmap/checklist soon. If you're curious or able to contribute, please say so, and I'll make sure to Cc you. For now, there are some WIP patches [1] for the various foundational extensions as well as POCs for fancier ones like chathistory. On 29, you can try them as an ELPA package by doing (require 'package) (push '("emacs-erc" . "https://emacs-erc.gitlab.io/bugs/archive/") package-archives) followed by C-u M-x package-install RET erc-49860 RET. When that's done, connect from emacs -Q with something like (require 'erc-v3) (erc-toggle-debug-irc-protocol) (setopt erc-modules `(eldoc fill-wrap nicks scrolltobottom v3 ,@erc-modules) erc-v3-extensions `(draft/multiline draft/chathistory draft/event-playback labeled-response ,@erc-v3-extensions) erc-scrolltobottom-all t) (erc-tls :server "bouncer.alexis-vps.el" :port 6670 :nick "alexis" :user "alexis@laptop/testnet" :password "hunter2" :full-name "alexis") Please be aware that many things simply won't work and that seemingly random errors will occasionally occur. You'll also be met with many annoying inconveniences, like having to hit C-v at the top of a target buffer to fetch non-catch-up history (infinite scroll). Similarly, buffers for all query targets you've conversed with recently will show up for no good reason on connect because we don't (yet) persist any state to disk. Another pain point is query buffers not being renamed when users change nicks while you're disconnected. Additionally, expect to see duplicate messages near the bounding "bookend" indicators, which are themselves unsightly and yet visible by default. If you do end up trying these builds for any sustained period, please occasionally check for buffers named "*erc-foo-error*" and, if possible, send their contents to me along with those of the "*erc-protocol*" buffer. Remember, if a build breaks for whatever reason, you can always "roll back" to a less broken one. Anyway, if not already obvious, ERC needs contributors to make this initiative happen. So if you know or hear of anyone willing to work on the most frivolous corner of Emacs, please give them a nudge. Thanks, J.P. [1] https://emacs-erc.gitlab.io/bugs/49860/patches.tar.gz