From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: fill-paragraph ill designed Date: Tue, 25 Aug 2015 10:53:59 -0400 Message-ID: References: <55DC2621.4030905@online.de> <87bndvivq6.fsf@gnu.org> <55DC3A4B.6040708@online.de> <87r3mrh88x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440514471 12795 80.91.229.3 (25 Aug 2015 14:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2015 14:54:31 +0000 (UTC) Cc: emacs-devel To: Andreas =?windows-1252?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 16:54:21 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 1ZUFcC-00039t-Ni for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 16:54:20 +0200 Original-Received: from localhost ([::1]:60579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUFcB-0007Yg-U1 for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 10:54:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUFbx-0007YO-Sg for emacs-devel@gnu.org; Tue, 25 Aug 2015 10:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUFbs-0004s1-Ty for emacs-devel@gnu.org; Tue, 25 Aug 2015 10:54:05 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:23051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUFbs-0004rs-QI for emacs-devel@gnu.org; Tue, 25 Aug 2015 10:54:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AsEwA731xV/5P+d0tcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbM/gUUjhBQigngBAQE X-IPAS-Result: A0AsEwA731xV/5P+d0tcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBbM/gUUjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="161324175" Original-Received: from 75-119-254-147.dsl.teksavvy.com (HELO ceviche.home) ([75.119.254.147]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Aug 2015 10:54:01 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0C22866110; Tue, 25 Aug 2015 10:54:00 -0400 (EDT) In-Reply-To: <87r3mrh88x.fsf@gnu.org> (Tassilo Horn's message of "Tue, 25 Aug 2015 14:18:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:189163 Archived-At: > `LaTeX-fill-paragraph'. In contrast to the normal `fill-paragraph', it > ensures that verbatim macros will never be wrapped, e.g., \verb|foo bar| > will always stay on one line which is very important. A wrapped > verbatim macro is an error. Isn't that what fill-nobreak-predicate is for? > So now I'm curious, too. What's the right way for a mode to define its > own filling rules? For fill-region? There isn't any that can cover all known cases like fill-paragraph-function does for fill-paragraph :-( Stefan