[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Editing text in Emacs then pasting into something like Outlook
From: |
Ludwig, Mark |
Subject: |
Editing text in Emacs then pasting into something like Outlook |
Date: |
Tue, 30 Apr 2013 14:29:20 +0000 |
I need commands like M-a (sentence-forward) to maximize my
productivity when writing large swaths of text, so use Emacs for it.
I learned M-a and M-e so long ago, that sometimes my fingers will hit
one of them before I realize I'm not in Emacs....
Has anyone written code to take a region or a file of plain ASCII text
written in Emacs using classical block style (with paragraphs wrapped
as in this e-mail) and transform it into something suitable for
pasting into MS Word or Outlook as raw text? (I manually unwrap using
M-^ and C-p interactively, starting at the end, backing up to the
beginning.)
This means two newlines before the second through Nth paragraph in my
case, because I usually use extra paragraph marks to make space before
the following paragraph. I'm only looking for code to "unwrap" the
text; for extra credit, actually shove it into the appropriate
cross-application "clipboard" buffer. (I copy the unwrapped region
using M-w now.)
I took a whack at rolling my own unwrap code a few years ago, but it
failed in a few cases. I will ask for advice on it here if there is
no better existing solution. Please let me know of existing solutions
to this problem. I happen to be running Emacs on Windows, but really
want a solution for all platforms, because I want this sort of thing
on UNIX periodically too.
Oh, one of the finer points here is dealing with sentences that end at
the end of a line. (I use the traditional Emacs default, so of
course, I consistently want two spaces between paragraphs.)
Thanks!
Mark Ludwig
- Editing text in Emacs then pasting into something like Outlook,
Ludwig, Mark <=