       (ding)
       (evernote-minibuffer-tmp-message "[No Match]"))
      ((string= result word)
-      (let (formatted-name-displayed-name-alist completion-buf)
-        (setq formatted-name-displayed-name-alist
-              (mapcar (lambda (displayed-name)
-                        (cons
-                         (evernote-assoc-cdr
-                          displayed-name
-                          evenote-note-displayed-name-formatted-name-alist)
-                         displayed-name))
-                      (all-completions
-                       word
-                       evenote-note-displayed-name-formatted-name-alist)))
-        (setq completion-buf (get-buffer-create "*Evernote-Completions*"))
-        (save-excursion
-          (set-buffer completion-buf)
-          (evernote-display-note-completion-list
-           formatted-name-displayed-name-alist)
-          (setq evernote-search-mode-formatted-name-displayed-name-alist
-                formatted-name-displayed-name-alist)
-          (evernote-search-mode))
-        (display-buffer completion-buf)))
+      (evernote-display-note-completion-buf
+       evenote-note-displayed-name-formatted-name-alist))
      (t (evernote-set-minibuffer-string result)
         (end-of-buffer)
         (if (eq t

   search-command-out))


(defun evernote-read-note-attr (note-command-out)
  "Prompts a note name and returns a note attribute"
  (let ((name-num-hash (make-hash-table :test #'equal))
        evernote-note-displayed-name-attr-alist ; used in evernote-search-mode

            "Saved search:"
            search-alist
            nil t)
           search-alist))))
      t))))


(defun evernote-open-note-common (note-command-output &optional display-completion)
  "Common procedure of opening a note"
  (let (note-attr note-guid note-name note-edit-mode note-tags opened-buf)
    (setq note-attr (evernote-read-note-attr note-command-output display-completion))
    (setq note-guid (evernote-assoc-cdr 'guid note-attr)
          note-name (evernote-assoc-cdr 'name note-attr)
          note-edit-mode (evernote-assoc-cdr 'edit-mode note-attr)
