all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: "eqyiel@gmail.com" <eqyiel@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Editing text in Emacs then pasting into something like Outlook
Date: Wed, 1 May 2013 15:51:38 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1ABCB21D2A@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <87wqrj9vb6.fsf@Cassiopeiae.zomgnet>

> From: eqyiel@gmail.com, Tuesday, April 30, 2013 11:30 PM
 
> 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

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 
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 <tlikonen@iki.fi>, this buffer will be in the
previously-shared flowing-text-mode, where original (fill-paragraph) on 
M-q will do the right thing.)

Thanks!
Mark




      reply	other threads:[~2013-05-01 15:51 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
2013-05-01  4:29 ` eqyiel
2013-05-01 15:51   ` Ludwig, Mark [this message]

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=BC5672F8AD4C054BAF167C9801500D1ABCB21D2A@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=eqyiel@gmail.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.