[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Erc-discuss] Extract timestamp from message and use it
From: |
Vincent Bernat |
Subject: |
Re: [Erc-discuss] Extract timestamp from message and use it |
Date: |
Wed, 06 Nov 2013 10:49:46 +0100 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) |
❦ 5 novembre 2013 20:39 CET, Vincent Bernat <address@hidden> :
> I am using a bouncer which replays messages by prepending them with a
> timestamp. It would be convenient if the timestamp was extracted and
> used as the current time.
>
> Extracting the timestamp can be done in `erc-insert-pre-hook` but I
> don't see how I could override the `current-time` function used to
> handle timestamps.
I have come with this solution:
https://gist.github.com/vincentbernat/7328781
Unfortunately, dynamic binding does not seem to work with cl-flet...
--
Instrument your programs. Measure before making "efficiency" changes.
- The Elements of Programming Style (Kernighan & Plauger)