From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 60087@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16711039968940 (code B ref -1); Thu, 15 Dec 2022 11:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 11:33:16 +0000 Received: from localhost ([127.0.0.1]:42837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5mUG-0002K8-5f for submit@debbugs.gnu.org; Thu, 15 Dec 2022 06:33:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:46320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5mUA-0002K0-7X for submit@debbugs.gnu.org; Thu, 15 Dec 2022 06:33:14 -0500 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 1p5mU8-00036K-Bw for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:33:09 -0500 Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5mU1-0006pg-PQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:33:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1671103969; bh=HWH9VEWvD+YSNHalfvFXW3pK4YQUlxOSjrW7XxXfT8Y=; h=From:To:Subject:Date; b=YBIVsVN3Al/vrp5FWlMm779wY9b8quuQy0+AvKs/+Vk/H4ZR6W20LKGeZVV781YTH eSRR1PYZubD94BPk/0mSSP9tUSKY6fzvVbE1/qku1CzV61OukIJXsZ+aixX8bNyxsz sgbln4mSmyoJs86mSHW2ddqXBih1TmxLPdBi+YSM= Received: from macbook ([114.82.35.56]) by newxmesmtplogicsvrszb6-0.qq.com (NewEsmtp) with SMTP id 458820FF; Thu, 15 Dec 2022 19:17:24 +0800 X-QQ-mid: xmsmtpt1671103044t3jks4ypn Message-ID: X-QQ-XMAILINFO: OCYbvBDBNb9rVAED7lOKHCIZe0ApZE34L63DpgzFwvbU2p7a1Xje63e7dkxqRD JKcIto16P+qZYJJuwFXdJq4/kASGmQJMnn1s0eoR8YaCRRtbDLw6UIopNnKanj3bSxIM9U9AbzXg +HA8rYNxbumfx1Djs/ia/7jm/wQXOnzVDBB0Rb7iOmBSbvMkUbAeiCaWKrySJJg4tyGuf+JXCB+A pDpILrlRKpPzAAbs0ivh6u6rp6ixJWyY0+Re46YvbPf7PPN43Le07Heaolp1n1tP6KvbnsGi4dkX bbBaRgocxbRUxAMLzWc/s+PjB8Sr38gWdXViwdYpvd4G/Or6Jgmptny6wOKNK2JIWDT3uGljYIjx od3sXzryhTU3/ZpQaVVu6+7l3aoqNlU17QHE+DD6AAFxfPMIrLh4DSr5mOsDwys6LW+PRk793hiQ t6vu7SdxcuK4y48ODMTO4mZDwagQx0EKa1oTgNuxNbH/EskvOHyGUv0nfc4IA+e/3snbkrsglPu2 uz5J4TxnfXBELBxBRZF2nCEEpPlLPPTOum48ZHU1o+GJef7MMtGy709OmwjkNscAigQsSBGaFVnz th4s0RAs/ckgNsA/UE3KWSYWFx8vHVr7d0qky0trP9xE7hjB9KE9gL57jSK70tz8YK9ffKDrKuPC yMDRFfM3wBCFNfM2ALTvTDQk2l7JXl47k+ISPBt2Uoh6RictOx2neUpd2LvV7iC9HXHxO7ZP3M73 Uaqlh3WOk/oaLcwtqey9zrCtUt7MvbCtxqRwCWdw7iI/FUg/j6gKaizimJSvnFChSHaTuHkwa3Zc W6gU4LR3oThMOtilX2IqxDYh9jrFB64E5Z9ar0+YbObvzXt6ke4vQB+khBDC10QDM41oRoWnkPak y8UJNx3ud00JbTTE2oIXPkOFH7fXaih8qseKqEiWn+FqqAfxZIqjTdpay/6zzN5SudUTv7Xjn0C2 XVF1cv329vz+3MPTHy94Urxt9JI3oald09MWoA4VluWhFVkdjI3yIDOOxeKqKN From: Eason Huang Date: Thu, 15 Dec 2022 19:17:19 +0800 X-OQ-MSGID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=162.62.57.210; envelope-from=aqua0210@foxmail.com; helo=out162-62-57-210.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hello Emacs dev team, I found that the c++-ts-mode conflict with electric-pair-mode. My build is based on commit a15cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac May be the issue was introduced by this commit: https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=480f41c7deb4d3a45a862a5308950b35085f835d I can confirm that Before the commit 480f41c7, It work well. steps to reproduce: 1. emacs -Q, start Emacs 2. C-x, C-f ~/test.cpp, open any cpp file. 3. M-x c++-ts-mode, enable c++ tree-sitter support 4. M-x electric-pair-mode, enable electric-pair-mode 4. Type the following code in the test.cpp buffer. ``` #include < ``` you will the the result as below: ``` #include << ``` expected result is: ``` #include <> ``` -- Eason Huang In GNU Emacs 29.0.60 (build 1, x86_64-w64-mingw32) of 2022-12-15 built on DESKTOP-VIHFE84 Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2364) Configured using: 'configure --with-native-compilation=aot' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LANG: CHS locale-coding-system: cp936 Major mode: C++ Minor modes in effect: electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load elec-pair c-ts-mode treesit cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 117001 10015) (symbols 48 10094 0) (strings 32 29095 1843) (string-bytes 1 947838) (vectors 16 19056) (vector-slots 8 428832 17970) (floats 8 49 205) (intervals 56 295 0) (buffers 984 14)) From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eason Huang Cc: 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167110707311458 (code B ref 60087); Thu, 15 Dec 2022 12:25:01 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 12:24:33 +0000 Received: from localhost ([127.0.0.1]:42893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5nHt-0002yk-0d for submit@debbugs.gnu.org; Thu, 15 Dec 2022 07:24:33 -0500 Received: from sonic309-24.consmr.mail.ir2.yahoo.com ([77.238.179.82]:40920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5nHo-0002yb-0X for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 07:24:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1671107059; bh=WAdFJsWK3Q9bcjdCZ8du0a7Kb5XDU+FXhEMvF50SsA4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZdU4mkWVgtHqyGw0bbIDCvZDGgEB1ZCZ9cSvnao4kV3wJIayF3CrKd7uEH9s2/AxJPmnymHKykCl0hsu4eTdDPapd/hKCg9rMLvcgrErgn1o9jec19ruC1CbDjTnHdzDJNCQNksWRjtsSOtIVJauhZTLDRvOn+VZ1LsM5GTg2TEl5QoStdy+0vVtu2vDzH9uBcDHB1fbCwOBoU0H8dfS/jNhaAmX7pvkmMIvmCIqU9gxV2RbtFQpF+MPXRgBsJJhJqSYxqFqiYoDmcUFbuItzEHzmaFlK2XQJijP0Di7nPWqWhSMEMPBdkL9nEmxyZBouYt2CI6m4N18o63M0VzVMg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1671107059; bh=0VfM4AsVTFhMUU2ZSd2oas7Y4c1KsIl/fdWPPypKzGT=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=hxZ0c5UMjlvnwQIy4xcrlNYnapBE2Yt7Wsf7gyLyxVJAYYLyO+wLY4zocjqY5GBq4iYlBJKnt2lgUsJg93q3IQC3GwWzpON17nCcuBBaM1u7npky6fbYGsRkqOEGQu5FoKxrR6aDD6AhvjeWkFs9dXDwFruMclesD4UQxDOrLF2SSaXUkedndtVaWpFVkuWiMwgQKaCA3OGbS2l+rAFf3yok7JC0aXkxr3OANu2kiSWNlKRvt0y/fSn2lzFVxJFk9X/sulKMW57SFuOoOnz7TpeyjOVOobmv1n424RfdynlIFvRw3wQ2usJ5MS6a5yUOjcQkZvMWHqzqq1zinpY9OQ== X-YMail-OSG: 2l5vyOIVM1lTC5vRY4hxDpAGJzvh_6IyCIWS0ELPSJYwQKMkak_29DOD83u2eqC FJOd1IT4GmJ1NVCfqwKKOVEJgODT2.q._plE8YPN930QnCbSBmh3X4n7bve1x15Jm.iV17QI6YIW 5VtTwvzPXD4cLtaxaiW8D8WMrDv9KPktbM207aFosmw8fTySfkmCboE3cts3_TdfJnyaAlkNHbzR 9gmntlwMtrpXCvq2m5xE.pcD14IurDDfUSxHVHkjGN9MFE1Q8.ZrkHMq901IKbp2AOr7l9n1wTU9 gBBal9a2UusVS4L.hW8jBpQehkp3Tzi948nAnwO3eVlbntZPl7VqCSeMDOYklVIsRVUcqcIDPEhk 5_CC6kDs96v_90fR.FIX3yJaEwUX3PAaOhY2.QQthm.dJg0tWpG696uORfBmRSrkOVtlZ97Np7pi XGhxNy3MeRXQPmK6qLJzHkDxVhJ8zdmHFpNX4e2uhXfqJecNqu7Oac14ACdq2dYso6WZs15MFM4m vRcgehDVHgHhgxh6lOz96aV1rUTTW6NaML1wDu06xbbdXuRcu2XqplEv8El7AgjUG6I8KNSJfwK5 HATDFkS5hzWvpe8N8ncjJp._ctm7d8pwak8WMTkx3zP2kf5zAqg18wBuRozy5Y2A5hjqg5DAb3XF zoYNiawq5ZOqTSwO32gnJgosCcwme0VPIHSVagyXJRVlP8awxn7v2J_ykS50vpjefgBVAaoX49dd QxOu7yuYSVNCXPmtbrUBW3_hgQiDr1R2R8F615JKndc_iVsRzmVwgC3Ju0CLpNdcmowfL12xDvGb 38AYSquAO6Q7nosIkTd045958ataMGmbYQ5HTO_LfytpjNb_qWTzic_pKL3Jwp6TB43KxUhrjHUe f0HEHweGHKHXPZ9tWdwrFcLQtz5MqoCFBQhB6lykHD8.Z0SteGzOVhxNzsQOdlWSR6_f7.ssiHpe O3e9Los8suD3ByB0TV_d9nwcrs1uHdyc4Cs8C.8UpcqOLw2Im9LX3TSr5EtSqBDkRiBzjT6Y4z3I VlAFS2JT0xtoqvxtntUxmybrCHMl8FEOSpQXfUsqdrSIGg6m9VfsQf65bIHuFB6qe5N3dznRv3lQ 7KrCBYWtQOESegsxJo1avwsDrITiwE9ZgZt2QJAslpZA9P6CkuUbLG6ik8G4ajVEIvOz99UNc7uw 1qtMUeQBVc.6wRxXPwpba7Jc0yq_BCC6GJ3LKd8Mk4_sI8omloI0wttFNXPHbQYfac5jy4DUu.YU hebGk2AipwdV5BmJPpnyE_bl30Mpa81eQZeOJUGYvpgl2wISJ8K4.bp5nmhx9C2xEpPYn1vdI5up bjvbtEgTeF3j8hh3uFCf3N7zLA5RfRE7YrgVmbCUzrSwnjsbEMnfPFAtNmECuBDvx21qyVh2RAJK 3Kub8hjaMFWD3D8X_XpRHwadwBCdFeFFmazG6OIl198joKaemCqzAm4iCWDh1TLTzEzzX9xJnEfE flKXiR2hTpEL2bnu8bMS7HqCy5PysUWeWCJ3swjlQcCQHTXv2_jNvegYeWZr8au6r4y.DCuojhto Q8L_ojQY5KCM8M4AWL.i3ptsH846BUSm_6r1BOAXgDsW.hd3RaqT0v1cCmZoEBIbQjgC9BFC5vNA RPELHs1vMCIZVNOuaDCJ8GS9qFXvsSozxn5zUOgOirVOyupxId9PuORg8aYCorGOQnq3ACreA84. pn7DOz4kxxLdmDy6hsPYNbz6EmMCRZRr9jW8agPL9cZf0fozLzaBNyPo8hwFKBWZ4Yev.IRycvYa fIXYSZ7PO3pj9Tp7mc78SgJSzymQS1HGYbGLo9lBA21dglEu7_QU0w4OEcpuv79z4pO.6NHZO0k4 lpvoWaFqYPnLvSopjSWpMBjl7_BVHKONOKs4fu7nEQ6Jsm_UZms7ur27pV_YvvwqwN5E_.b3mQHP LYZkej3EGD2oPD68zfMTP5RJyIbtc9kW1Rf5dBec6PvdWo9yUOmYGuY3F4jo0mAekEmqblwgtI6C 931nAYFYu9u30MNnRc1rlGYyY5GPO.acnki1viu.EaqXIWK4iFBd6iNTihxB6p9Fg30kx3UyN74A wZ_j1CuwzkQkOTNJ_mq.pGQxUGTC3nuw3CrkFOYJt5h8ujcFpuOiukFeq52NQPueMAmXaBs.nx8P NWaL69iS7W5XMCVAhNjyrKNUhglt3f7kM1je_Dc2OftW6L.PzCTW9o8ysnZqdU_Oe3n8B4IwUIbO W8l9AW9QQZoyBBiONwrzp6cBof63LR5L2ogZo X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Thu, 15 Dec 2022 12:24:19 +0000 Received: by hermes--production-ir2-5795fc58c8-hz8w8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ab5cbcb4db1b8ec4ce2182aaec0ac2c2; Thu, 15 Dec 2022 12:24:15 +0000 (UTC) From: Daniel =?UTF-8?Q?Mart=C3=ADn?= References: Date: Thu, 15 Dec 2022 13:24:13 +0100 In-Reply-To: (Eason Huang's message of "Thu, 15 Dec 2022 19:17:19 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1608 X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eason Huang writes: > Hello Emacs dev team, > > I found that the c++-ts-mode conflict with electric-pair-mode. > My build is based on commit a15cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac > > May be the issue was introduced by this commit: > https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=480f41c7deb4d3a45a862a5308950b35085f835d > > I can confirm that Before the commit 480f41c7, It work well. > > steps to reproduce: > > 1. emacs -Q, start Emacs > 2. C-x, C-f ~/test.cpp, open any cpp file. > 3. M-x c++-ts-mode, enable c++ tree-sitter support > 4. M-x electric-pair-mode, enable electric-pair-mode > 4. Type the following code in the test.cpp buffer. > ``` > #include < > ``` > you will the the result as below: > ``` > #include << > ``` > > expected result is: > ``` > #include <> > ``` > Thanks for the report. I think the bug is that we need a second character in the syntax table entry, to set the correct matching delimiter. Does the following patch solve this issue and bug#60049? diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index ff2ff63fd8..11b2b9408c 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -86,8 +86,8 @@ c-ts-mode--syntax-table (defvar c++-ts-mode--syntax-table (let ((table (make-syntax-table c-ts-mode--syntax-table))) ;; Template delimiters. - (modify-syntax-entry ?< "(" table) - (modify-syntax-entry ?> ")" table) + (modify-syntax-entry ?< "(>" table) + (modify-syntax-entry ?> ")<" table) table) "Syntax table for `c++-ts-mode'.") From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eason Huang Cc: 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167110956522422 (code B ref 60087); Thu, 15 Dec 2022 13:07:01 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 13:06:05 +0000 Received: from localhost ([127.0.0.1]:42961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5nw5-0005pa-0r for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:06:05 -0500 Received: from mail-oa1-f49.google.com ([209.85.160.49]:36552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5nw2-0005p9-AU for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 08:06:03 -0500 Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-14449b7814bso20831421fac.3 for <60087@debbugs.gnu.org>; Thu, 15 Dec 2022 05:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OJBn2NVhF7pYge+L5yW38w8cT+PdXGTNEAb9oo0L060=; b=Btv3IUzPsBawLXqHfcofo9wAahxNoxDgpZ+WF9cUH1FxMRRZnSxzus4bK/SsuRauJz yzz0t/CzMTvPZpOFoeOt++vr12bHbiCODtGKf6EwAzIalvGTDK9au1+V9MRPHtpyuONe 2pNUrYPMkOJWHv3y1zzHH8jhQT+p9Zu0bXNwmAYnz2TuVgWlA6fwF8gyjbrdB+ob0gve EjrgAV/jwA8VxjeKigfga11hC2ckbkrcmDbuzCtCY7SUnl7tmnwuFcmP36kSIxyGPxyh N/8cigqBOWqCbwNurhQnDcpWQMMYVQT9sM47yKXCUfn0yiwW6puYZUe5kcnMFgHfrr9H 1wpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OJBn2NVhF7pYge+L5yW38w8cT+PdXGTNEAb9oo0L060=; b=6ucbnsXcwemFjEwWoWWOTMqv4YSj2E8J4X2xLWS9s9b3Tb8oW2E2FvhZaTD7vbO2O1 5cGzryOTcRHJIOBACW9YG4OBkKg07zWKPjYi2dFo+Yfsf2Fr73CFAnkNoQgM9OVW/m/n i8tJMuxGSYic6gLxSeqjx1raG+4yyi9e0C0N2QueIdRUBJXFKE2Kcq+gjiaN0QTB0RYu ABKEvWTPDkhNJCclG5wU0+6UGBUrNf0RoDOjJifZ93V5RVkvGdoGqJsUXO2h/i48Am12 VxKFSLjQzWkYOdcxCQyNIOgebpsyT5dbjTHJ1cdfgdLaUFWYZHCd0hab02rl+KfsgJU5 +myg== X-Gm-Message-State: AFqh2krKfMx/nNWBiH6g6MQkonxjO5TTMTlpC6rdFHQG2s0SYy615pLk lSrPUacfHn6IkzRkpB2qEIiGAeiP5dBPCV8C9RQCgOGg X-Google-Smtp-Source: AMrXdXtf05oV1Xwsfq35CdgqB8AD0Q2t9cO4Hq59tAbX2xO+OSj0uBTWHoeGJ3YMWqaAQoK3ZToB/Vr5Zz+4sobntmY= X-Received: by 2002:a05:6870:3116:b0:143:7889:c525 with SMTP id v22-20020a056870311600b001437889c525mr141117oaa.171.1671109556361; Thu, 15 Dec 2022 05:05:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 15 Dec 2022 13:05:45 +0000 Message-ID: Content-Type: multipart/alternative; boundary="0000000000007ce07b05efdd832a" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000007ce07b05efdd832a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2022 at 11:34 AM Eason Huang wrote: > > Hello Emacs dev team, > > I found that the c++-ts-mode conflict with electric-pair-mode. > My build is based on commit a15cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac > > May be the issue was introduced by this commit: > https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Demacs-29&id=3D480f4= 1c7deb4d3a45a862a5308950b35085f835d > > I can confirm that Before the commit 480f41c7, It work well. Does "it work well" mean it used to auto-pair '<' to '>'? I don't have a tree-sitter build to check atm, but I find this odd. Jo=C3=A3o --0000000000007ce07b05efdd832a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 15, 2022 at 11:34 AM Eason Huang <aqua0210@foxmail.com> wrote:
>= ;
> Hello Emacs dev team,
>
> I found that the c++-ts-mod= e conflict with electric-pair-mode.
> My build is based on commit a15= cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac
>
> May be the issue was = introduced by this commit:
> https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Demacs-2= 9&id=3D480f41c7deb4d3a45a862a5308950b35085f835d
>
> I c= an confirm that Before the commit 480f41c7, It work well.

Does "it work well" mean it used to auto-pair '<' to= '>'?=C2=A0 I don't=C2=A0
have a tree-sitter build= to check atm, but I find this odd.

Jo=C3=A3o
<= br>
--0000000000007ce07b05efdd832a-- From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Cc: Eason Huang , 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167110981922635 (code B ref 60087); Thu, 15 Dec 2022 13:11:02 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 13:10:19 +0000 Received: from localhost ([127.0.0.1]:42973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5o0B-0005t1-1c for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:10:19 -0500 Received: from mail-oi1-f177.google.com ([209.85.167.177]:40655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5o08-0005sp-Gq for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 08:10:17 -0500 Received: by mail-oi1-f177.google.com with SMTP id k189so5221409oif.7 for <60087@debbugs.gnu.org>; Thu, 15 Dec 2022 05:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dtLG1lMnStuvbFiHO068I38fAqfe3IIGS/0/srvwKxU=; b=BREeu7Fc38lM/8KwwEhL561x5Fa52KT4B1j8H7TVzGufqZR6Y402zAAsNZ0aowoVZP dQpAbjTyILBWFZsXivIZ7HarK2Ve2OjtxlC+XsRI1PuSBXSc4vwjTGivuMayAjymVZH6 lzq5fsbnxKIonr39yz5oPfpGpLq20E42roj0chyYR3h2NVWEFUKPl7wX0kEdROtB1+d6 /Yw3RdGK3otmSAQBTglC97DNhYcrqFmskjprJadwFUf75coZ9iR+uOtPZ+2gfANR6pxz QX5l+W0p8Do59Spt/XCCR3ukgo+miRRp3/6W1maFesq1gMah2zIJXAWB7XEzoapuIuDj g2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dtLG1lMnStuvbFiHO068I38fAqfe3IIGS/0/srvwKxU=; b=bSsUTiPKDo4gZGytAwqSGoikkYxl1CMaBAPJ0m8cQYFiFuuNFN1maUZyoiRkRLUz1v gdqKRyVzeTliTtTB1ts3Evh+EEqqek/7B4e1gl9QAz9XrUuviWnFnOEFWsUd+IyB1ArJ iEt8nn5yFVLYfGv1ngNAkV1BhwINGL+CqmbgUYXkWyvmrU7P9dtGJHOQf2/BETD7ea2c JU0UrwQJQAQODVC2nfjD3JBy93WLXFaiEiVyWwMpCKhUCm++ekzDKYtmed9raENRPLrQ 6Fa3VtOzT4MvrnGWuHDj4SA/Bme7au6bvH8jA1nQiQWCRrgHjVGFtQHwiyg3E9gJD70o o0og== X-Gm-Message-State: ANoB5pneRHVerQs0XtH2tvLBekgsANKA6rVDFPz+7LouERiNL4ooaSTj 7xmD4z0gZxgqEf1vhuUHzvu2+892AnJqlBsT6SY= X-Google-Smtp-Source: AA0mqf4qt5G+7yrABE5flQl/HTV+XZ0nUAzPFrgxHLm2ugY7XyraO64E2K7zsKV0pA2V3Vg9pMTBmpTDQ1FfeQ5Pd/Q= X-Received: by 2002:aca:90f:0:b0:35c:2ddf:59d5 with SMTP id 15-20020aca090f000000b0035c2ddf59d5mr272754oij.215.1671109810993; Thu, 15 Dec 2022 05:10:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 15 Dec 2022 13:10:00 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000aa406a05efdd92bb" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000aa406a05efdd92bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2022 at 12:25 PM Daniel Mart=C3=ADn via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > > Thanks for the report. I think the bug is that we need a second > character in the syntax table entry, to set the correct matching > delimiter. > > Does the following patch solve this issue and bug#60049? > > I don't know how this can work if '<' is going to be used to input the less-than operator. I think more complex syntax-propertization functionality is going to be needed here. I don't have a tree-sitter build to test, but I'd say that the tree-sitter backend should be asked about what kind of '<' and '>' we're talking about. AFAICT, just saying that '<' has the delimiter syntax in C++ is wrong. It's not like '(' or '{.' Jo=C3=A3o --000000000000aa406a05efdd92bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 15, 2022 at 12:25 PM Daniel M= art=C3=ADn via Bug reports for GNU Emacs, the Swiss army knife of text edit= ors <bug-gnu-emacs@gnu.org&= gt; wrote:

Thanks for the report.=C2=A0 I think the bug is that we need a second
character in the syntax table entry, to set the correct matching
delimiter.

Does the following patch solve this issue and bug#60049?


I don't know how this can work if '<' = is going to be used to input
the less-than operator.=C2=A0 I thin= k more complex syntax-propertization
functionality is going to be= needed here.=C2=A0 I don't have a tree-sitter
build to test,= but I'd say that the tree-sitter backend should be asked
abo= ut what kind of '<' and '>' we're talking about.= =C2=A0 AFAICT, just
saying that '<' has the delimiter = syntax in C++ is wrong. It's not
like '(' or '{.&= #39;

Jo=C3=A3o
--000000000000aa406a05efdd92bb-- From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167111053423169 (code B ref 60087); Thu, 15 Dec 2022 13:23:01 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 13:22:14 +0000 Received: from localhost ([127.0.0.1]:42993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5oBi-00061d-Bt for submit@debbugs.gnu.org; Thu, 15 Dec 2022 08:22:14 -0500 Received: from out203-205-251-82.mail.qq.com ([203.205.251.82]:60388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5oBa-00061D-ME for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 08:22:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1671110516; bh=9Lxk3A2ogdiDnPGANn7cQ5CRbfO5x6cKFer3ab1t00I=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=kn+tnWhWI6MbDRwrdXy141ywzGk0uxV82gsQ4x5iRdR+MDPNxidU9ncCSUWzpHke/ GrycnZ24nSDxX8IibLIZ15BVoSu8xFMr3JnCbFSqEcdGtdbAE81dSBQjvi4EgMeBaC llVJwj8wTP7fTSuBHqDyKfm1N4xgCdQANu5bvzB4= Received: from macbook ([114.82.35.56]) by newxmesmtplogicsvrsza2-0.qq.com (NewEsmtp) with SMTP id 576AAABA; Thu, 15 Dec 2022 21:21:54 +0800 X-QQ-mid: xmsmtpt1671110514t1m5sdh4m Message-ID: X-QQ-XMAILINFO: MOpJcPT3Yy24eK15cfls60BB3+GS/kiBeYNUe830Fjfz9cf293c0blkGR6m+Ev hIkJj5liAIIQyKzsJlrsyJ3SCiKBauQ9A9U1sZ+23ZTQ+Qq27SKx+HiVma+vBsPNaGle1amAp5nJ BP2smHy3DIOMZnxcJ/rQAS7kJqv6RFAfIbpH8ffxVJ7XBMopiU+8dmqjH3/CVhJSrBASry33ny9W 5vwPEh+Py7cxyLxSMHtjgml4OrLFCZqZkXwimpPwOkM0nQUmdbvO0Gg1H0m89hb6BRHGVfPKGg2l Rcx5H6Ysxj/RwRsZ6uiTgKx4y8Dfnz3NHVPyt3/uTPw5gr/2N1ANY/ib+bfQtPOwRVUM0QFS6xA5 zd0PN7CKgjm859hz9QpHaYhSx8ohM0TpwuTkG5pEF8SpGdsrSEmjnENIduys2SIeREjzOmNWQYrU smR6LaCqdKwtuR+CVZo2jNPL+cs8XQxO/z1ei9SS3TMB/PfGTydvFjCauJTV5Hbq4QRVbXWr9Mzm l5Xy6jNWSGlycAysGm74bFsbsPt0/xJ8/SIf8L138HLCBxf2L8uTl3E9FsCaAs36nBFDzPOf3LGb kOeImSj/sXC9XeHID5/oFnY6uI81aKQNXJql2kLB9MsCCMu5g/uzJ6hkkXEJ2ZTC/fhhgwtT2pAu ppWd1nRh8ZE3TnX/0eRFuW0b3+JHtVZoOUQVVf9NlAqLxLnMY0LoJ3TEDMHIv0UjLu5gxndxSGmx r8vSN+azmpkMcuJPM2sQsK8E4bRKqE7Sb+logc3pA4GxBN2RAEyXnYeFw/VW9GBCXhgmgEsc//VJ trxYKuWOijn/4guVUxdc15huup8eQ7Dvd8elnePp4H7t9FfmiZmPdIdZpkq7adY31Oq/yyIjr1PM gUOECj7vWO0T/UVS+F9/B+VR9lQbqIESakCPqlqZgsUicE5pdOarvrIEaHf5RXmUJGjxq2NdSovF F3jyoxNXYjZjbthBkodJ1w3siVMIaZ From: Eason Huang In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 15 Dec 2022 13:05:45 +0000") References: Date: Thu, 15 Dec 2022 21:21:54 +0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= writes: > On Thu, Dec 15, 2022 at 11:34 AM Eason Huang wrote: >> >> Hello Emacs dev team, >> >> I found that the c++-ts-mode conflict with electric-pair-mode. >> My build is based on commit a15cd55044c6bb4d [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.82 listed in list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= writes: > On Thu, Dec 15, 2022 at 11:34 AM Eason Huang wrote: >> >> Hello Emacs dev team, >> >> I found that the c++-ts-mode conflict with electric-pair-mode. >> My build is based on commit a15cd55044c6bb4d [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.82 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) Jo=C3=A3o T=C3=A1vora writes: > On Thu, Dec 15, 2022 at 11:34 AM Eason Huang wrote: >> >> Hello Emacs dev team, >> >> I found that the c++-ts-mode conflict with electric-pair-mode. >> My build is based on commit a15cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac >> >> May be the issue was introduced by this commit: >> https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Demacs-29&id=3D48= 0f41c7deb4d3a45a862a5308950b35085f835d >> >> I can confirm that Before the commit 480f41c7, It work well. > > Does "it work well" mean it used to auto-pair '<' to '>'? I don't > have a tree-sitter build to check atm, but I find this odd. Yes, I mean it works as expected , type '<' will get auto-pair '<' to '>'. --=20 Eason Huang From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: Eason Huang , casouri@gmail.com, 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167114006315537 (code B ref 60087); Thu, 15 Dec 2022 21:35:02 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 21:34:23 +0000 Received: from localhost ([127.0.0.1]:45048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5vrz-00042V-IO for submit@debbugs.gnu.org; Thu, 15 Dec 2022 16:34:23 -0500 Received: from sonic302-21.consmr.mail.ir2.yahoo.com ([87.248.110.84]:34305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5vrv-00042O-UZ for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 16:34:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1671140052; bh=FCwyDeSnK8Gbxyg5uf9yPpyproip57+2K/euOpNyQfc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=dbxrLvEHxxE3oOyCNuZIJQNldjFtXRq6zYBo1zsaNr2WfTDmEjosFobnHbUijHQjBLyjHf4/saSXUS/ArWocDVpzs8jMDjk1bubqrdQQmtaKE6GU5TcgOqDOKc5YI5NPVigJyw0y4+zB85dc9M0FlkAn5Ee7qGNK6HUNfG2st0vXTmfC3MifKBTkrwDTzGfPF8Y2nHgD8SROHN0qLN4N6LJWYqPy2GuBxkoCxLuiShQzs181Kij4rBujeXnhGDWr+f0f6jHI8QC1bnBsR00LmFCM0H4rPMLxkJ5HE9KmukqhSWv2rfnKxIadmwLPCAgKOgmNRqo9hM/7URRJucv8Hg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1671140052; bh=JuyPI7Sh9QjmnfXQRyV7nKPvfcCZWh/L2RChlhn+7/Q=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=PdVbbbJXJ/SibDEyE3SiHV9gxb1Ko7sPERFIbQVRQ3cjAWV0fumQMt3AqfjwYYt7zLlEKi3tRUHsk19ykqggRXssYUhZhWnGBsaxyhbeUZaWuk7EqdKKvFlUxQw/JxCAFsrn5Ei1i6Lz9LCqttl/pZ4Cvh/T1O5h6wbOqcv/ScdpN2Pcxxqw5YrB9dotzt+8YbhBFrvXVIsZQflamG5VXh8XhBtgY+AC2IpwaAZGIAzD7YBD/igpWgNUvdDRSx5m8XmU9gDJ6LBoIqufZJjhakaADFPeK1NxG58aOA6K85OvwGd65Ry3bEBVa5d85BPqCSw1qMOhioKcsWy+/JnWrw== X-YMail-OSG: bUQNPLsVM1m.lgta9ybbFZF4MMpZGAhJCnQO8uXtg3lenL6lQlTc2mvCfw.BRtA TWpLB9qleTC6rakvZh6o2c4SzIvf3xuUMo8II36Om4WjG7RAniDpbvjRayDb05ubv5ByyvWPit8u jRu3XVLJ3qhaDxmZxpMgVHkY5CSCBfWGpOyDblhZMgEQUWT7SMYVdhdvzzKgrDsa1oPS99VbRZDK _I0OOBq.AEVcIhjNL.zsO4sETUt6nnbuMk0G1HB53IKX6RfI61Lk0phKib.he0_H__zvMHg_uwzZ nhJcF.u_zTuzS2ytXEJuHzJmjRuOVnfKxDeSW2T7akF3m6psTbKE6.xG0CuzKVLx1YXdElnHr1kG Ut.A315d6wbl.oqrZxWg22i9oIBgZFQNKLA4aYSvPcHJ1C14yq2Wpmvh59Y6Qh5kOOO9K9sMhBUq a4U_iKQohf8B4riGc2Ywa6.huBM6XZpXEiT3CcaS.MpnfrVe8K9pKm7mNZ3Sytjk0lT3Ow4Wberc mH9ypYMyvTKgdJPkA4TA3WYJzTYmAWiAIGn1yo_nXwpNL5M4qSDyxYkJKKEy6oZhcisUC7F0pqVz nvp5sWGAVGYliir9vbeucAYM8prOeSIyv9fMoHO4Wx0_eiPC.M1OJHcPUS8MAiLa3jubjTJfrAIj _FImrseX7uhk08WcmdgyAd1ci335LISUXWyZMw2azJKja.rsH6CfXKaSU7xuuTkHS6BMr49ZMxzT oBaDUbCEumAdLGzmWHYzWgkKJZ9nChlC_IVDEoW2tQMcuXx2xbEzhag.0_T7x8nxaSRHR5UsKn7x ZDj7IlkPrDnxtm29HSEAHbNLVSNwEe64cRDRkEN.F.WnCLG8.5Mu3c35NOAKVXuk1GS._fXyQSRT 8lmxbVnrscXFeXbHsxHU0k9xuoI7QqvEypMizxc7i_TMl125FMijvP7TDVIHyW.EsBzwvRC9RcVU HTlOQrQB.R1pz.5UjVZNqlgV3x29J1aT6UnMfHw6N1KFSShHqa3.rvCW4RTk.WgyJIVFixWUeeZ1 zIjJWEFZJRmbojXEEv49jAYtrSgeBYxSXREIvHBtleItCtL5U4EavE4Ltd.DbU0r4x3YXxtXzx1o CG0KeIa9.RWHqirGCfgdYUc5Eg7cKdHEZzbaitfTGI93MJThm8Z5Eo3QPaLINTvr2kWl2oZig0QT fRRizCEbG1QmtEBiicZ2ZMkjenyYIHzv0715SpO3cqOFSYVk7nI2E6Oa3E7GYy5LOVTTgYxkmooN rItmH0AyXrWazlo4R.dHz.iYBPeYYPgJmibzwNBTMK1JazJnNuG4b3gKiT8SqmqtOt0kKcI3GjQx ux6pOo_xceue_.qT9Ss5m_wrfuNxtTbr2mEPEVoz2hEp8SMdxr8vd0HdStc2kKc9PYGYhg9Zw18z DzCSee_yLIu9CfKbe7UrOv0kC9a_XaCm22xAUpyUkQ9CVXuejMoDIoBEH2qxFuXuoOtIuhWjbJSY 1iDFy18.8yrF7Ka1VJIOLm1Kx9u4IgNvDSb7xBZ721gBpZLwAZouo7NQ6t8vvZmRujGjCEMgJMrr ZTQpeB0.slPTL5PnW_RUz_ZYRN6jlRqXXCuK1ToPYjhimv4NdzuhmPYcrlJK2EO5cccDI0DzZG1Z oEd8YK1rvA.B.3gtSP2m.hClTB9c7ogPibrN_b4ypFf3vi3qLG27wbNR1gUQcxjqH3VXgmFQjB2o krth3XATy4ZRVjjoizAKx2Iw_p1UTk4QnMyBp51fgCjNUhgKCK3ZlItkydiO0hvUCdegUv.OXVMh TRXrjghUzPfkpSt3La73WPdyhk8LRYTCimFKmTJhZTmSEpw7jwiXrlhD1DI1L6SZPPcJ85yH_jq. kjm.qS3gxXbSHBHe0aKtKzUgqQn9pTED92uZo.dw6xBo_io3R7gNkEyt8vzuwwY6mMhxGDdNlQ51 L2bSxFZXDTN9Ct2ToIJ9D_IbhLnBTLfC4IKRVYzGlDyp_52UozzL42QY.7AC3Md1HHasbxvFzOHL 1_D5TuFwKXyy7qQat3pweFkIPV8CA9RogS2sunoWcQNuMJN6u7HYtGEGiv8FK_vf2jo1C88Oz_Fn DyMeZogT8i8.JYN9BHznXmOzuW5M2RnhqW3FwMZPBYK6KKMUEMWQC_s6KpOkxblaH97JWBhwT2Mr fxjiMh46GgDqK.bYH_wFcVndnz6g3DYT4AlwG3jNKmkvBYf4ib_kYmjQYKlgIiHHGk4_ndwmtNY0 w3Vd7JFHmcL0D57LTlzwqll_asTEvYcwvhWlGNF_4QO5n X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Thu, 15 Dec 2022 21:34:12 +0000 Received: by hermes--production-ir2-5795fc58c8-qgfzv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 0e42e92425e579d0ca361188013887e7; Thu, 15 Dec 2022 21:34:10 +0000 (UTC) From: Daniel =?UTF-8?Q?Mart=C3=ADn?= References: Date: Thu, 15 Dec 2022 22:34:08 +0100 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 15 Dec 2022 13:10:00 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1135 X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Jo=C3=A3o T=C3=A1vora writes: > I don't know how this can work if '<' is going to be used to input > the less-than operator. I think more complex syntax-propertization > functionality is going to be needed here. I don't have a tree-sitter > build to test, but I'd say that the tree-sitter backend should be asked > about what kind of '<' and '>' we're talking about. AFAICT, just > saying that '<' has the delimiter syntax in C++ is wrong. It's not > like '(' or '{.' Yes, you are right. I think for now it's better to consider them as punctuation. A better idea may be to add a syntax-table text property to "<" and ">" when they define a C++ template (or a Java generic). Tree-sitter can match something like a "template_argument_list" node easily, but I wonder how to keep this information in sync with the buffer text in the most efficient way? I thought about adding a custom parser notifier via treesit-parser-add-notifier and remove/add the text properties for the template argument list delimiters. WDYT? Of course, C would not use this extra processing at all. I've CC'ed Yuan for feedback. From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Dec 2022 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel =?UTF-8?Q?Mart=C3=ADn?= , Stefan Monnier Cc: Eason Huang , casouri@gmail.com, 60087@debbugs.gnu.org Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167114061815870 (code B ref 60087); Thu, 15 Dec 2022 21:44:02 +0000 Received: (at 60087) by debbugs.gnu.org; 15 Dec 2022 21:43:38 +0000 Received: from localhost ([127.0.0.1]:45093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5w0w-00047u-0S for submit@debbugs.gnu.org; Thu, 15 Dec 2022 16:43:38 -0500 Received: from mail-ot1-f46.google.com ([209.85.210.46]:45782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5w0u-00047n-8b for 60087@debbugs.gnu.org; Thu, 15 Dec 2022 16:43:36 -0500 Received: by mail-ot1-f46.google.com with SMTP id l8-20020a056830054800b006705fd35eceso280217otb.12 for <60087@debbugs.gnu.org>; Thu, 15 Dec 2022 13:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ROVe3PuVU6+PK35MRmwAnN7wy4MfWwB91V9KNm/Vius=; b=c0Im+hOP44rFKtGGSZ7H6hCWynwoZ2v6HeaSA94xxySJ53i9PpFq51TP7xsNsecVx6 hTPjsYrCXFm4aRetHsX08J/A04KBdGrkFO70npf6zSyBMbEUqgX6eGjT7BTjQ5XMAeUg DSMJNvT55v/zw2iTC7qV5CXE297pLdYj5yNp2dBr/2GqGzgZOPyInneIm/uYI3oOXK32 1B0IcCDgCywh5Ryk1KYLArMJ+rK+6PX3ytU/T6g3kMjIsjtM0pdPDXghOv5v3LncpbBq k6esdlrqInh7l+jYHjIInxapWeICSlZHepY9Z01pwq/QrV0ymY8i3/yqqfsOJ92tBTD/ GEng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ROVe3PuVU6+PK35MRmwAnN7wy4MfWwB91V9KNm/Vius=; b=j6G0SEZTAmN0thBVELUsBX6CQKeqyY3G/LpLP9fkPmvmyr+b2j8EeYvaXhrA+5M7DA EDqEA+sGA2peyYNGuNc+/+4pVjR6mCb5vGKhduvzRr6TxOXl+md1mdON7M46ql9T1IOm XTAR497yhx+YCKMZHe7EnELqbEXnENw7+iH98x9LHFSal4digQBzCaClzJLHSd1V5SSV 7eelTAngIY3SNFFRPc3YW7iUineIWO0m0U0TogAkjDdN+jyraye81GYhl35l7ht43ijS gTfRsPTpC3R7P2HuROcnBd82rFy/lzvfrKzRgrOb7iNwEwt0SimjHwXxK6Eqo5LM+skw GahQ== X-Gm-Message-State: ANoB5pmE7bvAmZDmpoeK2pfhGWhyVfqzFtZlLtiFLSL7wXpjOUyuw2XO yuz7e+M//Uj6ZMYnGtxt87zzjOHCx6/21U8qAfE= X-Google-Smtp-Source: AA0mqf6zbHTcvz5FiWQThMCKSFO6j8zNANlSzkuHeQy5Kh2ase7Pu4FTzPt97VbxTaF1Ixn5RhVZ5HZcOcbNP7XPxzI= X-Received: by 2002:a9d:80a:0:b0:670:8334:ccf2 with SMTP id 10-20020a9d080a000000b006708334ccf2mr1367986oty.201.1671140610635; Thu, 15 Dec 2022 13:43:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 15 Dec 2022 21:43:19 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000777ac605efe4bed4" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000777ac605efe4bed4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 15, 2022 at 9:34 PM Daniel Mart=C3=ADn wro= te: > > Jo=C3=A3o T=C3=A1vora writes: > > > I don't know how this can work if '<' is going to be used to input > > the less-than operator. I think more complex syntax-propertization > > functionality is going to be needed here. I don't have a tree-sitter > > build to test, but I'd say that the tree-sitter backend should be asked > > about what kind of '<' and '>' we're talking about. AFAICT, just > > saying that '<' has the delimiter syntax in C++ is wrong. It's not > > like '(' or '{.' > > Yes, you are right. I think for now it's better to consider them as > punctuation. > > A better idea may be to add a syntax-table text property to "<" and ">" > when they define a C++ template (or a Java generic). Tree-sitter can > match something like a "template_argument_list" node easily, but I > wonder how to keep this information in sync with the buffer text in the > most efficient way? Supposedly this is what I understand tree-sitter to be very very good at. My completely naive and absolutely ignorant understanding of the new tree sitter modes is that once you insert something into the buffer, tree sitter is immediately notified, recomputes the syntax tree very efficiently and incrementally, then Emacs can immediately take advantage of that in the `syntax-propertize-function`, applying the correct syntax to each separate manifestation of the '<' and '>' characters. Hopefully all of this runs in time for post-self-insert-hook to see the correct synta= x class and thus electric-pair-mode, which relies on p-s-i-h can do the right thing each time. Again, this is completely my vapourware idea of how all this was implemented. I'll also CC: Stefan who is my syntax-propertize and electric-*-mode sensei. Jo=C3=A3o --000000000000777ac605efe4bed4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Dec 15, 2022 at 9:34 PM Daniel Mart=C3=ADn <mardani29@yahoo.es> wrote:
>= ;
> Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com> writes:
>
> > I don't know= how this can work if '<' is going to be used to input
> &= gt; the less-than operator.=C2=A0 I think more complex syntax-propertizatio= n
> > functionality is going to be needed here.=C2=A0 I don't = have a tree-sitter
> > build to test, but I'd say that the tre= e-sitter backend should be asked
> > about what kind of '<&= #39; and '>' we're talking about.=C2=A0 AFAICT, just
>= > saying that '<' has the delimiter syntax in C++ is wrong. = It's not
> > like '(' or '{.'
>
> = Yes, you are right.=C2=A0 I think for now it's better to consider them = as
> punctuation.
>
> A better idea may be to add a synta= x-table text property to "<" and ">"
> when= they define a C++ template (or a Java generic).=C2=A0 Tree-sitter can
&= gt; match something like a "template_argument_list" node easily, = but I
> wonder how to keep this information in sync with the buffer t= ext in the
> most efficient way?

Supposedly this i= s what I understand tree-sitter to be very very good
at.=C2=A0 My= completely naive and absolutely ignorant understanding of the
ne= w tree sitter modes is that once you insert something into the buffer,=C2= =A0
tree sitter is immediately notified, recomputes the syntax tr= ee very=C2=A0
efficiently and incrementally, then Emacs can immed= iately take advantage=C2=A0
of that in the `syntax-propertize-fun= ction`, applying the correct syntax
to each separate manifestatio= n of the '<' and '>' characters.=C2=A0 Hopefully
all of this runs in time for post-self-insert-hook to see the correct= syntax
class and thus electric-pair-mode, which relies on p-s-i-= h can do the=C2=A0
right thing each time.

Again, this is completely my vapourware idea of how all this was=C2=A0
implemented.=C2=A0 I'll also CC: Stefan who is my syntax-proper= tize
and electric-*-mode sensei.

Jo=C3= =A3o
--000000000000777ac605efe4bed4-- From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Dec 2022 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: casouri@gmail.com, Stefan Monnier , 60087@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167213189515081 (code B ref 60087); Tue, 27 Dec 2022 09:05:01 +0000 Received: (at 60087) by debbugs.gnu.org; 27 Dec 2022 09:04:55 +0000 Received: from localhost ([127.0.0.1]:54690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA5tG-0003vB-TO for submit@debbugs.gnu.org; Tue, 27 Dec 2022 04:04:55 -0500 Received: from out203-205-251-72.mail.qq.com ([203.205.251.72]:35579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pA5tC-0003ur-9K for 60087@debbugs.gnu.org; Tue, 27 Dec 2022 04:04:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1672131881; bh=jANVLrVAZHkBC6B/66hMicgKvB9j1AFeVVHOm92T/d0=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=YIN0GOo8+Mh/HDnnPhadItVb8NZ/FUHVkTVVC06ab0hm8oUJngplRtQ4GM/2nr83c iojZR68Q2HYe51xjin60ODJ/bQR7q76uLkq3oztL5CWpTFPwsTB89ii9j5zjzwYEQz mIiuoedKQnDIJ4oeP9s5Px6x/GonWBkKthVlo78I= Received: from macbook ([114.82.35.56]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id DC06E0E; Tue, 27 Dec 2022 17:03:28 +0800 X-QQ-mid: xmsmtpt1672131808tgm2skii9 Message-ID: X-QQ-XMAILINFO: Nci1v0XuD9lFuRp/fha58okuMlgn/HCVnMEjpvTcCZEz6+5EuITPRqbEWEcWOP aoesURL3rcXG4iMhxrght2noLXJmpSqIIjHjPLpl1VBiQUVQj2AniaC8sLIeKVh8H+VTrl6l04rL lTpFymkk1wJgnEK4V8etk7owlGGiUjQ/Mz302Q2fTRq0SxLIPRVzW/v+H8Hv5fY7s3QImNNfiolH VczbRsq9rjBf4JtW4CgfprRmXYWxntutvI6lgbgZ3yN792AdRHAmHEDMIvD02WBMqg/FMZzZeAGZ 5ngW9Gn7sEqUq+/nN6puuBcoEWYwlSI1Fi6wiy1WoF0yPsqixaM2Fdw5QJB/WFcjzdnxn7mhEaMy liwwPGyaRmn7wpa0npbfkW7W2u0br1Ro1aDz4HIUb/7F6oFOiqTgpKd0+5zG0F2T/TOSKW6zUi/O ucBZ7rcmUIX5Byby77IhD7Zs9XK9Rf8PqyNzRMTauPf582xF7mRfyu3ewRscMHBd0b+yENsH300A Vk2nWj18FaVVIqdevhEvAwmYwCE4lzwmgs8HRncLREQ7PMhS5XQGEQZlFGeop04hQmS3iEenPzim 67XRCjEAbyLxMUkigUsz9tZyRj/EghlsxsQ7HDjfVIKLQA3xCrL6SPMJrIa9jDZ5ttPkr4lpmHNR DhEcGBEMd+UnsM4EW9+CXXZ7CSCMEVEFzNV0tZdImtlF+bJlgMQCKEeV98bf0GCQWuBps+S20NoI DSRJM9a6DEX5Qo9DlTkKmg8i4C5ZfUsYvtZGh6rvf2vldGJ649dLYugc7uqdRFurxO0ZXL5zqWbW Q27F1E7jrUEMY7L5EZl5NW3ajkflFjSpzrc71W5Xv3OeG8YZ+EdA5BrYZwHgdbxkRsl2+XekQ7By VadU7sYHzV6JTmrO0aUHOMbSCqWuJLQUKJa58loowwxnw/1LKO53X5EmVM3MfaiQgaWCVPC59HpU u4fqui4lZ282GpZpn9Z7V9AzSOJk+m From: Eason Huang In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 15 Dec 2022 21:43:19 +0000") References: Date: Tue, 27 Dec 2022 17:03:27 +0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= writes: > On Thu, Dec 15, 2022 at 9:34 PM Daniel =?UTF-8?Q?Mart=C3=ADn?= wrote: > Does the following patch solve this issue and bug#60049? Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.72 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= writes: > On Thu, Dec 15, 2022 at 9:34 PM Daniel =?UTF-8?Q?Mart=C3=ADn?= wrote: > Does the following patch solve this issue and bug#60049? Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.251.72 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Jo=C3=A3o T=C3=A1vora writes: > On Thu, Dec 15, 2022 at 9:34 PM Daniel Mart=C3=ADn w= rote: > Does the following patch solve this issue and bug#60049? > diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el > index ff2ff63fd8..11b2b9408c 100644 > --- a/lisp/progmodes/c-ts-mode.el > +++ b/lisp/progmodes/c-ts-mode.el > @@ -86,8 +86,8 @@ c-ts-mode--syntax-table > (defvar c++-ts-mode--syntax-table > (let ((table (make-syntax-table c-ts-mode--syntax-table))) > ;; Template delimiters. >- (modify-syntax-entry ?< "(" table) >- (modify-syntax-entry ?> ")" table) >+ (modify-syntax-entry ?< "(>" table) >+ (modify-syntax-entry ?> ")<" table) > table) > "Syntax table for `c++-ts-mode'.") Hi Daniel, Sorry for the delay feedback. I tried your patch and it fixs bug#60049, but I just notice that `show-pare= n-mode` don't play well with c++-ts-mode too (before and after this patch). with the code snippet as below: ``` #include int main (){ std::cout << "Test" << '\n'; return 0; } ``` With `show-paren-mode` enabled, then put cursor after the '}', the last '<' will be matched and highlighted, the expected match is the '{'. I hope this information will help you to understand the issue. --=20 Eason Huang From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 06:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: casouri@gmail.com, Stefan Monnier , 60087@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167229424921486 (code B ref 60087); Thu, 29 Dec 2022 06:11:02 +0000 Received: (at 60087) by debbugs.gnu.org; 29 Dec 2022 06:10:49 +0000 Received: from localhost ([127.0.0.1]:59149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAm7t-0005aU-1o for submit@debbugs.gnu.org; Thu, 29 Dec 2022 01:10:49 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:35409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAm7n-0005a5-2j for 60087@debbugs.gnu.org; Thu, 29 Dec 2022 01:10:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1672294232; bh=j8hMJEnDnvRbLSaP+2T980YIkCWkK6EW7PciXyKTvCE=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=GoXquwaAuVlZ/Pj5M/UEaDU9CPqpJq+StfKr/UtkeF7wX1nNhznpepxrC1usOnYsR eGJppjIta9mICX0SXky7UJ3lRnycKRexr4oxdOcgoJUdqQ6fSegsFQUNZt7RSgi8JU MBkgbUSYWxYnjWdffBN7/nET7dFt30PXc2MvQ40M= Received: from smtpclient.apple ([2402:d0c0:2:2e58::1]) by newxmesmtplogicsvrszc1-0.qq.com (NewEsmtp) with SMTP id 29A006B1; Thu, 29 Dec 2022 14:10:26 +0800 X-QQ-mid: xmsmtpt1672294226td8j3sau0 Message-ID: X-QQ-XMAILINFO: NfHsM/dq2nWIEpgp0dehAOA+PSqcCgAwYR0OKBGBVKc8DsKYXoC+MKYYx9beDV 6BUnQn3So0rOX/allTzy/oiC7MrVMIi4rD/o9RSXI7ZnYDsmd07mwK9P0zvU/ET8OVh/R/UKqnes lAJM4E14gORCPk146ikc8g2S2WtknvtZcO6dVI7EUUmwey7VqrpvC7sPfBCSzha4qMRGGDEPitCY Zv8bGXV5oc8Sn8ZFYN4aAsiL0wwo9cj1Dao8E0+L/Vl9T7+UHZ7aa/UrkiCcWicpjoHoRYWUqR9O jgEn32K7fqTpK4sTwmQE0jefgWHaA+mDrwr/CYgNPJNry20yo4Y6xLYSdcp8DRFmLKwmKHHfgyvY V1cV667YWxVeoYTB44gzDano58lVQYPi/4CNbkAHaXEZm2L+psVgly8PvgHuoddAzzR3Xlnx797k HMsHd9YL1Za5bQlkvB6gN4LU24Ype9aebL4iZ0tEZjG16nFBjOKSVIfhiIz9QX14Hj9eTeqHbMAt GFJUKSCWdIfqqzMyA4W4gZaPtMxo/zDQ9LHitIADdYMkjSAQIW7YyhMCJWHNhI6LokpoZWSdWnM5 V+LJqeSrLuSi9l/QtUMCX33cO41q++vCcjRe9mqclIQDcCUHrzogonJLdWEpTdxt4PCYO6a7/lY9 N0P/RMqA5UXt3qMkXNaxViFvMcuHYB13x8+lgr8wN2EDScP8XHNB4D4T8r4Gvn7lHkmNDOvJ9Hv7 bHh78+Da1YXRrZ7eUdC8aSjxZ/fMb4WsYoEANVYoqK7M4clCBAdI7tpiGhL+meXyObSBjhglh6vX 9KmpMGSvEhFSwbJeG6hmaY4jaoTaHVfya8pDxSybBKlDfoJZUc2r92HOuupEiYnqEdQkL9zd4NVr YD7Ma5DzyfBtpQs8QYfDkBfyC4t2GdEUIeDjgy1plFUrH1kZS7b0Dj5KcFQRYAul8cSH3MKnXY Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.300.101.1.3\)) From: Eason Huang In-Reply-To: Date: Thu, 29 Dec 2022 14:10:13 +0800 Content-Transfer-Encoding: quoted-printable X-OQ-MSGID: <607E1FCB-0356-4D21-8EA4-AC2255D15467@foxmail.com> References: X-Mailer: Apple Mail (2.3731.300.101.1.3) X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi all, I can confirmed that the latest commit (909091d7578b7225601b202fb9257dedae879e9a) of Emacs-29 have been fix this bug#60087, and `show-paren-mode` also get the expected result when c++-ts-mode enabled. Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.252 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.252 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi all, I can confirmed that the latest commit (909091d7578b7225601b202fb9257dedae879e9a) of Emacs-29 have been fix this bug#60087, and `show-paren-mode` also get the expected result when c++-ts-mode enabled. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [162.62.57.252 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [162.62.57.252 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aqua0210[at]foxmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (aqua0210[at]foxmail.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi all, I can confirmed that the latest commit = (909091d7578b7225601b202fb9257dedae879e9a) of Emacs-29 have been fix this bug#60087, and `show-paren-mode` also = get the expected result when c++-ts-mode enabled. I think we can close this bug now. ---- Eason Huang > 2022=E5=B9=B412=E6=9C=8827=E6=97=A5 17:03=EF=BC=8CEason Huang = =E5=86=99=E9=81=93=EF=BC=9A >=20 > Jo=C3=A3o T=C3=A1vora writes: >=20 >> On Thu, Dec 15, 2022 at 9:34 PM Daniel Mart=C3=ADn = wrote: >=20 >> Does the following patch solve this issue and bug#60049? >=20 >> diff --git a/lisp/progmodes/c-ts-mode.el = b/lisp/progmodes/c-ts-mode.el >> index ff2ff63fd8..11b2b9408c 100644 >> --- a/lisp/progmodes/c-ts-mode.el >> +++ b/lisp/progmodes/c-ts-mode.el >> @@ -86,8 +86,8 @@ c-ts-mode--syntax-table >> (defvar c++-ts-mode--syntax-table >> (let ((table (make-syntax-table c-ts-mode--syntax-table))) >> ;; Template delimiters. >> - (modify-syntax-entry ?< "(" table) >> - (modify-syntax-entry ?> ")" table) >> + (modify-syntax-entry ?< "(>" table) >> + (modify-syntax-entry ?> ")<" table) >> table) >> "Syntax table for `c++-ts-mode'.") >=20 > Hi Daniel, >=20 > Sorry for the delay feedback. >=20 > I tried your patch and it fixs bug#60049, but I just notice that = `show-paren-mode` don't > play well with c++-ts-mode too (before and after this patch). >=20 > with the code snippet as below: >=20 > ``` > #include >=20 > int main (){ > std::cout << "Test" << '\n'; > return 0; > } > ``` >=20 > With `show-paren-mode` enabled, then put cursor after the '}', the = last > '<' will be matched and highlighted, the expected match is the '{'. >=20 > I hope this information will help you to understand the issue. >=20 From unknown Tue Jun 17 01:40:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eason Huang Subject: bug#60087: closed (Re: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode) Message-ID: References: <83mt7690t6.fsf@gnu.org> X-Gnu-PR-Message: they-closed 60087 X-Gnu-PR-Package: emacs Reply-To: 60087@debbugs.gnu.org Date: Thu, 29 Dec 2022 06:34:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1672295642-24340-1" This is a multi-part message in MIME format... ------------=_1672295642-24340-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60087@debbugs.gnu.org. --=20 60087: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60087 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1672295642-24340-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60087-done) by debbugs.gnu.org; 29 Dec 2022 06:33:08 +0000 Received: from localhost ([127.0.0.1]:59160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAmTU-0006JL-HL for submit@debbugs.gnu.org; Thu, 29 Dec 2022 01:33:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAmTR-0006Il-Hu for 60087-done@debbugs.gnu.org; Thu, 29 Dec 2022 01:33:07 -0500 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 1pAmTK-0000UG-O8; Thu, 29 Dec 2022 01:32:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GT0ZC1EW77/LcNKmWrQClv4RL7tG2kqpUGWrB8kBREg=; b=PxYZ6UGzW/CBBOao55A6 ZRs8JMzvFhov3nA8zGeowTmyF1yqgKlzkk6iveGGOWLYUaNthNanW+8UQkQGnBdQXc573qqZeLWXy GYEafvbSKxvmHrRH/XtzfrC+oZO8Z7Ws/VfxuQzf8ZdAB+NldwuKFGzm32HxOCOC1Lav05vYoDn6O ZrFgMCvszm3opn7FWID1zuvn1+9EKIxJtVUuNdRF87Hqrp8KJJcmSwzdTUaUAYEhIUY4L9Mg5LUzk wOOhRAIDLVTIfI90eTClslX+9py0X8vYIP+/YPLTyxEv+rgyWp935rUADzHaV/MmyCEaRYDvxwhLL IDmEv91+jO8gyQ==; 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 1pAmTK-0001f1-4Q; Thu, 29 Dec 2022 01:32:58 -0500 Date: Thu, 29 Dec 2022 08:33:09 +0200 Message-Id: <83mt7690t6.fsf@gnu.org> From: Eli Zaretskii To: Eason Huang In-Reply-To: (message from Eason Huang on Thu, 29 Dec 2022 14:10:13 +0800) Subject: Re: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60087-done Cc: casouri@gmail.com, mardani29@yahoo.es, joaotavora@gmail.com, 60087-done@debbugs.gnu.org, monnier@iro.umontreal.ca X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: casouri@gmail.com, Stefan Monnier , > 60087@debbugs.gnu.org, Daniel Martín > From: Eason Huang > Date: Thu, 29 Dec 2022 14:10:13 +0800 > > Hi all, > > I can confirmed that the latest commit (909091d7578b7225601b202fb9257dedae879e9a) > of Emacs-29 have been fix this bug#60087, and `show-paren-mode` also get the expected result > when c++-ts-mode enabled. > > I think we can close this bug now. Thanks, done. ------------=_1672295642-24340-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 11:33:16 +0000 Received: from localhost ([127.0.0.1]:42837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5mUG-0002K8-5f for submit@debbugs.gnu.org; Thu, 15 Dec 2022 06:33:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:46320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5mUA-0002K0-7X for submit@debbugs.gnu.org; Thu, 15 Dec 2022 06:33:14 -0500 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 1p5mU8-00036K-Bw for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:33:09 -0500 Received: from out162-62-57-210.mail.qq.com ([162.62.57.210]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5mU1-0006pg-PQ for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:33:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1671103969; bh=HWH9VEWvD+YSNHalfvFXW3pK4YQUlxOSjrW7XxXfT8Y=; h=From:To:Subject:Date; b=YBIVsVN3Al/vrp5FWlMm779wY9b8quuQy0+AvKs/+Vk/H4ZR6W20LKGeZVV781YTH eSRR1PYZubD94BPk/0mSSP9tUSKY6fzvVbE1/qku1CzV61OukIJXsZ+aixX8bNyxsz sgbln4mSmyoJs86mSHW2ddqXBih1TmxLPdBi+YSM= Received: from macbook ([114.82.35.56]) by newxmesmtplogicsvrszb6-0.qq.com (NewEsmtp) with SMTP id 458820FF; Thu, 15 Dec 2022 19:17:24 +0800 X-QQ-mid: xmsmtpt1671103044t3jks4ypn Message-ID: X-QQ-XMAILINFO: OCYbvBDBNb9rVAED7lOKHCIZe0ApZE34L63DpgzFwvbU2p7a1Xje63e7dkxqRD JKcIto16P+qZYJJuwFXdJq4/kASGmQJMnn1s0eoR8YaCRRtbDLw6UIopNnKanj3bSxIM9U9AbzXg +HA8rYNxbumfx1Djs/ia/7jm/wQXOnzVDBB0Rb7iOmBSbvMkUbAeiCaWKrySJJg4tyGuf+JXCB+A pDpILrlRKpPzAAbs0ivh6u6rp6ixJWyY0+Re46YvbPf7PPN43Le07Heaolp1n1tP6KvbnsGi4dkX bbBaRgocxbRUxAMLzWc/s+PjB8Sr38gWdXViwdYpvd4G/Or6Jgmptny6wOKNK2JIWDT3uGljYIjx od3sXzryhTU3/ZpQaVVu6+7l3aoqNlU17QHE+DD6AAFxfPMIrLh4DSr5mOsDwys6LW+PRk793hiQ t6vu7SdxcuK4y48ODMTO4mZDwagQx0EKa1oTgNuxNbH/EskvOHyGUv0nfc4IA+e/3snbkrsglPu2 uz5J4TxnfXBELBxBRZF2nCEEpPlLPPTOum48ZHU1o+GJef7MMtGy709OmwjkNscAigQsSBGaFVnz th4s0RAs/ckgNsA/UE3KWSYWFx8vHVr7d0qky0trP9xE7hjB9KE9gL57jSK70tz8YK9ffKDrKuPC yMDRFfM3wBCFNfM2ALTvTDQk2l7JXl47k+ISPBt2Uoh6RictOx2neUpd2LvV7iC9HXHxO7ZP3M73 Uaqlh3WOk/oaLcwtqey9zrCtUt7MvbCtxqRwCWdw7iI/FUg/j6gKaizimJSvnFChSHaTuHkwa3Zc W6gU4LR3oThMOtilX2IqxDYh9jrFB64E5Z9ar0+YbObvzXt6ke4vQB+khBDC10QDM41oRoWnkPak y8UJNx3ud00JbTTE2oIXPkOFH7fXaih8qseKqEiWn+FqqAfxZIqjTdpay/6zzN5SudUTv7Xjn0C2 XVF1cv329vz+3MPTHy94Urxt9JI3oald09MWoA4VluWhFVkdjI3yIDOOxeKqKN From: Eason Huang To: bug-gnu-emacs@gnu.org Subject: 29.0.60; c++-ts-mode conflict with electric-pair-mode Date: Thu, 15 Dec 2022 19:17:19 +0800 X-OQ-MSGID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=162.62.57.210; envelope-from=aqua0210@foxmail.com; helo=out162-62-57-210.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Hello Emacs dev team, I found that the c++-ts-mode conflict with electric-pair-mode. My build is based on commit a15cd55044c6bb4d4e9f9aec23b8b5b9cbcb38ac May be the issue was introduced by this commit: https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=480f41c7deb4d3a45a862a5308950b35085f835d I can confirm that Before the commit 480f41c7, It work well. steps to reproduce: 1. emacs -Q, start Emacs 2. C-x, C-f ~/test.cpp, open any cpp file. 3. M-x c++-ts-mode, enable c++ tree-sitter support 4. M-x electric-pair-mode, enable electric-pair-mode 4. Type the following code in the test.cpp buffer. ``` #include < ``` you will the the result as below: ``` #include << ``` expected result is: ``` #include <> ``` -- Eason Huang In GNU Emacs 29.0.60 (build 1, x86_64-w64-mingw32) of 2022-12-15 built on DESKTOP-VIHFE84 Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2364) Configured using: 'configure --with-native-compilation=aot' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB Important settings: value of $LANG: CHS locale-coding-system: cp936 Major mode: C++ Minor modes in effect: electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cus-start cus-load elec-pair c-ts-mode treesit cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 117001 10015) (symbols 48 10094 0) (strings 32 29095 1843) (string-bytes 1 947838) (vectors 16 19056) (vector-slots 8 428832 17970) (floats 8 49 205) (intervals 56 295 0) (buffers 984 14)) ------------=_1672295642-24340-1-- From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 08:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eason Huang Cc: 60087@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Stefan Monnier , Daniel =?UTF-8?Q?Mart=C3=ADn?= Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.16723034147835 (code B ref 60087); Thu, 29 Dec 2022 08:44:01 +0000 Received: (at 60087) by debbugs.gnu.org; 29 Dec 2022 08:43:34 +0000 Received: from localhost ([127.0.0.1]:59214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAoVi-00022J-CU for submit@debbugs.gnu.org; Thu, 29 Dec 2022 03:43:34 -0500 Received: from mail-pl1-f169.google.com ([209.85.214.169]:43678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAoVf-000223-7f for 60087@debbugs.gnu.org; Thu, 29 Dec 2022 03:43:33 -0500 Received: by mail-pl1-f169.google.com with SMTP id d3so18328007plr.10 for <60087@debbugs.gnu.org>; Thu, 29 Dec 2022 00:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/HrLjfxWHEwAOhAPJDusnqhRqtCuakg2XRr1jddc304=; b=JSoAVD8gvQ1yiGSoOpmX/gobI6cvCaJs/4tJoOOsICox8AaPtO2O/7Cyc87X87VtOJ TTIuL6b4Xlx/Cp+NsbvVDDntHe6r0LFwdz3ktYv/NJMPcG9dDGB10lkJuCI09NXhE5/p UjnsZLl2qHpzVWGW/XzgzksY3fPpbyziHBvPItwmw4d8jIazmoEQeTQEi33OW5tbzCcH yk+4AfoqRFgAgPz7Wcxu10p+Wce98ycHbLr5nFXRDSddOR9zF3fV24KvsEqo9+Y3A2kv Xd585MmwtzYHVH2GDrMAsMHxciqDKN0L2vmQKRID+RzVUY0klz8rCET/cdxz5yfVoLDT eb+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/HrLjfxWHEwAOhAPJDusnqhRqtCuakg2XRr1jddc304=; b=f7whXOawSJF7DZdkIK+KeLsUvz1qLMioOGe/ftoggYeIr/J9t46LtaH75Yv2KcCRxa LrBaZ33zenliAJu5XWbMe8KZFp5eC7SGEfTR1CbQ1j+mELeiqFoz0EibftuEAdj9OY0F ht5UXsKLtsmQ6PYYn2iBF8BWvxUKk94D39tD5WtspqTOX6MgXbeklZr9+iUHClgzfBCl tCwFvyaj2XVXJ1eB+gmeAhsPTN+cw5SttO6KpJWMKdClLzBR3H4ttQqd0VQmKaYCmuWq 6q6b3lD7gqw4G25x6wHlIa4QOipmbiTxjzDLtEWoLtaToIIKJ0D0hApNucro/gsl0kXa GKlQ== X-Gm-Message-State: AFqh2kp9asneMLNZYJkgHAYIdml4wNH3XXfpC5d70xyTONw4Cka6Sqr3 IN4Q4oA7ezBmk1tPwy7kRJc= X-Google-Smtp-Source: AMrXdXuWTu8tXlTCqkVWYcEImKJ3HUk8F1zWUiRCNtGhPVvJxUWaXHwVsqO9pRkHMAVrrGJcrDb+iA== X-Received: by 2002:a17:902:ab1a:b0:192:9924:ce7e with SMTP id ik26-20020a170902ab1a00b001929924ce7emr3498969plb.55.1672303405297; Thu, 29 Dec 2022 00:43:25 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id i18-20020a17090332d200b00174c1855cd9sm12392939plr.267.2022.12.29.00.43.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Dec 2022 00:43:24 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) From: Yuan Fu In-Reply-To: Date: Thu, 29 Dec 2022 00:43:23 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <1DC186A6-5659-4A06-B402-E65793E78991@gmail.com> References: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Dec 28, 2022, at 10:10 PM, Eason Huang = wrote: >=20 > Hi all, >=20 > I can confirmed that the latest commit = (909091d7578b7225601b202fb9257dedae879e9a) > of Emacs-29 have been fix this bug#60087, and `show-paren-mode` also = get the expected result > when c++-ts-mode enabled. >=20 > I think we can close this bug now. Sorry guys, I completely missed this bug report :-( Yuan= From unknown Tue Jun 17 01:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 09:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60087 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu Cc: Eason Huang , Stefan Monnier , 60087@debbugs.gnu.org, Daniel =?UTF-8?Q?Mart=C3=ADn?= Received: via spool by 60087-submit@debbugs.gnu.org id=B60087.167230485810526 (code B ref 60087); Thu, 29 Dec 2022 09:08:01 +0000 Received: (at 60087) by debbugs.gnu.org; 29 Dec 2022 09:07:38 +0000 Received: from localhost ([127.0.0.1]:59253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAot0-0002jg-7C for submit@debbugs.gnu.org; Thu, 29 Dec 2022 04:07:38 -0500 Received: from mail-oa1-f44.google.com ([209.85.160.44]:36824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAosy-0002jQ-0y for 60087@debbugs.gnu.org; Thu, 29 Dec 2022 04:07:36 -0500 Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-14ffd3c5b15so9593082fac.3 for <60087@debbugs.gnu.org>; Thu, 29 Dec 2022 01:07:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+CVaVfk0rVOA9Jr192WKimFy9B9A5VFEfTrRmGXqC7A=; b=OPomHZc7yDqA0VKDRfIApXU9y6VMnXjB7X7wIuPoJG2DLjtvE3dl7w5ptQi7KWGMOA zXmJKko2ud/7to35985xWFnCkAtQI/8u5703dtzHQ7BVW+rWBoJI/xiOY2K/BFdqSYWs WQxGVGOgZIHWB58iGwwNb2C+kRZSlqEx/zkyHzeVWUTXUyhHFywZBEflMoMuLm0VTZBW 8t0Lf5D/Axqzc+7LuiYz8ebSBzKPylVWQSZGGovvwFxahPbn/2JA0C6a635Xl8QMuvbZ SQqyXhA2tEdmF/ZyJUqKZyYSiCN/NpUoXC4iMXtFXdsfWzNn+SOgC++Es63Rt9tuazIJ +vvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+CVaVfk0rVOA9Jr192WKimFy9B9A5VFEfTrRmGXqC7A=; b=aq3l+w1abMzuek7v6ux/5wZ+HKx3N7wumnsCdk7HhJVmz8f3Bhmt2vypYFrF52La81 z7EMtrE4FumOx/UPO0wCWtuoyeZutNDX3njAnN57mVtuxzEfLlBVar0mzEBM+oVyKLGR FJ4WvJWK6QzJNP2g270ILyYuvm7V3R6sv8wTfUUrJ894ssmyq1vlxe/Wbf8aMuZeKxqe l1MGLambVVE37kNjZF3njIttKijXjehXgvfRpijnyry22TdyTamH/wD0Mr8K8+YtEVL3 W8l7KGUPUZr5mNq3IhtC55GiqPcSqw/5Dml+6svi09IWtniC0JdwCZUR8Ng2uDj4Iwkz NsaA== X-Gm-Message-State: AFqh2kpBKnPd/r+maPVsRB7Eh0OkgX1buCp16rt3E0mReR7YYn5BZQub Me9nBupiO8BujGYR6yyS4urQcOVcbjhA+jOGE3Q= X-Google-Smtp-Source: AMrXdXuqyfZnBUCzamySgmfcKtyqhZUnAmZVVz7Kg8z7sLF4FBJxIGLRoTZr7hNNibwy1rxDSwXZ5GR6cYRxOmzvq0Q= X-Received: by 2002:a05:6870:d99a:b0:143:7889:c525 with SMTP id gn26-20020a056870d99a00b001437889c525mr1546189oab.171.1672304850386; Thu, 29 Dec 2022 01:07:30 -0800 (PST) MIME-Version: 1.0 References: <1DC186A6-5659-4A06-B402-E65793E78991@gmail.com> In-Reply-To: <1DC186A6-5659-4A06-B402-E65793E78991@gmail.com> From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 29 Dec 2022 09:07:19 +0000 Message-ID: Content-Type: multipart/alternative; boundary="00000000000090437405f0f3d0a7" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000090437405f0f3d0a7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I wish that we would either re-open this bug or open a new one to study the pairing or not-pairing of `<` and `>` with Tree-sitter and electric-pair-mode. One of the high hopes that I had for tree-sitter modes is that it would help electric-pair-mode decide what to do depending on the syntactic situation. So it would pair < and > in template argument lists but not when < or > are being used as comparison operators. I wish Stefan or Yuan Fu would comment here. Jo=C3=A3o --00000000000090437405f0f3d0a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I wish that we would either re-open this = bug or open a new one
to study the pairing or not-pairing of `<` and= `>` with Tree-sitter
and electric-pair-mode.
One of the high hopes that I had for tree-sitter modes is that=
it would help electric-pair-mode decide what to do depending
=
on the syntactic situation.=C2=A0 So it would pair < and >= in template
argument lists but not when < or > are being u= sed as=C2=A0
comparison operators.

I wis= h Stefan or Yuan Fu would comment here.

Jo=C3=A3o
--00000000000090437405f0f3d0a7--