Function: orderless-escapable-split
orderless-escapable-split is a byte-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 ~/.emacs.d/elpa/orderless-20260519.1029/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))))