Function: editorconfig-core-handle-get-properties

editorconfig-core-handle-get-properties is a byte-compiled function defined in editorconfig-core-handle.el.gz.

This function is obsolete since 0.8.0; use editorconfig-core-handle-get-properties-hash instead.

Signature

(editorconfig-core-handle-get-properties HANDLE FILE)

Documentation

Return list of alist of properties from HANDLE for FILE.

The list returned will be ordered by the lines they appear.

If HANDLE is nil return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/editorconfig-core-handle.el.gz
(defun editorconfig-core-handle-get-properties (handle file)
  "Return list of alist of properties from HANDLE for FILE.
The list returned will be ordered by the lines they appear.

If HANDLE is nil return nil."
  (declare (obsolete editorconfig-core-handle-get-properties-hash "0.8.0"))
  (when handle
    (let* ((dir (file-name-directory (editorconfig-core-handle-path handle)))
           (file (file-relative-name file dir)))
      (cl-loop for section in (editorconfig-core-handle-sections handle)
               for props = (editorconfig-core-handle-section-get-properties
                            section file)
               when props collect (copy-alist props)))))