help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting difference in emacs's "filling".


From: Pascal J. Bourguignon
Subject: Re: Interesting difference in emacs's "filling".
Date: Mon, 18 Jan 2010 13:54:21 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

dkcombs@panix.com (David Combs) writes:

> Interesting difference in emacs's "filling".
>
> Here's a long line that needs filling.  
>
> NOTE WELL: that leading "|" is as much part of the line as the "N" in "Now":
>
> | Now is the time for all men all men all men all men all men all men all men 
> all men all men  all men all men all men to
>
> So, using two different ways, let's do a "fill" on it:
>
> --- (1) via the good-ole M-q, we get this:
>
> | Now is the time for all men all men all men all men all men all men
>   all men all men all men all men all men all men to
>
>
> --- (2) Whereas with (the super-useful) fill-individual-paragraphs it's:
>
> | Now is the time for all men all men all men all men all men all men
> | all men all men all men all men all men all men to
>
>
> ------------- QUESTION: fill-individual-paragraphs is SO nice, so:
>
> Each of two results has its uses -- I just want the ability choose.

Then either type:

M-x fill-individual-paragraphs RET

or

M-x fill-paragraph RET


> Especially with the unbelievably-useful "fill-individual-paragraphs".
> So, how to tell M-x fill-individual-paragraphs which format to use?

(defun my-fill (simplep start end)
  (interactive "P\nr")
  (if simplep
     (fill-paragraph nil)
     (fill-individual-paragraphs start end)))

And try:

M-x my-fill RET

vs.

C-u M-x my-fill RET


  

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]