Skip to content

Commit

Permalink
Restructure to avoid bad things with unknown builder
Browse files Browse the repository at this point in the history
This still isn't totally satisfactory... Android-mode basically just
appears to stop working, and the error message never really gets seen...
  • Loading branch information
RadicalZephyr committed May 25, 2014
1 parent 4ff130b commit ff26300
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions android-mode.el
Expand Up @@ -148,12 +148,13 @@ way.")

(defun android-root ()
"Look for AndroidManifest.xml file to find project root of android application."
(locate-dominating-file
default-directory
(or (plist-get android-mode-root-file-plist
android-mode-builder)
(error "%s was not found in `android-mode-root-file-plist'"
android-mode-builder))))
(let ((dominating-file (plist-get android-mode-root-file-plist
android-mode-builder)))
(if dominating-file
(locate-dominating-file default-directory dominating-file)
(message "%s was not found in `android-mode-root-file-plist'"
android-mode-builder)
nil)))

(defmacro android-in-root (body)
"Execute BODY form with project root directory as
Expand Down

0 comments on commit ff26300

Please sign in to comment.