Skip to content

Commit

Permalink
Add log message to undercover--edebug-files
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Jan 28, 2021
1 parent 14ede03 commit cfe398b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions undercover.el
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ Otherwise, return nil."

(defun undercover--edebug-files (files)
"Use the `edebug' package to instrument all macros and functions in FILES."
(undercover--message 6 "Preparing to instrument %d file%s."
(length files) (if (= (length files) 1) "" "s"))
(when files
(let ((regexp (->> (-map #'expand-file-name files) (regexp-opt) (format "^%s$"))))
(add-to-list 'file-name-handler-alist (cons regexp 'undercover-file-handler)))))
Expand Down

0 comments on commit cfe398b

Please sign in to comment.