From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.bugs Subject: bug#68781: [PATCH] Don't fill yaml except comments and block scalars. Date: Mon, 29 Jan 2024 14:08:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10677"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "graham@mgmarlow.com" , 68781@debbugs.gnu.org To: Rudolf Schlatte Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 29 15:09:27 2024 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 1rUSKD-0002UZ-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jan 2024 15:09:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUSJk-0004yk-Iy; Mon, 29 Jan 2024 09:08: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 1rUSJi-0004y4-O3 for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 09:08:55 -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 1rUSJi-0000Km-Fu for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 09:08:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUSJq-0007di-Om for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 09:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jan 2024 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68781-submit@debbugs.gnu.org id=B68781.170653731129317 (code B ref 68781); Mon, 29 Jan 2024 14:09:02 +0000 Original-Received: (at 68781) by debbugs.gnu.org; 29 Jan 2024 14:08:31 +0000 Original-Received: from localhost ([127.0.0.1]:59347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUSJL-0007cn-3i for submit@debbugs.gnu.org; Mon, 29 Jan 2024 09:08:31 -0500 Original-Received: from mail-4022.proton.ch ([185.70.40.22]:27079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUSJH-0007cV-Hm for 68781@debbugs.gnu.org; Mon, 29 Jan 2024 09:08:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail; t=1706537290; x=1706796490; bh=ks9bGXPMPUGFg8XKQ44Ww5t+hJYijonG2JyXz62PXuc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=TRlT20E9qpukOG+InpK2C8acshavmSmr8dl7dKhmbVueTTrnnjZWu/EF/6Yfrqmry Z5VffQFzV/MLDtUnPWpuINg818Y6Y8Bl+QIZxikHujFQmYV24cAQD5i5kUUo5cTzVq EJwk5v9sqhOIlWEwYFhVyk86odVSTouWeM4vq1UZwFZ2o0hntQcntTn3JxOgxSc8GH jPpk2B9I6ieuHM5eouKYPjTHPlj42UBjhk4KPCIp3fdATisAwhVBoqh0T6X5kF66aD Sx/mI3ntzlDWvc7ueoNkcPEhQqUrl3MtDYhpDNsBdoUg/X92zeY/Vi7uLSP2XN8EJy iTFjdB9+jWFiQ== In-Reply-To: Feedback-ID: 44397038:user:proton 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:279131 Archived-At: On Monday, January 29th, 2024 at 03:20, Rudolf Schlatte wrote: >=20 > Hello Randy, thanks for having a look! Could you tell me which > tree-sitter grammar you are using? I'm asking because with the grammar > from https://github.com/ikatyang/tree-sitter-yaml I don't see what you > describe. That's the one I'm using. Here are some examples I see when using emacs -Q: a: b: 4 foo: | line-one line-two Place point where is (and remove that text of course). Then run M-x= fill-paragraph. This is what I see as a result: a: b: 4 foo: | line-one line-two And with the example from bug#68226: foo: | line-one line-two After M-x fill-paragraph I see: foo: | line-one line-two Hopefully these reproduce for you too. >=20 > Needless to say, please don't install the patch before I have debugged > this. :) >=20 > Best, Rudi