erc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-discuss] Re: Some questions on logging


From: Michael Olson
Subject: [Erc-discuss] Re: Some questions on logging
Date: Sat, 08 Jul 2006 23:57:49 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Tassilo Horn <address@hidden> writes:

> Now there's only one last thing which irks me. ERC logging really
> speeds down emacs remarkably. Every message I receive and any line I
> respond seems to be synched to disk immediately.
>
> I think a better approach would be to only save the buffer when you
> kill it. All erc-kill-*-hooks contain `erc-save-buffer-in-logs', so
> this approach seems implemented. So why the constant syncing?

Indeed, ERC does sync the log every time a message is sent or
text is received.

I've added some new options that will do what you want.  Set them both
to nil to get the desired behavior.

(erc-log-write-after-send): New option that determines whether the
log file will be written to after every sent message.

(erc-log-write-after-insert): New option that determines whether
the log file will be written to when new text is added to a logged
ERC buffer.

Also, you will probably want to make sure that both the
`erc-save-buffer-on-part' and `erc-save-queries-on-quit' options are
non-nil.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC

Attachment: pgpUM93znn0BB.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]