Function: xdg-desktop-strings

xdg-desktop-strings is a byte-compiled function defined in xdg.el.gz.

Signature

(xdg-desktop-strings VALUE)

Documentation

Partition VALUE into elements delimited by unescaped semicolons.

Source Code

;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg-desktop-strings (value)
  "Partition VALUE into elements delimited by unescaped semicolons."
  (let (res)
    (setq value (string-trim-left value))
    (dolist (x (split-string (string-replace "\\;" "\0" value) ";"))
      (push (string-replace "\0" ";" x) res))
    (when (null (string-match-p "[^[:blank:]]" (car res))) (pop res))
    (nreverse res)))