summaryrefslogtreecommitdiff
path: root/lisp/erc/erc-spelling.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2006-02-12 12:02:53 +0000
committerMiles Bader <miles@gnu.org>2006-02-12 12:02:53 +0000
commit9cc8d0b62e2f9cc8aa5754aafaf359fdfc28edef (patch)
treeffe234ff4943c026a8c304005aca02a42d96061c /lisp/erc/erc-spelling.el
parentf828c6fc00bac67e28840637346ddc47b5b6ee2d (diff)
downloademacs-9cc8d0b62e2f9cc8aa5754aafaf359fdfc28edef.tar.gz
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-73
Creator: Michael Olson <mwolson@gnu.org> Merge from erc--emacs--0
Diffstat (limited to 'lisp/erc/erc-spelling.el')
-rw-r--r--lisp/erc/erc-spelling.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/erc/erc-spelling.el b/lisp/erc/erc-spelling.el
index 41e342c0e50..528668f4829 100644
--- a/lisp/erc/erc-spelling.el
+++ b/lisp/erc/erc-spelling.el
@@ -41,11 +41,13 @@
;; called AFTER the server buffer is initialized.
((add-hook 'erc-connect-pre-hook 'erc-spelling-init)
(mapc (lambda (buffer)
- (with-current-buffer buffer (erc-spelling-init)))
+ (when buffer
+ (with-current-buffer buffer (erc-spelling-init))))
(erc-buffer-list)))
((remove-hook 'erc-connect-pre-hook 'erc-spelling-init)
(mapc (lambda (buffer)
- (with-current-buffer buffer (flyspell-mode 0)))
+ (when buffer
+ (with-current-buffer buffer (flyspell-mode 0))))
(erc-buffer-list))))
(defcustom erc-spelling-dictionaries nil