Function: orderless-escapable-split
orderless-escapable-split is a natively compiled function defined in
orderless.el.
Signature
(orderless-escapable-split STRING &optional SEP)
Documentation
Split STRING on SEP character, which can be escaped with backslash.
SEP defaults to space.
Aliases
orderless-escapable-split-on-space (obsolete since 1.6)
Source Code
;; Defined in /nix/store/x8591dlnsvch2j4brlxddqs0axxy3w60-emacs-packages-deps/share/emacs/site-lisp/elpa/orderless-20260927.2344/orderless.el
;;; Compiling patterns to lists of regexps
(defun orderless-escapable-split (string &optional sep)
"Split STRING on SEP character, which can be escaped with backslash.
SEP defaults to space."
(let* ((sep (string (or sep ?\s)))
(quo (regexp-quote sep)))
(mapcar
(lambda (x) (string-replace "\0" sep x))
(split-string (replace-regexp-in-string
(concat "\\\\\\\\\\|\\\\" quo)
(lambda (x) (if (equal x "\\\\") x "\0"))
string 'fixedcase 'literal)
quo t))))