unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Editing text in Emacs then pasting into something like Outlook
@ 2013-04-30 14:29 Ludwig, Mark
  2013-04-30 14:37 ` Teemu Likonen
  2013-05-01  4:29 ` eqyiel
  0 siblings, 2 replies; 4+ messages in thread
From: Ludwig, Mark @ 2013-04-30 14:29 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-01 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30 14:29 Editing text in Emacs then pasting into something like Outlook Ludwig, Mark
2013-04-30 14:37 ` Teemu Likonen
2013-05-01  4:29 ` eqyiel
2013-05-01 15:51   ` Ludwig, Mark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).