aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorKevin Albrecht <onlyafly@gmail.com>2011-12-07 08:32:53 +0100
committerKevin Albrecht <onlyafly@gmail.com>2011-12-07 08:32:53 +0100
commitc0bd2971c56b4acfb6c1b9a380db60b4b89cfe5b (patch)
tree93422a325e9ee283b37bc9f243514a69fafacb0a /lib/tools
parent3996fd94136ceb850fd93c732daeab919ffdcb88 (diff)
downloadotp-c0bd2971c56b4acfb6c1b9a380db60b4b89cfe5b.tar.gz
otp-c0bd2971c56b4acfb6c1b9a380db60b4b89cfe5b.tar.bz2
otp-c0bd2971c56b4acfb6c1b9a380db60b4b89cfe5b.zip
Add deps as erlang-flymake include directory.
Update erlang-flymake to recognize the "deps" folder as an include directory. This makes erlang-flymake compatible with the rebar dependency management tool's default folder structure, which puts included dependencies in "deps". Considered additionally adding deps/*/include, deps/*/ebin, and deps/*/src as include directories, but erlc's -I command line option does not support wildcards.
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/emacs/erlang-flymake.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tools/emacs/erlang-flymake.el b/lib/tools/emacs/erlang-flymake.el
index bc368e9454..2e447b55de 100644
--- a/lib/tools/emacs/erlang-flymake.el
+++ b/lib/tools/emacs/erlang-flymake.el
@@ -60,7 +60,8 @@ check on newline and when there are no changes)."
(list (concat (erlang-flymake-get-app-dir) "ebin")))
(defun erlang-flymake-get-include-dirs ()
- (list (concat (erlang-flymake-get-app-dir) "include")))
+ (list (concat (erlang-flymake-get-app-dir) "include")
+ (concat (erlang-flymake-get-app-dir) "deps")))
(defun erlang-flymake-get-app-dir ()
(let ((src-path (file-name-directory (buffer-file-name))))