Function: xdg--user-dirs-parse-line

xdg--user-dirs-parse-line is a byte-compiled function defined in xdg.el.gz.

Signature

(xdg--user-dirs-parse-line)

Documentation

Return pair of user-dirs key to directory value in LINE, otherwise nil.

This should be called at the beginning of a line.

Source Code

;; Defined in /usr/src/emacs/lisp/xdg.el.gz
(defun xdg--user-dirs-parse-line ()
  "Return pair of user-dirs key to directory value in LINE, otherwise nil.
This should be called at the beginning of a line."
  (skip-chars-forward "[:blank:]")
  (when (and (/= (following-char) ?#)
             (looking-at xdg-line-regexp))
    (let ((k (match-string 1))
          (v (match-string 2)))
      (when (and k v) (cons k (xdg--substitute-home-env v))))))