[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Erc-commit] [commit][master] erc-goodies.el: Do scrolltobottom in all e
From: |
mwolson |
Subject: |
[Erc-commit] [commit][master] erc-goodies.el: Do scrolltobottom in all existing ERC buffers when activated. |
Date: |
Sat, 19 Jan 2008 03:40:15 -0500 |
commit 2a41ef26f6d043441b987f41f94aff7e593caf25
Author: Michael W. Olson <address@hidden>
Date: Sat Jan 19 03:27:40 2008 -0500
erc-goodies.el: Do scrolltobottom in all existing ERC buffers when
activated.
diff --git a/ChangeLog b/ChangeLog
index 882c945..fd8ca2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,7 +15,9 @@
(erc-imenu-setup): New function that sets up Imenu support. Add
it instead of a lambda form to erc-mode-hook.
(scrolltobottom): Remove erc-scroll-to-bottom from all ERC buffers
- when module is removed.
+ when module is removed. Activate the functionality in all ERC
+ buffers when the module is activated, rather than leaving it up to
+ the user.
* erc-page.el, erc-replace.el: Fix header and footer.
diff --git a/erc-goodies.el b/erc-goodies.el
index 30ee5ec..4f8ce39 100644
--- a/erc-goodies.el
+++ b/erc-goodies.el
@@ -55,10 +55,11 @@ argument to `recenter'."
:type '(choice integer (const nil)))
(define-erc-module scrolltobottom nil
- "This mode causes the prompt to stay at the end of the window.
-You have to activate or deactivate it in already created windows
-separately."
- ((add-hook 'erc-mode-hook 'erc-add-scroll-to-bottom))
+ "This mode causes the prompt to stay at the end of the window."
+ ((add-hook 'erc-mode-hook 'erc-add-scroll-to-bottom)
+ (dolist (buffer (erc-buffer-list))
+ (with-current-buffer buffer
+ (erc-add-scroll-to-bottom))))
((remove-hook 'erc-mode-hook 'erc-add-scroll-to-bottom)
(dolist (buffer (erc-buffer-list))
(with-current-buffer buffer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Erc-commit] [commit][master] erc-goodies.el: Do scrolltobottom in all existing ERC buffers when activated.,
mwolson <=