From d6fd69c28a5929521528b3648e10908fc33d6030 Mon Sep 17 00:00:00 2001 From: Tristin Celestin Date: Sat, 30 Oct 2010 16:21:52 -0400 Subject: [PATCH] mojo-hard-reset requires the name of the image to reset --- src/code.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/code.el b/src/code.el index 1f75215..998fedb 100644 --- a/src/code.el +++ b/src/code.el @@ -203,10 +203,12 @@ NAME is the name of the scene." (mojo-cmd "palm-emulator" (list "--list"))) ;;* interactive -(defun mojo-hard-reset () +(defun mojo-hard-reset (image) "Perform a hard reset, clearing all data." - (interactive) - (mojo-cmd "palm-emulator" (list "--reset"))) + (interactive "sImage name: \n") + (if (string= "" image) + (error "Run mojo-list-emulator-images to see what images are available") + (mojo-cmd "palm-emulator" (list "--reset" image)))) (defun mojo-browse () "Use `browse-url' to visit your application with Palm Host."