summaryrefslogtreecommitdiffstats
path: root/site/blog/Ask_for_selection_in_emacs_addendum.org
blob: 101f32a14bea09d4a56ed880ddb0aadd11ae14f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#+TITLE: Ask for selection in Emacs, addendum
#+DATE: 2012-05-02 21:52:00
#+TAGS: emacs elisp coding

I erroneously assumed (and thought I tested) that using ~tmm-prompt~
could be done the way I described before. The ~oni:mailbox-map~ variable
needs to be a little different from what I'd shown before, namely:

#+BEGIN_SRC elisp
  (defvar oni:mailbox-map
    '("top" ("menu" ("ryulash.org" . "ryu")
             ("ninthfloor" . "ninthfloor")
             ("gmail" . "gmail")
             ("aethon" . "aethon")))
    "A mailbox map for use with `tmm-prompt'.")
#+END_SRC

Without the ~top~ and ~menu~ items it will complain about wrong arguments.