all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Editing text in Emacs then pasting into something like Outlook
Date: Tue, 30 Apr 2013 14:29:20 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1ABCB206F8@USSLMMBX003.net.plm.eds.com> (raw)

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




             reply	other threads:[~2013-04-30 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 14:29 Ludwig, Mark [this message]
2013-04-30 14:37 ` Editing text in Emacs then pasting into something like Outlook Teemu Likonen
2013-05-01  4:29 ` eqyiel
2013-05-01 15:51   ` Ludwig, Mark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BC5672F8AD4C054BAF167C9801500D1ABCB206F8@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.