From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-29 fb5d9ff559 1/2: Fix c-ts-mode defun movement (bug#59628) Date: Thu, 01 Dec 2022 17:30:58 +0200 Message-ID: <83zgc7gmz1.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5208"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 01 16:34:14 2022 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 1p0lZm-00012L-AT for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Dec 2022 16:34:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0lYr-0000pK-Dj; Thu, 01 Dec 2022 10:33:19 -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 1p0lYk-0000nu-5z for emacs-devel@gnu.org; Thu, 01 Dec 2022 10:33:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0lX5-0001Qr-0J; Thu, 01 Dec 2022 10:31:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=KM/syElbzjNBNN7wanuMrdDDEQzzPvtzzpoznZ0RpZY=; b=YxknALUecbkogx sv2JE/Ivn79a7AWCCy6a2TmFkFJfLSjSnY4rqTVVDGE7RtfuUvlnzOgYy6HEIc0MPV5qaUsJPAF3N jSoEXX9fxGWdcv1ydq7gnufG28F9myhn8TNN8bAdxiU9C80UhdQexX5hFi2QX25F+D55SoRU91kir Pi2zKx9M694eGgfcqzvYTWTfYvBkI4mevi6E9BT4oTK5O4G1alYMiSTsTisD0PZLvSBUl4rz+Dvzq 4Rbkcf0noQ1M/j0Y5VwKb1xXGXludD6RanCvnxjcECt8S2X1riBYg7X6CP9XRfnW/rJq7v8ddtcx+ e0msQopNeFIy0sR4miFw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0lX3-0000U4-TT; Thu, 01 Dec 2022 10:31:26 -0500 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:300815 Archived-At: > ;; Navigation. > (setq-local treesit-defun-type-regexp > - (rx (or "specifier" > - "definition"))) > + (rx (or "function_definition" > + "type_definition" > + "struct_specifier" > + "enum_specifier" > + "union_specifier"))) Shouldn't we use regex-opt here?