Function: vtable-insert
vtable-insert is a byte-compiled function defined in vtable.el.gz.
Signature
(vtable-insert TABLE)
Documentation
Insert TABLE into the current buffer.
The current buffer will be recorded as TABLE's buffer. If the table is inserted into a buffer other than its originating buffer, signal an error. A table may be reinserted into its own buffer, but insert only one instance per buffer. This restriction needs to be enforced by the caller.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/vtable.el.gz
(defun vtable-insert (table)
"Insert TABLE into the current buffer.
The current buffer will be recorded as TABLE's buffer. If the table is
inserted into a buffer other than its originating buffer, signal an
error. A table may be reinserted into its own buffer, but insert only
one instance per buffer. This restriction needs to be enforced by the
caller."
(if-let* ((table-buffer (vtable-buffer table)))
(when (not (eq table-buffer (current-buffer)))
(error "A vtable cannot be inserted into more than one buffer")))
(setf (vtable-buffer table) (current-buffer))
(let ((inhibit-read-only t)
(inhibit-modification-hooks t))
(vtable--insert table)))