erc-discuss
[Top][All Lists]
Advanced

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

[Erc-discuss] Re: Make erc-autoaway-use-emacs-idle work like type-break


From: Michael Olson
Subject: [Erc-discuss] Re: Make erc-autoaway-use-emacs-idle work like type-break mode?
Date: Sat, 03 Jun 2006 14:34:01 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Mark Plaksin <address@hidden> writes:

> Michael Olson <address@hidden> writes:
>
>> This seems like a good idea.  I figure we could remove the idle
>> timer functionality (since it appears to be broken) and make it an
>> option to use the time of the last keystroke as a basis for
>> autoaway detection.  To get the time of the last keystroke, we'd
>> just have to add the following function to `post-command-hook'.
>>
>> (defun erc-autoaway-get-last-keystroke
>>   (setq erc-autoaway-last-keystroke (current-time)))
>
> How about this patch?  It's a little clunky doing the setup (see
> FIXME) but works nicely for me.  Besides setting away when you don't
> type anything, it unsets away after you start typing.  That's what I
> want but maybe I'm strange :)

I've now installed this patch (with some re-organization and the like)
in our shared Arch archive.

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

Attachment: pgpfxle6XnwZX.pgp
Description: PGP signature


reply via email to

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