Coverage report: /home/ellis/comp/core/app/skel/comp/dir-locals.lisp
Kind | Covered | All | % |
expression | 0 | 24 | 0.0 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; skel/comp/dir-locals.lisp --- Support for Emacs dir-locals.el
3
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Directory-Local-Variables.html
6
(in-package :skel/comp/dir-locals)
7
(defvar *dir-locals-file* ".dir-locals.el")
8
(deftype dir-local-var-designator () '(or symbol string))
10
(defclass sk-dir-locals (sk-component ast)
13
(defmethod sk-new ((self (eql :dir-locals)) &rest args)
14
(apply #'make-instance 'sk-dir-locals args))
16
(defmethod sk-load-component ((kind (eql :dir-locals)) (form pathname) &optional (path (project-root)))
17
(declare (ignore kind))
18
(sk-new :dir-locals :ast (read-sxp-file (make-pathname :name (namestring form) :type "el"
19
:directory (namestring path)))))