Package: erc
Version: 5.0.2-1
Severity: normal
Steps to reproduce:
1. emacs21 -q
2. (custom-set-variables '(erc-autoaway-mode t nil (erc-autoaway))
'(erc-autoaway-use-emacs-idle t))
3. C-x C-e
This patch fixes the problem:
--- erc-5.0.2.orig/erc-autoaway.el
+++ erc-5.0.2/erc-autoaway.el
@@ -117,6 +117,19 @@
:group 'erc-autoaway
:type 'regexp)
+(defun erc-autoaway-reestablish-idletimer ()
+ Reestablish the emacs idletimer.
+You have to call this function each time you change
+`erc-autoaway-idle-seconds', if `erc-autoaway-use-emacs-idle' is set.
+ (interactive)
+ (when erc-autoaway-idletimer
+(cancel-timer erc-autoaway-idletimer))
+ (setq erc-autoaway-idletimer
+ (run-with-idle-timer erc-autoaway-idle-seconds
+t
+'erc-autoaway-set-away
+erc-autoaway-idle-seconds)))
+
(defcustom erc-autoaway-idle-seconds 1800
*Number of seconds after which ERC will set you automatically away.
If you are changing this variable using lisp instead of customizing it,
@@ -148,19 +161,6 @@
(erc-autoaway-set-back line))
(setq erc-autoaway-last-sent-time (erc-current-time)))
-(defun erc-autoaway-reestablish-idletimer ()
- Reestablish the emacs idletimer.
-You have to call this function each time you change
-`erc-autoaway-idle-seconds', if `erc-autoaway-use-emacs-idle' is set.
- (interactive)
- (when erc-autoaway-idletimer
-(cancel-timer erc-autoaway-idletimer))
- (setq erc-autoaway-idletimer
- (run-with-idle-timer erc-autoaway-idle-seconds
-t
-'erc-autoaway-set-away
-erc-autoaway-idle-seconds)))
-
(defun erc-autoaway-set-back (line)
Discard the away state globally.
(when (erc-away-p)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-drlion-8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages erc depends on:
ii emacs21 21.4a-1The GNU Emacs editor
ii make 3.80-9 The GNU version of the make util
-- no debconf information
By the way, Bug #301952 (erc 5.0 is out) can probably be considered fixed.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]