← Back to team overview

ubuntu-elisp team mailing list archive

[Bug 1408282] [NEW] erc insert-log-on-open inserts log at the bottom rather than at the top of the buffer

 

Public bug reported:

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

** Affects: erc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Emacs Lisp, which is subscribed to erc in Ubuntu.
https://bugs.launchpad.net/bugs/1408282

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/erc/+bug/1408282/+subscriptions


Follow ups

References