From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ludwig, Mark" Newsgroups: gmane.emacs.help Subject: RE: Editing text in Emacs then pasting into something like Outlook Date: Wed, 1 May 2013 15:51:38 +0000 Message-ID: References: <87wqrj9vb6.fsf@Cassiopeiae.zomgnet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367423517 2158 80.91.229.3 (1 May 2013 15:51:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 May 2013 15:51:57 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "eqyiel@gmail.com" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 01 17:51:57 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 1UXZJz-00040G-K0 for geh-help-gnu-emacs@m.gmane.org; Wed, 01 May 2013 17:51:55 +0200 Original-Received: from localhost ([::1]:48111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZJz-0004IJ-AY for geh-help-gnu-emacs@m.gmane.org; Wed, 01 May 2013 11:51:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZJn-0004I2-Us for help-gnu-emacs@gnu.org; Wed, 01 May 2013 11:51:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXZJm-00034D-En for help-gnu-emacs@gnu.org; Wed, 01 May 2013 11:51:43 -0400 Original-Received: from usslmhub002.ugs.com ([134.244.32.85]:47135 helo=ugs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXZJm-00033p-9e for help-gnu-emacs@gnu.org; Wed, 01 May 2013 11:51:42 -0400 Original-Received: from USSLMMBX002.net.plm.eds.com (161.134.138.62) by USSLMHUB002.net.plm.eds.com (134.244.32.85) with Microsoft SMTP Server (TLS) id 14.2.318.1; Wed, 1 May 2013 10:51:39 -0500 Original-Received: from USSLMMBX003.net.plm.eds.com ([169.254.2.119]) by USSLMMBX002.net.plm.eds.com ([169.254.1.141]) with mapi id 14.02.0318.001; Wed, 1 May 2013 10:51:39 -0500 Thread-Topic: Editing text in Emacs then pasting into something like Outlook Thread-Index: Ac5FqXKlawcbhWdqSSmlJw7bWpWIHwAexkogABbF+2A= In-Reply-To: <87wqrj9vb6.fsf@Cassiopeiae.zomgnet> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [146.122.224.189] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 134.244.32.85 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:90446 Archived-At: > From: eqyiel@gmail.com, Tuesday, April 30, 2013 11:30 PM =20 > While searching for a solution a few months ago, I borrowed some code fro= m > Xah Lee [1], but replaced his bigFillColumnVal "4333999" with most-positi= ve- > fixnum, which changes depending on the system - I think. > On mine it is 2305843009213693951. >=20 > There is also a slightly more readable implementation I found on StackOve= rflow > [2]. I now have it bound to M-q. Works great! >=20 > [1] http://ergoemacs.org/emacs/modernization_fill-paragraph.html > [2] http://stackoverflow.com/a/14992483/2204400 I like to say "never is a long time," but this seems to violate the predictability of the behavior of M-q such that I truly /never/ would have thought to make this part of what M-q does.... (I /can/ see the utility of it when used purely interactively, but doesn't the self-inverting state information need to get reset on movement=20 of point across paragraph boundaries?) Mostly I won't modify M-q, I suppose, because I want to be able to use it in macros. I am thinking about using a prefix argument (interactively) on M-q to invoke the "unfill" behavior, so it would be C-u M-q. (I don't intend to need this frequently, instead using a separate Emacs frame showing a buffer I'll use for my copy/paste. Thanks to Teemu Likonen , this buffer will be in the previously-shared flowing-text-mode, where original (fill-paragraph) on=20 M-q will do the right thing.) Thanks! Mark