From 1d51cbd30432696e984c967f5fa7763eda7fa4b3 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 9 Apr 2023 16:29:30 +0200 Subject: Get hype about ERC 5.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dear F. Jason Park, Ta muchly. Péniblec --- itches/emacs/tracker.org | 4 +++- reviews/emacs/hype.org | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org index b414d38..b710eaa 100644 --- a/itches/emacs/tracker.org +++ b/itches/emacs/tracker.org @@ -424,7 +424,9 @@ like it's not too hard to implement? Ideally Emacs's builtin =sasl.el= should be reused; that would let ERC support better SASL mechanisms than =PLAIN=. -**** TODO Make timestamps robust vs window width changes +**** +Make timestamps robust vs window width changes+ +*Solved in 5.6 with ~erc-fill-wrap~.* + The =:align-to= spec for right timestamps inserts a fixed number of spaces, so resizing windows messes up their display. Eg. moving a frame from one monitor to a smaller one, lines get wrapped diff --git a/reviews/emacs/hype.org b/reviews/emacs/hype.org index b619fce..5d201cb 100644 --- a/reviews/emacs/hype.org +++ b/reviews/emacs/hype.org @@ -1,6 +1,18 @@ Emacs's NEWS files are useful as a searchable reference, but they can be overwhelming as an entry point. In this file, I'm keeping track of the changes /I/ am excited about. +* 30 +** ERC +*** ~visual-line-mode~ integration +In previous versions, I would take =fill= off ~erc-modules~ and enable +~visual-line-mode~ in order to get reflowable windows; this would [[file:~/memory-leaks/itches/emacs/tracker.org::*+Make timestamps robust vs window width changes+][mess +with right-aligned timestamps]], however. + +As of ERC 5.6, setting ~erc-fill-function~ to ~'erc-fill-wrap~ enables +~visual-line-mode~ and sets up all sorts of =line-prefix=, +=wrap-prefix= & margin trickery to (a) align nicks and messages (b) +make messages reflowable (c) keep timestamps firmly stuck to the right +margin. * 29 ** =:core= promotions A couple of ELPA packages have moved to emacs.git, making them -- cgit v1.2.3