Function: custom-split-regexp-maybe
custom-split-regexp-maybe is a byte-compiled function defined in
cus-edit.el.gz.
Signature
(custom-split-regexp-maybe REGEXP)
Documentation
If REGEXP is a string, split it to a list at \|.
You can get the original back from the result with:
(mapconcat 'identity result "\\|")
IF REGEXP is not a string, return it unchanged.
Source Code
;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
;;; Utilities.
(defun custom-split-regexp-maybe (regexp)
"If REGEXP is a string, split it to a list at `\\|'.
You can get the original back from the result with:
(mapconcat \\='identity result \"\\|\")
IF REGEXP is not a string, return it unchanged."
(if (stringp regexp)
(split-string regexp "\\\\|")
regexp))