Function: org-texinfo--split-definition

org-texinfo--split-definition is a byte-compiled function defined in ox-texinfo.el.gz.

Signature

(org-texinfo--split-definition PLAIN-LIST ITEM CMD ARGS)

Documentation

Insert a definition command before list PLAIN-LIST.

Replace list item ITEM with a special-block that inherits the contents of ITEM and whose type and Texinfo attributes are specified by CMD and ARGS.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
(defun org-texinfo--split-definition (plain-list item cmd args)
  "Insert a definition command before list PLAIN-LIST.
Replace list item ITEM with a special-block that inherits the
contents of ITEM and whose type and Texinfo attributes are
specified by CMD and ARGS."
  (let ((contents (org-element-contents item)))
    (org-element-insert-before
     (apply #'org-element-create 'special-block
	    (list :type cmd
		  :attr_texinfo (list (format ":options %s" args))
		  :post-blank (if contents 1 0))
	    (mapc #'org-element-extract-element contents))
     plain-list))
  (org-element-extract-element item))