From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: fill-paragraph ill designed Date: Fri, 28 Aug 2015 10:26:44 +0200 Message-ID: <87oahr95tn.fsf@gnu.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440750439 11490 80.91.229.3 (28 Aug 2015 08:27:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2015 08:27:19 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 10:27:09 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 1ZVF07-0002CU-Tt for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 10:27:08 +0200 Original-Received: from localhost ([::1]:46649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVF07-0008Jq-7E for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2015 04:27:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVEzs-0008Jk-9v for emacs-devel@gnu.org; Fri, 28 Aug 2015 04:26:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVEzo-0004vP-9g for emacs-devel@gnu.org; Fri, 28 Aug 2015 04:26:52 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:34067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVEzn-0004vJ-Sx for emacs-devel@gnu.org; Fri, 28 Aug 2015 04:26:47 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6626F20663 for ; Fri, 28 Aug 2015 04:26:47 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 28 Aug 2015 04:26:47 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=d1kWX6XIS6be496 HaJy5PD1n1VA=; b=uYL7iE6rKOBOuq31GjECRyR01gdxkdsCcdGjbewhzIZs0zL hB9J2vDkeUvVyJ/nQkeqwqNgJaSWdRjRO0fdjgQjTPM5UqyCYlzZlyoJcPLp6lZQ vVWP+/0HwjBEwVmgDi4p/y/NYj9q3sCE54C4SFdoJmFPuq0R81qTNsxiSL/Q= X-Sasl-enc: RW6IHCfXU9X/11FvEJsT2acg4cpJk18iK4ak1JrrmLtM 1440750407 Original-Received: from thinkpad-t440p (unknown [2.160.110.50]) by mail.messagingengine.com (Postfix) with ESMTPA id 90207C00018; Fri, 28 Aug 2015 04:26:46 -0400 (EDT) Mail-Followup-To: Andreas =?utf-8?Q?R=C3=B6hler?= , Stefan Monnier , emacs-devel@gnu.org In-Reply-To: <55E002A3.9090600@online.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Fri, 28 Aug 2015 08:41:39 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 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:189252 Archived-At: Andreas R=C3=B6hler 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