erc insert-log-on-open inserts log at the bottom rather than at the top of the buffer

Bug #1408282 reported by GeorgeDunlap
6
This bug affects 1 person
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-channels-directory "~/.erc/logs/")
(setq erc-save-buffer-on-part nil
      erc-save-queries-on-quit nil
      erc-log-write-after-send t
      erc-log-write-after-insert t
      erc-log-insert-log-on-open t)

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.

[1] http://www.emacswiki.org/emacs/ErcLogging

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.