From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: emacs-29 5a6dfab1e4 2/2: Use c-ts-common-statement-offset in java-ts-mode (bug#61142) Date: Tue, 7 Feb 2023 00:15:38 +0200 Message-ID: <8b6025df-e6e9-af42-cc89-7f0f1bc5fcdc@yandex.ru> References: <167566591126.8500.18117950634798405754@vcs2.savannah.gnu.org> <20230206064515.5AA2CC0060F@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34444"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: emacs-devel@gnu.org, Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 06 23:16:25 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pP9mj-0008rp-7s for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Feb 2023 23:16:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pP9m6-0004CS-L8; Mon, 06 Feb 2023 17:15:46 -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 1pP9m4-0004BB-VY for emacs-devel@gnu.org; Mon, 06 Feb 2023 17:15:45 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pP9m3-0000Xb-2J for emacs-devel@gnu.org; Mon, 06 Feb 2023 17:15:44 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id h16so11820128wrz.12 for ; Mon, 06 Feb 2023 14:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=HBdVKjSl9+GN6li0xFseuwXjW1UxJbNhFjj50DxroVM=; b=UcWQtqKgrIUPTwOnHbH2tsgg8U2TFCfIjlZTwS50kufFcS1TJhYTygbc5afAtcZpZc qRoLAxFZ03K7wL4Wk9SOhc0PK2vBIcpkPjzJze4/0OyX0oIGTP7Y0Pluw2rPOS7kG2VZ r7V2Yxie35VQ2bcrfLuOgUssB/aRb9PkpqscSGfZC/XRoQgLuE6rqZChxNv51A857frJ grwrcBeGaml2dhkKcbyizKCu5EteUDPen+0Ry5flLoCju/cNW0s9NVzAoyzdx5mLI/o9 DE0rbqUI64bvUGEvMXTEpit24IMNY6D6wOnvLmYbJBx7hWu4n40Q4CmqzCR1/v4LtJKH kURg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HBdVKjSl9+GN6li0xFseuwXjW1UxJbNhFjj50DxroVM=; b=KIhVasY3towjk8tlQOJPQftjVFrv87kVCOVQX068nbHfggq2lAOmx2EMB6YCid8Jd3 eprVeYmM34pZKGWFrjtH3FfLnkt1NFoDs7Vix7Ls/bozJCMnUY8LIUoynM/ePU/0Rcbc WDOHwMJ2mSRm/0FsVrpiqEQsWX+xx3Sa6vl7hhCs3yxAHyOlXfR3Rn3z0ZMkUuU3gM9V kcLT1cHM6w6VfEz0ma1kJh+0S4Yfr4ntCz3X03hFwIAtD26FOo43rDOtp4e2JSKkjGoV 1qbiNS6hNhi8kR5nGW4Rkf942cGDjIBI+AlYxL1uOSNxpxZyWN9aoC//sIaYEAKKp2EX csqA== X-Gm-Message-State: AO0yUKV3ZVG732Z0e5SIyDFfrInowDDFUTHNsS8coxvmoxA+Zer3WU6a lkFxCDPY0/0qGJg8AoswUNSA8IyHuJw= X-Google-Smtp-Source: AK7set/iwUl0N38rndFry6sSTSIdMWVQMqOge9kFFs/Rppw0dflMN6e05vjNKESeYAh4AnuG8+KiDw== X-Received: by 2002:adf:e84b:0:b0:2c3:eaeb:6fea with SMTP id d11-20020adfe84b000000b002c3eaeb6feamr446325wrn.15.1675721741031; Mon, 06 Feb 2023 14:15:41 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l13-20020adffe8d000000b002bfbda53b98sm6795917wrr.35.2023.02.06.14.15.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Feb 2023 14:15:40 -0800 (PST) Content-Language: en-US In-Reply-To: <20230206064515.5AA2CC0060F@vcs2.savannah.gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.148, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303026 Archived-At: Hi Theodor, On 06/02/2023 08:45, Theodor Thornhill via Mailing list for Emacs changes wrote: > + (equal (treesit-node-type node) c-ts-common-if-statement-regexp) > + (equal (treesit-node-type (treesit-node-parent node)) > + c-ts-common-if-statement-regexp) If the variable is called -regexp, I suppose these should use string-match-p.