Function: editorconfig-core-handle-get-properties-hash
editorconfig-core-handle-get-properties-hash is a byte-compiled
function defined in editorconfig-core-handle.el.gz.
Signature
(editorconfig-core-handle-get-properties-hash HANDLE FILE)
Documentation
Return hash of properties from HANDLE for FILE.
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-hash (handle file)
"Return hash of properties from HANDLE for FILE.
If HANDLE is nil return nil."
(when handle
(let* ((hash (make-hash-table))
(dir (file-name-directory (editorconfig-core-handle-path handle)))
(file (file-relative-name file dir)))
(dolist (section (editorconfig-core-handle-sections handle))
(cl-loop for (key . value) in (editorconfig-core-handle-section-get-properties section file)
do (puthash (intern key) value hash)))
hash)))