Function: evil-extract-append
evil-extract-append is a byte-compiled function defined in
evil-common.el.
Signature
(evil-extract-append FILE-OR-APPEND)
Documentation
Return an (APPEND . FILENAME) pair based on FILE-OR-APPEND.
FILE-OR-APPEND should either be a filename or a ">> FILE" directive. APPEND will be t if FILE-OR-APPEND is an append directive and nil otherwise. FILENAME will be the extracted filename.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-extract-append (file-or-append)
"Return an (APPEND . FILENAME) pair based on FILE-OR-APPEND.
FILE-OR-APPEND should either be a filename or a \">> FILE\"
directive. APPEND will be t if FILE-OR-APPEND is an append
directive and nil otherwise. FILENAME will be the extracted
filename."
(if (and (stringp file-or-append)
(string-match "\\(>> *\\)" file-or-append))
(cons t (substring file-or-append (match-end 1)))
(cons nil file-or-append)))