From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Editing text in Emacs then pasting into something like Outlook Date: Tue, 30 Apr 2013 17:37:53 +0300 Message-ID: <87bo8wgk3i.fsf@mithlond.arda> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1367332718 1729 80.91.229.3 (30 Apr 2013 14:38:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2013 14:38:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mark Ludwig Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 30 16:38:36 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXBhP-0004bp-Oe for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 16:38:31 +0200 Original-Received: from localhost ([::1]:59932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXBhO-0001yw-Hn for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Apr 2013 10:38:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXBh6-0001pq-VD for help-gnu-emacs@gnu.org; Tue, 30 Apr 2013 10:38:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXBh0-0006WY-WA for help-gnu-emacs@gnu.org; Tue, 30 Apr 2013 10:38:12 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:50434 helo=kirsi1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXBh0-0006UW-Kt for help-gnu-emacs@gnu.org; Tue, 30 Apr 2013 10:38:06 -0400 Original-Received: from mithlond.arda (84.251.134.110) by kirsi1.inet.fi (8.5.140.03) id 5163F402013F96A3; Tue, 30 Apr 2013 17:37:58 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.72) (envelope-from ) id 1UXBgr-0000wA-Lm; Tue, 30 Apr 2013 17:37:57 +0300 In-Reply-To: (Mark Ludwig's message of "Tue, 30 Apr 2013 14:29:20 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90426 Archived-At: --=-=-= Content-Type: text/plain 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)) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJRf9dBAAoJEHGdadMkU5RQ2bIQALI+DsR3YqNbCYLwiBeW1G7q TUIDKePFS7clu6ewN/8aTfi1AiekDO0ehYRaF0AM1H7xb/YH9lLJCpHMa6rHb+Qh PrkBpDpqoEuzLiPmZB8Rx0ajmr/A8z9/erlZL40se0jSMhuoqNAum9AQVUWEtdn0 iU9XsfqMZr6VJfGXkGi6WPPAN8P5ZHDfeLtsdD7y/D0bz0VcH/6h92pD+omGJWXx n+bFojAr6SyUm2Pvcl02qSScaatRj/N+ZAw76OclNpkfLEpisZS3xeWrtXwd0fyq yujfcvbQELnbhjiUzUQsCLcb/XqU4HsJkheFjZhS2Y5jmCsjaWk93heMx9IZ9VDe VjjuKfQoJXwSd8+JbWGEL8XmHrvqn5W+KPCCqln7oAp5lxF75f4DyLStX1dSpL8N 4Cq/b8KJr5dfRUrWrTemZMWJcAzCh04yB0cIDnMYJDCuPH/Z1Hbxf8rY6vNfxpCJ faFjMLDA/E15YPvOks5fYFLUPGrQwzXy2zi/MZoLQhGGhvYg3ra62opWM5EM64wT AxZez7PRkYoTitSZZMJ57dNWx6T7osWawx/xLyMrUEYrxfLW9qwk5w0dYJHsoeYJ y/CtYTYWlGlzUuoAG7DGA9VT014DCSLFvDXzrlIlFTRbfBSujLWZDJEsMzleAvIo Ed0IIl0ezVnfA6FNwGKY =YMbK -----END PGP SIGNATURE----- --=-=-=--