[Top][All Lists]

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

[PATCH] erc-track erases the modeline when new buffers are created

From: Antoine Levitt
Subject: [PATCH] erc-track erases the modeline when new buffers are created
Date: Fri, 13 Aug 2010 23:57:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

When a new ERC buffer is created (for instance, a query) while erc-track
displays information in the mode line, the information is removed. I
tracked the bug down to an initialisation of
erc-modified-channels-object each time erc-track-mode is activated (ie,
each time an ERC buffer is created). This is useless because the
variable is initialised at load time with (defvar).

This patch simply removes the extra initialisation. I tested it, it
works for me and I don't see any potential bugs the removal might cause.

Antoine Levitt

=== modified file 'lisp/erc/erc-track.el'
--- lisp/erc/erc-track.el       2010-01-13 08:35:10 +0000
+++ lisp/erc/erc-track.el       2010-08-13 22:47:20 +0000
@@ -649,7 +649,6 @@
           (add-hook 'erc-send-completed-hook 'erc-user-is-active)
           (add-hook 'erc-server-001-functions 'erc-user-is-active))
        (erc-track-add-to-mode-line erc-track-position-in-mode-line)
-       (setq erc-modified-channels-object (erc-modified-channels-object nil))
        (if (featurep 'xemacs)
           (defadvice switch-to-buffer (after erc-update (&rest args) activate)

reply via email to

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