From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Interesting difference in emacs's "filling". Date: Mon, 18 Jan 2010 13:54:21 +0100 Organization: Informatimago Message-ID: <87zl4bh8ua.fsf@hubble.informatimago.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263822076 31643 80.91.229.12 (18 Jan 2010 13:41:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 13:41:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 14:41:08 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWrqo-0006QU-VF for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 14:41:03 +0100 Original-Received: from localhost ([127.0.0.1]:44587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWrqp-0000gm-U7 for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 08:41:03 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-X-Trace: individual.net jQVZEArEaqKVoGR4W2UnGgyvbZ9GMs9Ia2WyJ9HiH2DxBnI08K Cancel-Lock: sha1:ODY5MmE5NGZmYjUwNDBiNzUyOWViMjgzMGM4NTg2NTdiMmI1NzQ3Ng== sha1:SGfiEES52V3J+cccUfPLeJ6Jkm8= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:176223 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71294 Archived-At: 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/