From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: fill-paragraph ill designed Date: Fri, 28 Aug 2015 08:41:39 +0200 Message-ID: <55E002A3.9090600@online.de> References: <55DC2621.4030905@online.de> <55DD5D02.9090407@online.de> <87bndule6e.fsf@gnu.org> <55DDAF7D.4000809@online.de> <87a8temdei.fsf@gnu.org> <55DDED47.8080700@online.de> <87y4gv9b7h.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1440744127 11658 80.91.229.3 (28 Aug 2015 06:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 06:42:07 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 08:41:52 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVDMG-0005PH-6V for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 08:41:52 +0200 Original-Received: from localhost ([::1]:46243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVDMF-0004WL-BJ for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 02:41:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVDMC-0004V5-6M for emacs-devel@gnu.org; Fri, 28 Aug 2015 02:41:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVDM9-0001Rk-06 for emacs-devel@gnu.org; Fri, 28 Aug 2015 02:41:48 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:53758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVDM8-0001Rc-Pp; Fri, 28 Aug 2015 02:41:44 -0400 Original-Received: from [192.168.178.31] ([95.119.60.156]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MAvMi-1ZNYNF29XI-00A1Mf; Fri, 28 Aug 2015 08:41:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87y4gv9b7h.fsf@gnu.org> X-Provags-ID: V03:K0:qFtuWwR95ydMNCn/Zg6tTZSE1hhsPQMUPxn2RNmU7XuV+Q+0IbL m8eBBnSNb8D0niNp+bKOjmiOq1xqJrafG6z7qKKAfGTOsGFB9xSul6bSYpRIiAClSkhynar nM1laXGjUCq2nxNwY9By43frej88I91XN2mGbFrCquD+axppWz5mj4iBbErIlzqOeXr/a3o TDdj3oVPU53j+13zAs+0g== X-UI-Out-Filterresults: notjunk:1;V01:K0:gu5j0fWAR0c=:FgAFw0SGiGpT8FDcWp+3Mc SalmwD82njmqD+t67ffzsN2w+HpWevKwDGMbpJ/Djlv0GcHY+3RganE3ef4F5NQZFODeuKJs7 aU02eZXS1IFIstEVsK0QMFcGFXdgVzCI8CV6+uDV+h13orFIUr2VaVw+8FEZrCWTYSidGbkio MxiWmteJe80MImqHruur9w7r3MWYFP90ERTjm0ly1nYBF/baKi+EbJp1y+lEgWHxnGKAhviWP Ce+U6alnE0pSxLR9GfV0WCle/r4JSKTVh8M54JGzhjavudGK476E4g+Umyw3wNbv7xUcy778a /aD8kNybGsVHTUCxoKFn7FEstljgoZyCPfPdhzeed8/IlLmn039cMBAoaSqwAl7PNC4wpvzQQ o8TFPrDRCjYWC/tWy6kZr6vzgUbYC84nBEOU0+bv1chSr+Zn1ECRvIUHoSMsjXOFWCahE0PWh hlSw+KsFMfpQzcrOnodJ7onpWDB+VlLuXx2yEcynI6QiybtFm1VZ6FV+YPqY2dBNdyzQqA4m3 /ErJsJF5ujBaK3UVi93PA739ifTYZnj46vUp0ihq2jOO2lbZMn/V8fIsRgQ0/UupLX0VSSd/D nx8dtmoV3hFnciyqpfZDli6BsKx98bQkelJG1KmOoGAzK4Yoc2VmyTdhIe9S9Jtg34sW/DUXj 2IKtxqwS+cCuLHfooSNWmXQVEfU0tWPJVh2ua+r4Mlf+g1wqONGpueJC+0czEV0cIaSOq30va V/vW5b3zs3zVa1RR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.24 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189243 Archived-At: Am 28.08.2015 um 08:30 schrieb Tassilo Horn: > Stefan Monnier writes: > >>>> and call `fill-paragraph-function' on them. >>> Can't see that. May you point me at? >> fill-region doesn't (and more importantly can't) delegate to >> fill-paragraph-function since fill-paragraph-function doesn't take >> begin/end arguments. > Are you saying that there would be a problem if the region starts in the > middle of a paragraph and/or ends in the middle of another paragraph? > > I didn't test but I think that case could be solved by narrowing to the > region before doing the filling. But of course, then the first and last > line would probably be filled beyond fill-column if the region > starts/ends in the middle of a line. So the region could be extended or > shrunken to complete lines before narrowing with the negative effect > that two partial lines are either not filled or filled too much. > > So yes, it seems to be not possible to get it completely right. But > IMHO that solution is still better than simply ignoring > `fill-paragraph-function' and filling in a way which may break the > syntax of the text. > > Bye, > Tassilo > IMHO fill-region stuff doesn't belong into at all. Paragraph and region are independent notions - both with its own ideas of beginning and end. Let's keep them separated. Cheers, Andreas