From caedd92eef8fe47c3925c12d8e81be911556b38b Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 11 Jan 2013 01:16:41 +0100 Subject: Update files --- site/blog/Another_way_to_get_a_selection.org | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 site/blog/Another_way_to_get_a_selection.org (limited to 'site/blog/Another_way_to_get_a_selection.org') diff --git a/site/blog/Another_way_to_get_a_selection.org b/site/blog/Another_way_to_get_a_selection.org deleted file mode 100644 index 29df13b..0000000 --- a/site/blog/Another_way_to_get_a_selection.org +++ /dev/null @@ -1,26 +0,0 @@ -#+TITLE: Another way to get a selection -#+DATE: 2012-05-03 10:04:00 -#+TAGS: emacs elisp org-mode coding - -When I was first looking into improving my mailbox selection function -I was looking at how to just ask the user for input with completions. -Though now that I came across ~tmm-prompt~ I really prefer this way of -working, at least in this case. - -However, today another function was mentioned, in response to someone -pointing out ~org-completing-read~: ~completing-read~. Wow that's a far -leap. - -Anyway: - -#+BEGIN_SRC emacs-lisp - (completing-read "Your favorite color: " - '("red" "green" "blue" "yellow")) -#+END_SRC - -This will ask for user input and provide these options as completions, -but it won't show a list of options, of provide shortcuts, like -~tmm-prompt~ does. - -It's good to know these things, and I really should read both the -emacs manual and the emacs lisp reference manual at some point. -- cgit v1.2.3-54-g00ecf