Commit 88406d6e authored by Michael Olson's avatar Michael Olson

Silence some byte-compiler warnings in ERC

parent bce6be12
2007-11-01 Michael Olson <>
* erc-compat.el (erc-set-write-file-functions): New compatibility
function to set the write hooks appropriately.
* erc-log.el (erc-log-setup-logging): Use
erc-set-write-file-functions. This fixes a byte-compiler warning.
* erc-stamp.el: Silence byte-compiler warning about
* erc.el (erc-with-all-buffers-of-server): Bind the result of
mapcar to a variable in order to silence a byte-compiler warning.
2007-10-29 Michael Olson <>
* erc-ibuffer.el (erc-modified-channels-alist): Use
......@@ -50,6 +50,9 @@ See `erc-encoding-coding-alist'."
(defalias 'erc-delete-dups 'delete-dups)
(defalias 'erc-replace-regexp-in-string 'replace-regexp-in-string)
(defun erc-set-write-file-functions (new-val)
(set (make-local-variable 'write-file-functions) new-val))
(defvar erc-emacs-build-time
(if (stringp emacs-build-time)
......@@ -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)
((boundp 'local-write-file-hooks)
(setq local-write-file-hooks '(erc-save-buffer-in-logs)))
(set (make-local-variable 'write-file-hooks)
(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
......@@ -264,6 +264,10 @@ property to get to the POSth column."
(list 'space ':align-to pos)))
(insert string))
;; Silence byte-compiler
(defvar erc-fill-column))
(defun erc-insert-timestamp-right (string)
"Insert timestamp on the right side of the screen.
STRING is the timestamp to insert. The function is a possible value
......@@ -1680,13 +1680,16 @@ nil."
;; Make the evaluation have the correct order
(let ((pre (make-symbol "pre"))
(pro (make-symbol "pro")))
`(let ((,pro ,process)
(,pre ,pred))
(mapcar (lambda (buffer)
(with-current-buffer buffer
(erc-buffer-list ,pre
`(let* ((,pro ,process)
(,pre ,pred)
(res (mapcar (lambda (buffer)
(with-current-buffer buffer
(erc-buffer-list ,pre
;; Silence the byte-compiler by binding the result of mapcar to
;; a variable.
(put 'erc-with-all-buffers-of-server 'lisp-indent-function 1)
(put 'erc-with-all-buffers-of-server 'edebug-form-spec '(form form body))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment