From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67462: 30.0.50; prog-fill-reindent-defun does not respect buffer-local fill-paragraph-function Date: Tue, 28 Nov 2023 22:28:18 +0100 Message-ID: <87h6l5bma5.fsf@sappc2.fritz.box> References: <87zfz09q9d.fsf@sappc2.fritz.box> <87wmu49lgv.fsf@sappc2.fritz.box> <83a5qz9ysx.fsf@gnu.org> <87wmu3gdrz.fsf@sappc2.fritz.box> <94d96409-688b-b842-8efd-5562cb5715e4@gutov.dev> Reply-To: Jens Schmidt Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30020"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: 67462@debbugs.gnu.org, Eli Zaretskii To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 28 22:29:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r85dm-0007Y8-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Nov 2023 22:29:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r85dY-0001nx-KX; Tue, 28 Nov 2023 16:28:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r85dW-0001nc-Pw for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 16:28:54 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r85dW-00089b-Hz for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 16:28:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r85dd-000637-Ja for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 16:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jens Schmidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Nov 2023 21:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67462 X-GNU-PR-Package: emacs Original-Received: via spool by 67462-submit@debbugs.gnu.org id=B67462.170120692723228 (code B ref 67462); Tue, 28 Nov 2023 21:29:01 +0000 Original-Received: (at 67462) by debbugs.gnu.org; 28 Nov 2023 21:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:48341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r85dP-00062a-9a for submit@debbugs.gnu.org; Tue, 28 Nov 2023 16:28:47 -0500 Original-Received: from mr4.vodafonemail.de ([145.253.228.164]:36386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r85dN-00062N-8f for 67462@debbugs.gnu.org; Tue, 28 Nov 2023 16:28:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1701206912; bh=nWC5Fun7oVPOPrtXmIdwaOZASfMXKdHgZbzij9wlEKw=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=ez5t1tXC6yRTLK+JvZbtCx6b5MBPQYvmKmhheyEhiRMu4K/t+E9HEWa/yqOPgj/h6 68/v9HFxwVuTQ+R+GvXmfYNHLA/vX3AxNE92fVPDQIBFbB4kU6dsj6CXQVqSZga5Ph JMSwmg7gb/3sj421Dcty3BirRDe8U9OMUIieHAyU= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr4.vodafonemail.de (Postfix) with ESMTPS id 4SfwYX4ch8z1xp5; Tue, 28 Nov 2023 21:28:32 +0000 (UTC) Original-Received: from sappc2 (port-92-196-51-33.dynamic.as20676.net [92.196.51.33]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4SfwYL1tmxzMks9; Tue, 28 Nov 2023 21:28:19 +0000 (UTC) In-Reply-To: <94d96409-688b-b842-8efd-5562cb5715e4@gutov.dev> (Dmitry Gutov's message of "Mon, 27 Nov 2023 22:40:35 +0200") X-purgate-type: clean X-purgate: clean X-purgate-size: 846 X-purgate-ID: 155817::1701206908-577FF24F-E57AA120/0/0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275180 Archived-At: Dmitry Gutov writes: > On 27/11/2023 22:08, Jens Schmidt wrote: >> A very conservative aproach to keep that knowledge of such modes would >> be something along the following lines: > > Or a less conservative approach: rebind the key in all modes > where its clear that they handle the outside-of-comments > refilling themselves. Right. You basically propose an opt-out of a new feature (which *could* break work flows), I propose an opt-in. IMO the opt-out would have the disadvantage that all the major modes on *ELPA or elsewhere would not be covered. If we go for the opt-out, probably the NEWS entry for command `prog-fill-reindent-defun' should be updated to mention that M-q could be rebound to `fill-paragraph' should the new command not have the desired effect? Or does that go without saying?