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: David Combs
Subject: Re: Interesting difference in emacs's "filling".
Date: Sat, 30 Jan 2010 00:40:56 +0000 (UTC)

In article <87zl4bh8ua.fsf@hubble.informatimago.com>,
Pascal J. Bourguignon <pjb@informatimago.com> wrote:
>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/


THANKS!

David




reply via email to

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