unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Interesting difference in emacs's "filling".
@ 2010-01-18 10:27 David Combs
  2010-01-18 12:54 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 3+ messages in thread
From: David Combs @ 2010-01-18 10:27 UTC (permalink / raw)
  To: help-gnu-emacs

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.

Especially with the unbelievably-useful "fill-individual-paragraphs".


So, how to tell M-x fill-individual-paragraphs which format to use?

Thanks!

David




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Interesting difference in emacs's "filling".
  2010-01-18 10:27 Interesting difference in emacs's "filling" David Combs
@ 2010-01-18 12:54 ` Pascal J. Bourguignon
  2010-01-30  0:40   ` David Combs
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2010-01-18 12:54 UTC (permalink / raw)
  To: help-gnu-emacs

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/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Interesting difference in emacs's "filling".
  2010-01-18 12:54 ` Pascal J. Bourguignon
@ 2010-01-30  0:40   ` David Combs
  0 siblings, 0 replies; 3+ messages in thread
From: David Combs @ 2010-01-30  0:40 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-30  0:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-18 10:27 Interesting difference in emacs's "filling" David Combs
2010-01-18 12:54 ` Pascal J. Bourguignon
2010-01-30  0:40   ` David Combs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).