all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Mark Ludwig <ludwig.mark@siemens.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Editing text in Emacs then pasting into something like Outlook
Date: Tue, 30 Apr 2013 17:37:53 +0300	[thread overview]
Message-ID: <87bo8wgk3i.fsf@mithlond.arda> (raw)
In-Reply-To: <BC5672F8AD4C054BAF167C9801500D1ABCB206F8@USSLMMBX003.net.plm.eds.com> (Mark Ludwig's message of "Tue, 30 Apr 2013 14:29:20 +0000")

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

Mark Ludwig [2013-04-30 14:29:20 +00:00] wrote:

> 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.)

How about setting fill-column to a very large value, like 999999 and
then fill-paragraph (M-q)?

I use my own flowing-text-mode when editing text with one-line
paragraphs. Here's the definition:


    (define-derived-mode flowing-text-mode text-mode "Text[flow]"
      "Major mode for editing text with long flowing lines."
      (visual-line-mode 1)
      (whitespace-newline-mode 1)
      (set (make-local-variable 'tab-stop-list)
           (number-sequence 4 100 4))
      (setq indent-tabs-mode nil
            fill-column 99999))

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 14:29 Editing text in Emacs then pasting into something like Outlook Ludwig, Mark
2013-04-30 14:37 ` Teemu Likonen [this message]
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=87bo8wgk3i.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ludwig.mark@siemens.com \
    /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.