Function: ewoc-set-hf

ewoc-set-hf is a byte-compiled function defined in ewoc.el.gz.

Signature

(ewoc-set-hf EWOC HEADER FOOTER)

Documentation

Set the HEADER and/or FOOTER of EWOC.

To change only the header (respectively footer), pass nil for FOOTER (respectively HEADER). To clear the header (respectively footer), pass an empty string for HEADER (respectively FOOTER).

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/ewoc.el.gz
(defun ewoc-set-hf (ewoc header footer)
  "Set the HEADER and/or FOOTER of EWOC.
To change only the header (respectively footer), pass nil for
FOOTER (respectively HEADER).
To clear the header (respectively footer), pass an empty string for
HEADER (respectively FOOTER)."
  (ewoc--set-buffer-bind-dll-let* ewoc
      ((head (ewoc--header ewoc))
       (foot (ewoc--footer ewoc))
       (hf-pp (ewoc--hf-pp ewoc)))
    (when header
      (setf (ewoc--node-data head) header)
      (ewoc--refresh-node hf-pp head dll))
    (when footer
      (setf (ewoc--node-data foot) footer)
      (ewoc--refresh-node hf-pp foot dll))))