From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23295: 24.5; in cc-mode, '(' replaces selection with '(' when electric-pair-mode and cua-mode are active Date: Sat, 14 Oct 2023 10:27:41 +0000 Message-ID: References: <874mb3t2c2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1485"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 23295@debbugs.gnu.org To: a.c.kalker@gmail.com, control@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 12:29:02 2023 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 1qrbtG-0000Dz-PF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 12:29:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrbsu-0004gi-AD; Sat, 14 Oct 2023 06:28:40 -0400 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 1qrbst-0004gZ-Go for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 06:28:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrbst-0000mZ-5p; Sat, 14 Oct 2023 06:28:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrbtG-00037M-Fp; Sat, 14 Oct 2023 06:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 14 Oct 2023 10:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23295 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: confirmed Original-Received: via spool by 23295-submit@debbugs.gnu.org id=B23295.169727930411922 (code B ref 23295); Sat, 14 Oct 2023 10:29:02 +0000 Original-Received: (at 23295) by debbugs.gnu.org; 14 Oct 2023 10:28:24 +0000 Original-Received: from localhost ([127.0.0.1]:47960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrbse-00036E-3c for submit@debbugs.gnu.org; Sat, 14 Oct 2023 06:28:24 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:33738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrbsY-00035f-EH for 23295@debbugs.gnu.org; Sat, 14 Oct 2023 06:28:20 -0400 Original-Received: (qmail 82820 invoked by uid 3782); 14 Oct 2023 12:27:47 +0200 Original-Received: from acm.muc.de (pd953a921.dip0.t-ipconnect.de [217.83.169.33]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 14 Oct 2023 12:27:47 +0200 Original-Received: (qmail 6416 invoked by uid 1000); 14 Oct 2023 10:27:41 -0000 Content-Disposition: inline In-Reply-To: <874mb3t2c2.fsf@gmail.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:272401 Archived-At: tags 23295 + wontfix close 23295 quit Hello. Thanks for taking the trouble to submit this bug report to Emacs, and apologies that it has taken so long for us to respond. The bug you reported seems to have been fixed at some time in the last few years. I cannot reproduce it anymore. So I'm closing it as "won't fix", since no more action is required. -- Alan Mackenzie (Nuremberg, Germany). On Fri, Apr 15, 2016 at 15:43:09 +0200, a.c.kalker@gmail.com wrote: > When editing a C source file while cua-mode and electric-pair-mode are > both active, typing '(' replaces selected text with '(' instead of > wrapping it in '(' and ')'. > Steps to reproduce (in `emacs -Q`): > - C-x C-f foo.c RET > - M-x cua-mode RET > - M-x electric-pair-mode RET > - Type: #define FOO(x) x + 42 > - Select "x + 42" > - Type: ( > Expected result: > - Text should read: #define FOO(x) (x + 42) > Actual result: > - Text reads: #define FOO(x) ( > Remarks: > - Turning off cua-mode, marking the selection with C-SPC and movement > keys, then typing '(' works as expected. > - The problem appears to only occur in cc-mode. > In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) > of 2015-09-10 on foutrelis > Windowing system distributor `The X.Org Foundation', version 11.0.11803000 > Configured using: > `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib > --localstatedir=/var --with-x-toolkit=gtk3 --with-xft > 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong > --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 > LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' > Important settings: > value of $LC_MESSAGES: en_US.utf8 > value of $LANG: en_US.utf8 > locale-coding-system: utf-8-unix > Major mode: Debbugs > Minor modes in effect: > global-speechd-speak-map-mode: t > speechd-speak-map-mode: t > erc-list-mode: t > erc-menu-mode: t > erc-autojoin-mode: t > erc-ring-mode: t > erc-networks-mode: t > erc-pcomplete-mode: t > erc-track-mode: t > erc-track-minor-mode: t > erc-match-mode: t > erc-button-mode: t > erc-fill-mode: t > erc-stamp-mode: t > erc-netsplit-mode: t > erc-irccontrols-mode: t > erc-noncommands-mode: t > erc-move-to-prompt-mode: t > erc-readonly-mode: t > yas-global-mode: t > yas-minor-mode: t > delete-selection-mode: t > winner-mode: t > show-paren-mode: t > msb-mode: t > icomplete-mode: t > global-whitespace-mode: t > electric-pair-mode: t > cua-mode: t > multi-web-global-mode: t > global-flycheck-mode: t > shell-dirtrack-mode: t > global-company-mode: t > company-mode: t > override-global-mode: t > tooltip-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > buffer-read-only: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > Recent messages: > Mark set > Mark saved where search started > Mark set [2 times] > Quit > Mark set > line-move-visual: Beginning of buffer [2 times] > Searched 1 buffer; 7 matches for `electric' > You can run the command `occur' with M-s o > Searched 1 buffer; 7 matches for `electric' > Auto-saving...done > Load-path shadows: > /usr/share/emacs/site-lisp/SuperCollider/tree-widget hides /usr/share/emacs/24.5/lisp/tree-widget > /home/miki/.emacs.d/elpa/soap-client-3.1.1/soap-client hides /usr/share/emacs/24.5/lisp/net/soap-client > /home/miki/.emacs.d/elpa/soap-client-3.1.1/soap-inspect hides /usr/share/emacs/24.5/lisp/net/soap-inspect > Features: > (shadow sort mail-extr emacsbug sendmail misearch multi-isearch > mm-archive message idna ...) > Memory information: > ((conses 16 1059803 115597) > (symbols 48 52062 1) > (miscs 40 587 1906) > (strings 32 156314 39234) > (string-bytes 1 4107708) > (vectors 16 76553) > (vector-slots 8 1364662 26333) > (floats 8 4166 1393) > (intervals 56 45695 1436) > (buffers 960 31) > ...)