erc insert-log-on-open inserts log at the bottom rather than at the top of the buffer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
erc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Release: Trusty (14.04)
Package version: 5.3-1ubuntu1
Standard practice for IRC programs is (1) to log the chats to a file, and (2) when re-opening a channel for which you have logs, to insert logs from the previous session at the top (so you don't lose the history if you have to log out briefly for some reason).
ERC 5.3 provides a simple way to do this, by adding the following lines to your .emacrc [1]:
(setq erc-log-
(setq erc-save-
erc-
erc-
erc-
erc-
However, on Trusty, there is a bug in the insert-log-on-open functionality: It inserts the log at the *end* of the buffer, *after* opening the channel. So you get the "joining channel [whatever]" boilerplate, then the ERC> prompt, *then* the log from the previous session.
What it should do instead is to insert it at the top, before all that.
This is apparently a known issue (see [1] again), but erc appears to be unmaintiained.