From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode Date: Thu, 15 Dec 2022 19:17:19 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6701"; mail-complaints-to="usenet@ciao.gmane.io" To: 60087@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 15 12:36:16 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 1p5mX9-0001XV-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Dec 2022 12:36:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5mV4-0004ot-NA; Thu, 15 Dec 2022 06:34:14 -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 1p5mV1-0004l3-Gq for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:34:03 -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 1p5mV0-00085G-Qs for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5mV0-0002KZ-EB for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:34:02 -0500 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16711039968940 (code B ref -1); Thu, 15 Dec 2022 11:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2022 11:33:16 +0000 Original-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 Original-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 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 1p5mU8-00036K-Bw for bug-gnu-emacs@gnu.org; Thu, 15 Dec 2022 06:33:09 -0500 Original-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= Original-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 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+Y X-OQ-MSGID: 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-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:251075 Archived-At: 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))