comex wrote:
On Mon, Jul 21, 2008 at 10:57 PM, Ben Caplan
<[EMAIL PROTECTED]> wrote:
On Monday 21 July 2008 12:11:32 pm comex wrote:
(Still looking for an editor that will allow me to edit text wrapped
in the Agoran style without having to unwrap it first.)
Try nano + Ctrl-J.

I've never known Ctrl-J in nano to do anything but mess up whatever
I'm working on and (since nano has no undo) require me to exit it.
...Nor does it appear to do anything on a copy of a bit of the ruleset
(such as unwrap it).

But even that would be unsatisfactory.  I want to go into a wrapped
copy of the ruleset, insert a word at a certain position, and have
everything automatically wrap over for me.  I don't know if anyone has
made anything like that.

I suppose that a script that wrapped and unwrapped everything would be
Good Enough.  Right now, my tiny scripts (just an interface to PHP's
wordwrap() function on the one hand, and a few regular expressions on
the other) wrap and unwrap "normal" text fine; however, it breaks with
the many styles of list seen throughout the Rules.  (Compare Rules
101, 2125, and 2140.)  So maybe I will hack both scripts to treat
lists properly-- if I do that, I'll post them.

Emacs' M-q command will wrap paragraphs that appear in ASCII bulleted
and numbered lists.  E.g., this sort of thing

  * this is a long paragraph full of words that I am composing in real
    time, and which breaks over at least two lines once I get to the
    end of this sentence.

and also

  1) this is another long paragraph and may I just add that composing
     random bits of prose is a pretty tedious business when I could
     probably just roll my face across the keyboard.

and even

  this is a paragraph with any leading text to indicate that it is
  part of a list but Emacs still does the right thing, because let's
  face it, Emacs is just the bees' knees when it comes to editting.
  (Let the religious wars begin.)

I.e., if you insert your word into any of the above paragraphs and
then hit M-q they will fill in the way you'd want them to.

I used this feature a great deal when I was Rulekeepor.  Particularly
as proposal authors often failed to indent their proposal texts the
requisite number of spaces.

Michael.

Reply via email to