JusticeVision (Democracy University): Email Orders
- Time-stamp: "2003-03-11 19:38:59 cymbala"
- WHY?
- HOW?
- First, prepare an empty buffer. Open Gnu Emacs. Switch to
a temporary work buffer, called
*scratch*. Delete contents of buffer
(keys):
[Home] [End] Ctrl-w
- Open an email in AOL. It has an order that needs to be
inserted into Microsoft Works. Select All. Copy.
- When contents of email message is in clipboard, switch
back to Emacs. Paste email into
*scratch*
buffer. Follow these instructions. To see an example of what
it should look like, click on "this function" below and see
example at bottom.
- Add a line with two dashes.
- On next line, type order.
- On next 2 lines, move first & last name.
- On next 2 lines, move address1 & address2. Use a
blank line for address2 if their address has only one
line.
- On next 3 lines, move city, state & zip.
- OPTIONAL: On one of the next 5 lines under zip,
put "
p="
followed by their phone number.
- OPTIONAL: On one of the next 5 lines under zip,
put "
e="
followed by their email address.
- OPTIONAL: On one of the next 5 lines under zip,
put "
w="
followed by their web page URL.
- OPTIONAL: On two (2) of the next 5 lines under zip,
put "
s="
followed by "subscriber" and
put "pc="
followed by "postcast" and
if they want to subscribe to Democracy University.
- HINT: To reduce typing, use
dabbrev-expand
(keys: M=/) to "expand previous word
'dynamically'".
Store "s=subscriber" and
"pc=postcast" in some other buffer. After
that, these eight (8) keys will add a subscription.
Do the following, where
"M-x" is [Esc]
followed by x (separately, not
together, plus don't type the spaces or dashes)
(keys):
s= M-/
pc= M-/
- In
*scratch* buffer,
execute this
function (maybe using a function key like
[f5]—see below).
- In Microsoft Works, move to first column of an empty row and
paste. Check the results.
- It didn't work!
- Is information in your
*scratch* buffer
arranged and formatted correctly? Look at the example
appearing at bottom of function code (click "this
function" above).
- Is the function loaded? Try the following
(with an implied
Enter at end):
M-x my-email-order-paste-prep
- If function is not loaded, add this to your Emacs
initialization file:
(load-file "c:/path/to/emailord.el")
(global-set-key [f5] 'my-email-order-paste-prep)
- To determine which is your Emacs initialization file, do
this (with an implied
Enter at end):
M-: user-init-file
- A few words about the function...
- tabs are written like this:
\t
- to change field order and spacing between fields,
modify:
setq output