diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-20 03:30:47 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-09-20 03:30:47 +0100 |
commit | 96492a39a837dd071a13fce0e80ab389a7de3b33 (patch) | |
tree | 647fbf536e6b7770740fd035216d07c8520d8b30 /cider-util.el | |
parent | 6473cd433fb8f49f316706ba4acd09bc68aa305e (diff) |
Move tooling-file-p and ensure-op-supported out of cider-interaction.el
Diffstat (limited to 'cider-util.el')
-rw-r--r-- | cider-util.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cider-util.el b/cider-util.el index 55bcc404..0d11c6ad 100644 --- a/cider-util.el +++ b/cider-util.el @@ -91,6 +91,13 @@ prompt if that throws an error." #'cider-read-symbol-name #'cider-try-symbol-at-point)) +(defun cider--tooling-file-p (file-name) + "Return t if FILE-NAME is not a 'real' source file. +Currently, only check if the relative file name starts with 'form-init' +which nREPL uses for temporary evaluation file names." + (let ((fname (file-name-nondirectory file-name))) + (string-match-p "^form-init" fname))) + ;;; Text properties (defun cider-maybe-intern (name) |