summaryrefslogtreecommitdiff
path: root/lisp/erc/erc-log.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2007-11-01 01:12:59 +0000
committerMichael Olson <mwolson@gnu.org>2007-11-01 01:12:59 +0000
commit88406d6ee8a9108ae8265aac2f023e61f4bff827 (patch)
tree2756fffbdbb4bef290fd853db955a886a7a179fe /lisp/erc/erc-log.el
parentbce6be12b94d6008266d60dac6d3062d1126611f (diff)
downloademacs-88406d6ee8a9108ae8265aac2f023e61f4bff827.tar.gz
Silence some byte-compiler warnings in ERC
Diffstat (limited to 'lisp/erc/erc-log.el')
-rw-r--r--lisp/erc/erc-log.el9
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/erc/erc-log.el b/lisp/erc/erc-log.el
index 7ea3c63b4b2..8b5e07a383e 100644
--- a/lisp/erc/erc-log.el
+++ b/lisp/erc/erc-log.el
@@ -268,14 +268,7 @@ The current buffer is given by BUFFER."
(with-current-buffer buffer
(auto-save-mode -1)
(setq buffer-file-name nil)
- (cond ((boundp 'write-file-functions)
- (set (make-local-variable 'write-file-functions)
- '(erc-save-buffer-in-logs)))
- ((boundp 'local-write-file-hooks)
- (setq local-write-file-hooks '(erc-save-buffer-in-logs)))
- (t
- (set (make-local-variable 'write-file-hooks)
- '(erc-save-buffer-in-logs))))
+ (erc-set-write-file-functions '(erc-save-buffer-in-logs))
(when erc-log-insert-log-on-open
(ignore-errors (insert-file-contents (erc-current-logfile))
(move-marker erc-last-saved-position