From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?J=C3=B8rgen?= Kvalsvik Newsgroups: gmane.emacs.bugs Subject: bug#74507: [PATCH] Indent compounds c-ts-mode when { is not BOL Date: Fri, 29 Nov 2024 10:05:11 +0100 Message-ID: <1e4fcc9a-4f69-4c3a-b9d6-716d61129e31@lambda.is> References: <87r071yov3.fsf@lambda.is> <86serabhgw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37272"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, theo@thornhill.no, 74507@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 29 10:06:13 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 1tGwx3-0009Yc-11 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Nov 2024 10:06:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGwwu-0003Vf-Kq; Fri, 29 Nov 2024 04:06:04 -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 1tGwws-0003VT-Uw for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 04:06:03 -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 1tGwws-0002Yd-LM for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 04:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=gE7IUm2aFNv3DldQFAjyTGHAUiYh7MP2ZxbY/5FyKGE=; b=nr9N+CrLvMFSoUi/GW8rjDhvo+kvXSFK/pID1dlqmymcIzRzUdyAAd/gTuKFsjWZYqVRq0I7DclTyij8TdqX/uUm0TYrUEiYDpTz7Uha0zHXzqyt0Bn0jRcYmbLq7f4JIjaJVfV6N910mXXeW8HzVO/WCD/R6jwHrdzVusrwzFiAcvPoCxmk114Dvgt2UFC+ftDhqVqzCaRLEcI0C7UxtcgbXNku6D6ZqqDfySxlh+Ix8MOyBbeyvIoH23WeXI0T/nDUkklqdMP9+/7p14AZRY8AZ5nHd98S8o/U7wkg0wjU7nDNbBbR3JT23Gbj3/qYXzuvCsZBtyHq5rtHkON+nw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGwws-00043X-FU for bug-gnu-emacs@gnu.org; Fri, 29 Nov 2024 04:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?J=C3=B8rgen?= Kvalsvik Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Nov 2024 09:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74507-submit@debbugs.gnu.org id=B74507.173287112315507 (code B ref 74507); Fri, 29 Nov 2024 09:06:02 +0000 Original-Received: (at 74507) by debbugs.gnu.org; 29 Nov 2024 09:05:23 +0000 Original-Received: from localhost ([127.0.0.1]:40927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGwwE-000423-TT for submit@debbugs.gnu.org; Fri, 29 Nov 2024 04:05:23 -0500 Original-Received: from mx.kolabnow.com ([212.103.80.154]:44116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGwwC-00041h-2G for 74507@debbugs.gnu.org; Fri, 29 Nov 2024 04:05:21 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id B114E20B366F; Fri, 29 Nov 2024 10:05:14 +0100 (CET) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20240523; t=1732871114; x=1734685515; bh=gE7IUm2aFNv3DldQ FAjyTGHAUiYh7MP2ZxbY/5FyKGE=; b=QURigYWUkpAbv/wd3Whpfu7RHgE4rE9z fAWJe5r4G0FjQ12aFcSy/tkX8IWKLl7vT03QNzHFCK0NnJnk/fJCZQ5EPzoC+fbf NsyPJIkxEdT5dMWhgNC3SRzxQO/O54huwYTPVKxGzhT6TWRC70TgVMcWMkv4erIi O8z/dv/WJaPAQhCGI/jD5tMKCyXvQxHkyfwhSX+jB/FYsMjh/gTKtptNTuALTyb9 jTb4u1sqE3n74ARebdLCDmiDSddRzTSog4WYlfFKyTnUHZucqZ15pof7uNzEjg/5 JRcikZNKN7y3K/lZg/YMxy/oEvr/r/PCqZw4CnGlX0c21dM9kGo5DQ== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id htkFvO-av9qj; Fri, 29 Nov 2024 10:05:14 +0100 (CET) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id 1344820B3663; Fri, 29 Nov 2024 10:05:12 +0100 (CET) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id D09E324CD967; Fri, 29 Nov 2024 10:05:12 +0100 (CET) Content-Language: en-US In-Reply-To: <86serabhgw.fsf@gnu.org> 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:296089 Archived-At: On 11/29/24 08:57, Eli Zaretskii wrote: >> Cc: theo@thornhill.no,casouri@gmail.com >> From: Jørgen Kvalsvik >> Date: Sun, 24 Nov 2024 10:15:12 +0100 >> >> * lisp/progmodes/c-ts-mode.el (c-ts-mode--parent-is-not-top-compound): >> New function. >> (c-ts-mode--indent-styles): Use it. >> * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New compound >> statement test. > > Please make sure the lines here are not too long (see CONTRIBUTE for > details). > >> +(defun c-ts-mode--parent-is-not-top-compound (_n parent &rest _) >> + "Matches when PARENT is not the top level compound statement, >> +the {} that immediately follows the signature." > > The first line of a doc string should be a single complete sentence. > > Thanks. Ok. Yuan, would you like me to submit a revision?