Function: erc-log-setup-logging

erc-log-setup-logging is a byte-compiled function defined in erc-log.el.gz.

This function is obsolete since 31.1; use erc-log-mode(var)/erc-log-mode(fun) or mimic erc-log--setup

Signature

(erc-log-setup-logging BUFFER)

Documentation

Setup the buffer-local logging variables in the current buffer.

This function is destined to be run from erc-connect-pre-hook. The current buffer is given by BUFFER.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-log.el.gz
;; This function served double duty as the local setup function for both
;; idempotent tasks and destructive ones typically confined to
;; `erc-open'.  The caller was implicitly tasked with selectively
;; inhibiting the destructive portion by binding
;; `erc-log-insert-log-on-open' to nil when calling it, which led to
;; bugs.
(defun erc-log-setup-logging (buffer)
  "Setup the buffer-local logging variables in the current buffer.
This function is destined to be run from `erc-connect-pre-hook'.
The current buffer is given by BUFFER."
  (declare (obsolete "use `erc-log-mode' or mimic `erc-log--setup'" "31.1"))
  (with-current-buffer buffer
    (let ((erc-log-mode t))
      (erc-log--setup)
      (erc-log--insert-log-on-open))))