From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60091: 30.0.50; [PATCH] Add lambda_expression rule to java-ts-mode Date: Thu, 15 Dec 2022 14:56:12 +0100 Message-ID: <87h6xwwz2b.fsf@thornhill.no> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com To: 60091@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 14:57:11 2022 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 1p5ojW-00012h-7D for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 14:57:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5ojQ-0006Bq-0T; Thu, 15 Dec 2022 08:57: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 1p5ojO-0006Bi-EO for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5ojO-0007LG-6l for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5ojO-0006R7-0f; Thu, 15 Dec 2022 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: casouri@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 13:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: casouri@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.167111258624716 (code B ref -1); Thu, 15 Dec 2022 13:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 13:56:26 +0000 Original-Received: from localhost ([127.0.0.1]:43031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5oio-0006Qa-2v for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:56:26 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:46744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5oik-0006QS-Nl for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:56:24 -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 1p5oih-0005wo-Fj for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:56:22 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5oie-00078y-RW for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 08:56:19 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1671112573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=qTsudOhqMQNQ6VECwHmjOpM69qtrSKTsJqtNAYutYNc=; b=hNAvxaLKzSuD4s8f3Q1WVvQwLo32i1vvGM9yuP/caLehcjYbH5AAGI25dYmz/NhCOMM3k5 mwaTibJpaKEWBZjqCTMeL4Q7tnpNmiBa9B+fC6mSAFKi2i5Ab2VK/69AqOx4i4ZTnhCqya FRFNda0y4bXNmVQ0E22cS8CaQqclj+lHqTIj0Fpu5iFlCDgOXqKqIMOfx+T1GcDsSbNYXA MCaHQ408GLqrD/ll1H4nRl7Rcs1RcQJhW5/j+gHc4V/TAmV0+Lb74SL1zbiuIgKLVWHxa3 i7W0FVxTNWSnWB+Xj2Ap84JA2WgOWIByVMOHU9haMvfS0wM5NyRV7j+TP5qE7A== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:251092 Archived-At: --=-=-= Content-Type: text/plain Hi Yuan, Can you apply this one? Theo --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-lambda_expression-rule-to-java-ts-mode.patch >From aff3aa5fb0d2ad84d21df8155e913d0fc7cf1337 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Thu, 15 Dec 2022 14:54:17 +0100 Subject: [PATCH] Add lambda_expression-rule to java-ts-mode * lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): New rule. --- lisp/progmodes/java-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index ac591a0859..a0c818e0dd 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -86,6 +86,7 @@ java-ts-mode--indent-rules ((parent-is "method_invocation") parent-bol java-ts-mode-indent-offset) ((parent-is "switch_rule") parent-bol java-ts-mode-indent-offset) ((parent-is "ternary_expression") parent-bol java-ts-mode-indent-offset) + ((parent-is "lambda_expression") parent-bol java-ts-mode-indent-offset) ((parent-is "element_value_array_initializer") parent-bol java-ts-mode-indent-offset) ((parent-is "function_definition") parent-bol 0) ((parent-is "conditional_expression") first-sibling 0) -- 2.34.1 --=-=-=--