 ;;
 ;; evernote-mode home page is at:
 ;; Author: Yusuke Kawakami
-;; Version: 0.11
+;; Version: 0.12
 ;; Keywords: tools
 
 ;; This emacs lisp offers the interactive functions to open, edit, and update notes of Evernote.

        (read-string "New Saved search name:"
                     (evernote-assoc-cdr 'name search-attr))
        (read-string "New Query:"
                     (evernote-assoc-cdr 'query search-attr)))))))


;;
;; Helper functions.
;;

(defun evernote-command-with-auth (func &rest args)
  "Add or remove tags from/to the note"
  (let ((error-code (catch 'error (apply func args))))
    (if (or (eq error-code evernote-error-invalid-auth)
            (eq error-code evernote-error-auth-expired))
        (let ((error-code (catch 'error (evernote-command-login))))
          (if (eq error-code t)
              (apply func args)
            (message (evernote-error-message error-code))))
      (message (evernote-error-message error-code)))))


(defun evernote-get-tag-alist (tag-command-out)

                                     name
                                     tags
                                     edit-mode)
       (evernote-change-major-mode-from-note-name name)
       (evernote-mode (evernote-eval-command-result)
                      name
                      tags
                      edit-mode)
       (set-buffer-modified-p nil))
     t)))


(defun evernote-write-note ()
