Function: tabulated-list-print-fake-header

tabulated-list-print-fake-header is a byte-compiled function defined in tabulated-list.el.gz.

Signature

(tabulated-list-print-fake-header)

Documentation

Insert a fake Tabulated List "header line" at the start of the buffer.

Do nothing if tabulated-list--header-string is nil.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/tabulated-list.el.gz
(defun tabulated-list-print-fake-header ()
  "Insert a fake Tabulated List \"header line\" at the start of the buffer.
Do nothing if `tabulated-list--header-string' is nil."
  (when tabulated-list--header-string
    (goto-char (point-min))
    (let ((inhibit-read-only t))
      (insert tabulated-list--header-string "\n")
      (if tabulated-list--header-overlay
          (move-overlay tabulated-list--header-overlay (point-min) (point))
        (setq-local tabulated-list--header-overlay
                    (make-overlay (point-min) (point))))
      (overlay-put tabulated-list--header-overlay
                   'face 'tabulated-list-fake-header))))