Function: editorconfig-core-handle
editorconfig-core-handle is a byte-compiled function defined in
editorconfig-core-handle.el.gz.
Signature
(editorconfig-core-handle CONF)
Documentation
Return EditorConfig handle for CONF, which should be a file path.
If CONF does not exist return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/editorconfig-core-handle.el.gz
(defun editorconfig-core-handle (conf)
"Return EditorConfig handle for CONF, which should be a file path.
If CONF does not exist return nil."
(when (file-readable-p conf)
(let ((cached (gethash conf editorconfig-core-handle--cache-hash))
(mtime (nth 5 (file-attributes conf))))
(if (and cached
(equal (editorconfig-core-handle-mtime cached) mtime))
cached
(let ((parsed (editorconfig-core-handle--parse-file conf)))
(puthash conf parsed editorconfig-core-handle--cache-hash))))))