From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: eqyiel@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Editing text in Emacs then pasting into something like Outlook Date: Wed, 01 May 2013 13:59:49 +0930 Message-ID: <87wqrj9vb6.fsf@Cassiopeiae.zomgnet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367382612 9340 80.91.229.3 (1 May 2013 04:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 04:30:12 +0000 (UTC) Cc: , "help-gnu-emacs@gnu.org" To: "Ludwig\, Mark" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 01 06:30:12 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 1UXOgG-0007XY-Df for geh-help-gnu-emacs@m.gmane.org; Wed, 01 May 2013 06:30:12 +0200 Original-Received: from localhost ([::1]:37312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXOgF-0004HK-UM for geh-help-gnu-emacs@m.gmane.org; Wed, 01 May 2013 00:30:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXOg2-0004HF-CR for help-gnu-emacs@gnu.org; Wed, 01 May 2013 00:29:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXOg1-0002aT-B8 for help-gnu-emacs@gnu.org; Wed, 01 May 2013 00:29:58 -0400 Original-Received: from mail-pd0-f173.google.com ([209.85.192.173]:42361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXOg1-0002aK-42 for help-gnu-emacs@gnu.org; Wed, 01 May 2013 00:29:57 -0400 Original-Received: by mail-pd0-f173.google.com with SMTP id v14so667213pde.4 for ; Tue, 30 Apr 2013 21:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=jPAkQIjdO3YxlXM+k387O6F/4oXdRFMu91cJGuM+Q6Q=; b=evRmKt8lgc9p/tYNhiXGJii91tNtNQOZBsIFeHTR0zHU3OZMRZLg7sgixffVSB84mo FhTgzGcdX5qs7TWDo4yJUwSsNRxWojQ9tly7RX7ZesH3QI1+MfjxVrST4jS3M9ITTSff 0fD6ASwpZXi93DaZoNtrxKQFpnRPWylk0WhYwyUhhmBlQrGdKVR0qrZz7R5UobKHCm2P WXWnL+J6JR9g5nCuDl9/pm38Q/xAzWxtVo41jJUe4wAB8SDpaVCxZ1kYhLTpVSRTOF1A 4W0rcxcquAqDbV+qitlvzmFQ1UQwaWoECZqJOOmKA8L46PxSyMn/BgCSTluqbUvfUpxc s3Yg== X-Received: by 10.66.138.109 with SMTP id qp13mr3021065pab.127.1367382595780; Tue, 30 Apr 2013 21:29:55 -0700 (PDT) Original-Received: from Cassiopeiae.zomgnet (ppp118-210-9-6.lns20.adl2.internode.on.net. [118.210.9.6]) by mx.google.com with ESMTPSA id be7sm1953424pad.20.2013.04.30.21.29.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 30 Apr 2013 21:29:54 -0700 (PDT) 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 3.x [fuzzy] X-Received-From: 209.85.192.173 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:90443 Archived-At: While searching for a solution a few months ago, I borrowed some code from Xah Lee [1], but replaced his bigFillColumnVal "4333999" with most-positive-fixnum, which changes depending on the system - I think. On mine it is 2305843009213693951. There is also a slightly more readable implementation I found on StackOverflow [2]. I now have it bound to M-q. Works great! [1] http://ergoemacs.org/emacs/modernization_fill-paragraph.html [2] http://stackoverflow.com/a/14992483/2204400