From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#42319: 28.0.50; c-mode issue with electric-pair-mode Date: Sat, 11 Jul 2020 10:30:13 +0200 Message-ID: <20200711083013.t2p6cocfgctcgsev@ergus> References: <20200711083013.t2p6cocfgctcgsev.ref@ergus> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24989"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: 42319@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 11 10:31:10 2020 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 1juAuc-0006PD-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jul 2020 10:31:10 +0200 Original-Received: from localhost ([::1]:57932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juAub-0005XO-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Jul 2020 04:31:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juAuU-0005XG-B9 for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2020 04:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juAuU-00061Q-1q for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2020 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1juAuT-0007JS-UO for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2020 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jul 2020 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42319 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.159445622328044 (code B ref -1); Sat, 11 Jul 2020 08:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2020 08:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:43819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juAtr-0007IG-4K for submit@debbugs.gnu.org; Sat, 11 Jul 2020 04:30:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juAto-0007I8-TA for submit@debbugs.gnu.org; Sat, 11 Jul 2020 04:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juAto-0005OM-Dr for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2020 04:30:20 -0400 Original-Received: from sonic308-1.consmr.mail.bf2.yahoo.com ([74.6.130.40]:44675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1juAtm-0005pm-7X for bug-gnu-emacs@gnu.org; Sat, 11 Jul 2020 04:30:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1594456215; bh=LAl3bPTXpbe3qz/Lm4pvQzr9pTgR6wxqLtMoFML7ZVQ=; h=Date:From:To:Subject:References:From:Subject; b=RoOWfg7q/HmSPrb5nRhcl5niQk5Q1NKrqYwltqHGkczSbM9MtKPL6SA60nsoG71eb4fYAi+0fGksYuQa4tHYSc2zDVI9S25sagLmfpqXQ3PPQcTddG1oCtN741alTDlsi9kQYiiQsDKG1vOWNVeNr3+lKeSQYSMWonFUS8s7/MgRgJY2MA8H5Cf9CK3AVClMM6H51YDp8BcxljzvUkq4NHHA0lEmg+1l89Svd/998zMTJwZxJC2YOnijXI3hWaFFgSu2eJTdqOdORXZCQ1bwJTh0U9TpEZxJSoMUoO3T0C2/y49PEbfyNUk8E/TCdvF5qeRmw5Yx54bs3d/493Gdhg== X-YMail-OSG: 781AAPwVM1kA3726xj9FlW4Dl_s1h9JV9nin_bWk4USdV8XaH__NlxVr_kyeX6C ibeYTMM.R0vY5RZebZb8oCdZJhm4IB1EHeEyrwlbA6q9K1bhZbfOoOeUZTE4ImK41p2ihpYTYqGV soojaQBmWVD3FrVOzmcbJQ7JRTnWcTcAasn9xEG8axgxKdfbaBk6dJ30tPRR7Fa25C4_lyutgA1h LezYYhWNCW8zuZPCOUigCb8Z4gzrGf3iMr5pGTMsqIDO0XMlCaS2UdjvYFY44.BuyND.EfbXHLVl .5sOtWvMdHOMrD3KOSMmBHoEnvSYEnOhAOF.koD4CEDPe0oCnxSKy.8qhsOgugmWcGKBlg1EudeX 9k_q96hVd3giOXBJr8eN62QjEHEG7SwETAqCG_nIxyuCeSEaL_BMUTGpTfskiW4WctJssRWNW3jj Az3GHn4O6wztqCbzGq0mQdYUOmLwzUYzcjjgZtfV0Ny4M7VfXxCWC430TvzoLGJRr1hUpE5lk1TE cbCSoTJgtAtm0b7P8PAwlIn3TIJjcJY8CvuuKIJAs2ExbREttdkAU4GBq.eL.rEEidJyrXxyxuVP 3WFdAQUM06NabAaeuOpC4DpzxBMPZxLrs5l_B5UFoeWibHWC2TdBS_YF2RAssTtNQ9WaSwpMHElt GKwWIiI0uMzpqymihECPOfexoGk5wUwgffOwKt4vmRiVKuKn5CDEfPxy.MghIszzE.Loyjn8HG73 HiJGv6I4l25D14BAnuB9wRhjfLb34ImqrIdRYdOLZJqZOzjCk3lfBVHYT9nMcJqOcrVQLoolYFE5 U0JLnLi.RxJQnrphLzHOjnP3tsvopZ1wMvNbk4byub Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Sat, 11 Jul 2020 08:30:15 +0000 Original-Received: by smtp421.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 71492e49f27a1b14ae82019856961e86; Sat, 11 Jul 2020 08:30:14 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.16271 hermes_aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.130.40; envelope-from=spacibba@aol.com; helo=sonic308-1.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/11 04:30:15 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182907 Archived-At: --text follows this line-- In c-mode there is an issue of adding some extra spaces in electric-pair-mode after class definitions. For example emacs -Q main.cxx M-x electric-pair-mode M-x c-toggle-auto-newline and then insert: class A { you should get: (# means the cursor) class A { # } now insert } and then you get class A { } # instead of: class A { } # The problem is actually worst if defun-close-semi is in c-cleanup-list because it doesn't work. I need to remove the extra spaces first to make it work. In GNU Emacs 28.0.50 (build 12, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2020-07-10 built on ergus Repository revision: 7caf570662e41dd7cb90efaf8a335918cf1ac0da Repository branch: master System Description: Debian GNU/Linux 10 (buster) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. main.cxx has auto save data; consider M-x recover-this-file Electric-Pair mode enabled You can run the command ‘c-toggle-auto-newline’ with C-c C-a Undo [2 times] Mark set Making completion list... Configured using: 'configure --prefix=/home/ergus/.local/ --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS PDUMPER Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//la Minor modes in effect: electric-pair-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq 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 cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib term/tmux term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 78618 7004) (symbols 48 9526 1) (strings 32 23498 1860) (string-bytes 1 844562) (vectors 16 10057) (vector-slots 8 107261 7421) (floats 8 26 435) (intervals 56 287 3) (buffers 992 12))