GNU bug report logs - #23295
24.5; in cc-mode, '(' replaces selection with '(' when electric-pair-mode and cua-mode are active

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: a.c.kalker@HIDDEN; Keywords: confirmed; dated Fri, 15 Apr 2016 13:44:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 25.0.95. Request was from npostavs@HIDDEN to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Apr 2016 13:43:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 15 09:43:34 2016
Received: from localhost ([127.0.0.1]:36403 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ar421-0001SU-RZ
	for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:43:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49584)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar420-0001S8-Ic
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:43:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar41p-0005jB-Gr
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:43:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36770)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar41p-0005j7-E3
 for submit <at> debbugs.gnu.org; Fri, 15 Apr 2016 09:43:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40526)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar41j-0007SQ-H2
 for bug-gnu-emacs@HIDDEN; Fri, 15 Apr 2016 09:43:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar41g-0005cI-5P
 for bug-gnu-emacs@HIDDEN; Fri, 15 Apr 2016 09:43:15 -0400
Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:35432)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <a.c.kalker@HIDDEN>) id 1ar41f-0005bf-Rw
 for bug-gnu-emacs@HIDDEN; Fri, 15 Apr 2016 09:43:12 -0400
Received: by mail-wm0-x229.google.com with SMTP id a140so32089082wma.0
 for <bug-gnu-emacs@HIDDEN>; Fri, 15 Apr 2016 06:43:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version;
 bh=o8cNoOx6VIW8pc3/GJaOC9+xKmgAZQOrOsrqOEC5Z5s=;
 b=JBcHIVrRkKvXP2eMlNnIiVkP6gt9Mp6t00BVHUqP+89SMkNxwTgyQl3yljy62lr60U
 blk7D6xpc5Kw7Jf+CuBPez7bWGy/e/4WSyi1f/kBhDolaxby5p0ubkiTK+n727yYPAKk
 4EMGe5IQlwulsD61Gb9uIWimVKP+FVWWUZ6M2jSU65tllQZFftPlWs89HubWoqBVczZa
 wUR3Orak7jGH1TtMllQizd3965qTp9gTaTU2GRbDo3jr3iV95oDHOYFgKJrVVsiVL8pv
 oTTCTZq/eH8MUE5rznmhwX8ay5iVrWrOzV88guwhnLRsfhaNvNcNjweHLMVsGbi+dC6b
 7m9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=o8cNoOx6VIW8pc3/GJaOC9+xKmgAZQOrOsrqOEC5Z5s=;
 b=Nmo9161fcC+xmRWTyuoyrFLvme8lLubgc1ki5z+ovhabYHy1U3dg5FpwDaWeIoeXO7
 iJkGcTzPW9Uy0IaRA0x+hmlfWe5/N1PcH31r+PfQKqkLkIdf9/SRCTr11q3IwH3TSJwN
 BTCREqZP38Tauy1CsoKJNxqxE8DUNfo9AQ3s4MiNrQqfJiOtk85m3lVbuXFX6QI5CB9l
 CjniMfh00zgQBYj9UXxzvW/h2wlBTQuqAQ+S2quriw+hoxeDKderUhYw3lDHwP4NK9Tt
 4H+mlN89gjN4hSN2dPgpMT6W4F8ilxt+wGmThWxP7ikE/1QhkhZov3OwzRLx1tvZNwSP
 Qjyg==
X-Gm-Message-State: AOPr4FXXtTVT7nG1uDdcDi273LpwpmobBHXDMggItM3AwLZzWCtLbOWsNtciybwnvOfP7A==
X-Received: by 10.28.17.144 with SMTP id 138mr4745851wmr.5.1460727790990;
 Fri, 15 Apr 2016 06:43:10 -0700 (PDT)
Received: from miki-desktop (524B772B.cm-4-4b.dynamic.ziggo.nl. [82.75.119.43])
 by smtp.gmail.com with ESMTPSA id cf6sm49199475wjc.12.2016.04.15.06.43.10
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 15 Apr 2016 06:43:10 -0700 (PDT)
From: a.c.kalker@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 24.5;
 in cc-mode, '(' replaces selection with '(' when electric-pair-mode
 and cua-mode are active
Date: Fri, 15 Apr 2016 15:43:09 +0200
Message-ID: <874mb3t2c2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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)
 ...)




Acknowledgement sent to a.c.kalker@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#23295; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 1 Jul 2016 03:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.