Function: org-protocol-assign-parameters

org-protocol-assign-parameters is a byte-compiled function defined in org-protocol.el.gz.

Signature

(org-protocol-assign-parameters DATA DEFAULT-ORDER)

Documentation

Return a property list of parameters from DATA.

Key names are taken from DEFAULT-ORDER, which should be a list of symbols. If DEFAULT-ORDER is shorter than the number of values specified, the rest of the values are treated as :key value pairs.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-protocol.el.gz
(defun org-protocol-assign-parameters (data default-order)
  "Return a property list of parameters from DATA.
Key names are taken from DEFAULT-ORDER, which should be a list of
symbols.  If DEFAULT-ORDER is shorter than the number of values
specified, the rest of the values are treated as :key value pairs."
  (let (result)
    (while default-order
      (setq result
	    (append result
		    (list (pop default-order)
			  (pop data)))))
    (while data
      (setq result
	    (append result
		    (list (intern (concat ":" (pop data)))
			  (pop data)))))
    result))