Function: erc-status-sidebar-set-window-preserve-size

erc-status-sidebar-set-window-preserve-size is a byte-compiled function defined in erc-status-sidebar.el.gz.

Signature

(erc-status-sidebar-set-window-preserve-size)

Documentation

Tell Emacs to preserve the current height/width of the ERC sidebar window.

Note that preserve status needs to be reset when the window is manually resized, so erc-status-sidebar-mode adds this function to the window-configuration-change-hook.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-status-sidebar.el.gz
(defun erc-status-sidebar-set-window-preserve-size ()
  "Tell Emacs to preserve the current height/width of the ERC sidebar window.

Note that preserve status needs to be reset when the window is
manually resized, so `erc-status-sidebar-mode' adds this function
to the `window-configuration-change-hook'."
  (when (and (eq (selected-window) (let (erc-status-sidebar--singular-p)
                                     (erc-status-sidebar-get-window)))
             (fboundp 'window-preserve-size))
    (unless (eq (window-total-width) (window-min-size nil t))
      (apply #'window-preserve-size (selected-window) t t nil))))