From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.devel Subject: Re: fill-paragraph ill designed Date: Sat, 29 Aug 2015 21:47:05 +0200 Message-ID: <55E20C39.2070809@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> <55E002A3.9090600@online.de> <87oahr95tn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1440877663 535 80.91.229.3 (29 Aug 2015 19:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2015 19:47:43 +0000 (UTC) Cc: Tassilo Horn , Richard Stallman , Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 29 21:47:34 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 1ZVm69-0006oF-9h for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2015 21:47:33 +0200 Original-Received: from localhost ([::1]:54283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm69-0000Vv-4H for ged-emacs-devel@m.gmane.org; Sat, 29 Aug 2015 15:47:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm5v-0000Ve-Au for emacs-devel@gnu.org; Sat, 29 Aug 2015 15:47:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVm5u-0006eK-B5 for emacs-devel@gnu.org; Sat, 29 Aug 2015 15:47:19 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:64129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVm5o-0006Sh-Ky; Sat, 29 Aug 2015 15:47:12 -0400 Original-Received: from [192.168.178.31] ([77.12.119.13]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MQLgi-1Z8laC06M0-00Tm9Y; Sat, 29 Aug 2015 21:47:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87oahr95tn.fsf@gnu.org> X-Provags-ID: V03:K0:+fxrMb5rBWz4vdZhTHxXAxU1LEvL6kpc13VzHcLrbhjhCQ7mU7q Ujv9XtHb7HghMms7VJtkrJWNb8PCQxS8cHom5hQRIuQMvVU3isi3hEBe6nVBJ/y04W4oAeI k6pZK1XhjtYiU7WurqhqLgCWEdAM6si1TN8CC+EiSPm0AEa6wq6DVaxIbWOhrCJtAG3cdey w6x2tRKYpVZsuzp/9kkJw== X-UI-Out-Filterresults: notjunk:1;V01:K0:8CCfSjUkDPg=:UcFEt9nh/1wxwq0KxQExwo 4RAfj9lQdZ6LC0fl4cbMfFHhXjUx8Kv3G/DsSbVa4kbSUwZZMsyjeNDXaiBMwwJUSgScL+ijH 9zdg7ja4HCV3Mtm5UF7ofg7A7zlPcLTF2Gaddganea08V3OlJgfmJz0oLyd5ehv35k0E266YV wpHaOYketlYPsrIVthgVyywfxtDe4gC6LjJCN02S+9m1A2YtvefAfQ35zldT8kEWFBkvya+q4 AX9tFApHX6+h+6RUmWMLkPtRroM28alnmIS9YBbLV0XLG9JP2532pLDwcQgJP2fah7aFawxXl 1o6cMMkOPsavzVDmvR+4P+wFq6TTrCPVpV+YMSb9CSWULTptuGfyXc308etS3iloijQakBmKV OC8vOP/J2jJ32/1WoALugmJDIIXVx6YuvfA8qmB0LD8q+T4FBREKCjWHBB/gWZeS20V64vwEx jCbor+jc9XRdyeaWREYv5/Uf/V3CH7FCv6o9qIPV5dVhgAxz71teiaFXwiuGaoyQ0YKZ+RNJj 1CClSPMQxypBKVCT1k9Kmo4DwRqzsagZXDczAz2XL7I+AF1Id7fKfSzUuLTHa2ZOium077xh9 v+kDtQACTbPM/CJJFaEWk8xB5gUmUzehKCud27imoo6vm/yDYXNp6VyNi21VZlgWf4E71hOA+ qGPx1SCQ/86oeEHrZsYvLtewmRUQ3ft8Hcm4ZLhedcy4ndkTMyT6FW6jUX5Pou5NtdoRep+/+ OSO3P40X2eo3A1cN X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.10 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:189299 Archived-At: Am 28.08.2015 um 10:26 schrieb Tassilo Horn: > Andreas Röhler writes: > >> 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. > Well, then the solution is easy for you. In your mode's map, remap > `fill-paragraph' to `your-mode-fill-paragraph' instead of defining it as > `fill-paragraph-function', e.g., > > (define-key your-mode-map [remap fill-paragraph] > #'your-mode-fill-paragraph) > > Then M-q (or whatever the user has configured to be `fill-paragraph') > will call your mode-specific paragraph filling function. > > Bye, > Tassilo > > Hmm, it's not about my modes. Suggest the following design of fill-paragraph (if fill-paragraph-function use it if not: (determine beg/end of paragraph by forward-...) (fill-region beg end) That's all.