From unknown Tue Jun 17 20:11:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16917 <16917@debbugs.gnu.org> To: bug#16917 <16917@debbugs.gnu.org> Subject: Status: 24.2; Electric pair mode in comments Reply-To: bug#16917 <16917@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:11:12 +0000 retitle 16917 24.2; Electric pair mode in comments reassign 16917 emacs submitter 16917 Philip Kahn severity 16917 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 01 18:29:44 2014 Received: (at submit) by debbugs.gnu.org; 1 Mar 2014 23:29:44 +0000 Received: from localhost ([127.0.0.1]:47104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJtLj-0002Cs-Fc for submit@debbugs.gnu.org; Sat, 01 Mar 2014 18:29:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34708) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WJtIv-00027f-Jw for submit@debbugs.gnu.org; Sat, 01 Mar 2014 18:26:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJtIt-0008RE-Kf for submit@debbugs.gnu.org; Sat, 01 Mar 2014 18:26:49 -0500 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, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJtIt-0008Qy-G4 for submit@debbugs.gnu.org; Sat, 01 Mar 2014 18:26:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJtIr-0003Re-KK for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 18:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJtIp-0008MS-2E for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 18:26:45 -0500 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:63529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJtIo-0008Lp-SH for bug-gnu-emacs@gnu.org; Sat, 01 Mar 2014 18:26:42 -0500 Received: by mail-qg0-f49.google.com with SMTP id j107so6940856qga.8 for ; Sat, 01 Mar 2014 15:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zJ4/3buAG6awn1eZkrD3WlPg6AshUCeI7uWTTncV43Y=; b=Yj/CbVMPHaJ5Z3agLNBRiNx6ddBExu0AliT+jM9RYQLpXvnHeiq++4RCKmfc6aM7OI 14rnNMnF4lQZsx5L47YY4Q6B4lT+9wp6rK+JELMdMfJEYWFkI4l2NkJRennVG3hlEx+p MGQIevguFhTQIiZOrqStNVV9Q8l/rY3JKkqZ+K5QBORA4QAqA3Riva8rJJ9EBXj/3Imk cl9iPAJwk3a578F2z9bEZLUeuBTC77VW+GyD+9hj+7vIAxfrk3jWfgmDBfkHtsP09Pjg ACR40jbpuMRQ9Z+Y980tS4HCGEiAH1BqlMPBCkEhy/pzTWgcSOk4IhTngk3HDCF8XBFy clMA== X-Received: by 10.224.165.133 with SMTP id i5mr13649245qay.75.1393716402133; Sat, 01 Mar 2014 15:26:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.96.55.9 with HTTP; Sat, 1 Mar 2014 15:26:22 -0800 (PST) From: Philip Kahn Date: Sat, 1 Mar 2014 15:26:22 -0800 Message-ID: Subject: 24.2; Electric pair mode in comments To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e0149c6c01120b804f393e3b5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 01 Mar 2014 18:29:41 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) --089e0149c6c01120b804f393e3b5 Content-Type: text/plain; charset=UTF-8 electric-pair-mode should not auto-pair single quotes (apostrophes) in strings or comments. In those scenarios, it's not possible to tell if the single quote is going to be part of a contraction or not, so the functionality should revert. In GNU Emacs 24.2.1 (i386-mingw-nt6.2.9200) of 2012-08-28 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.2.9200 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: PHP Minor modes in effect: global-auto-revert-mode: t show-paren-mode: t my-keys-minor-mode: t electric-pair-mode: t electric-indent-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-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 column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x h M-w C-x C-s C-c C-k C-s c k - k C C-s c c C c C-s C-s C-s C-s C-s c o p y y C-s c o p y t - t h i s C-s C-s c o p y - l i n C-s C-s C-s C-s c o p y SPC t h i s SPC l i n - t h i s C-s C-a C-k C-x C-s C-s c - n C-s C-x b * s C-x h C-x h C-w / * * * / SPC T h i s SPC i s SPC a SPC c o m m e n t . * SPC H e r e SPC i s SPC a SPC s i n e l p o s i s e s i v e SPC w i t h SPC e l e c t i c SPC p a r i i r SPC m o d e SPC t u r n e d SPC o n : * SPC B o b ' s SPC s t u f f M-x r e p o r t - e m a c s - b u g Recent messages: Auto-saving... Mark saved where search started [4 times] byte-code: End of buffer [3 times] Mark saved where search started [2 times] Saving file c:/Users/Philip/AppData/Roaming/.emacs... Wrote c:/Users/Philip/AppData/Roaming/.emacs Mark saved where search started Mark set [2 times] Indenting region... done Mark set [2 times] Load-path shadows: ~/elisp/ispell hides c:/Program Files (x86)/emacs-24.2/lisp/textmodes/ispell c:/Program Files (x86)/emacs-24.2/site-lisp/ess/.dir-locals hides c:/Program Files (x86)/emacs-24.2/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug sendmail rx php-mode speedbar sb-image ezimage dframe etags flymake compile comint ansi-color cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs add-log regexp-opt thingatpt find-func autorevert misearch multi-isearch calc-menu calc calc-loaddefs calc-macs vc-git newcomment git-auto-commit-mode-autoloads git-commit-mode-autoloads magithub-autoloads finder-inf magit-autoloads info paren easy-mmode warnings advice help-fns advice-preload electric edmacro kmacro package tabulated-list ispell weblogger derived ring message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev mail-utils gmm-utils mailheader xml-rpc cl timezone url-http tls url url-proxy url-privacy url-expand url-methods url-history mailcap url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util password-cache url-gw url-vars mm-util mail-prsvr xml dvi-view time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) --089e0149c6c01120b804f393e3b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

electric-pair-mode should not auto-pai= r single quotes (apostrophes) in strings or comments.

<= div>In those scenarios, it's not possible to tell if the single quote i= s going to be part of a contraction or not, so the functionality should rev= ert.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0


In GNU Emacs 24.2.1 (i386-mingw-nt6.2.9200)=
=C2=A0of 2012-08-28 on MARVIN
Windowing system distrib= utor `Microsoft Corp.', version 6.2.9200
Configured using:
=C2=A0`configure --with-gcc (4.6) --cflags=
=C2=A0-ID:/devel/emacs/libs/libXpm-3.5.8/include
=C2= =A0-ID:/devel/emacs/libs/libXpm-3.5.8/src
=C2=A0-ID:/devel/emacs/= libs/libpng-dev_1.4.3-1/include
=C2=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
=C2=A0-= ID:/devel/emacs/libs/giflib-4.1.4-1/include
=C2=A0-ID:/devel/emac= s/libs/jpeg-6b-4/include
=C2=A0-ID:/devel/emacs/libs/tiff-3.8.2-1= /include
=C2=A0-ID:/devel/emacs/libs/gnutls-3.0.9/include'

<= div>Important settings:
=C2=A0 value of $LC_ALL: nil
= =C2=A0 value of $LC_COLLATE: nil
=C2=A0 value of $LC_CTYPE: nil
=C2=A0 value of $LC_MESSAGES: nil
=C2=A0 value of $LC_MONETARY: nil
=C2=A0 value of $LC_NUMERI= C: nil
=C2=A0 value of $LC_TIME: nil
=C2=A0 value of $L= ANG: ENU
=C2=A0 value of $XMODIFIERS: nil
=C2=A0 locale= -coding-system: cp1252
=C2=A0 default enable-multibyte-characters: t

Major mode: PHP

Minor modes in effect:
= =C2=A0 global-auto-revert-mode: t
=C2=A0 show-paren-mode: t
=
=C2=A0 my-keys-minor-mode: t
=C2=A0 electric-pair-mode: t
=C2=A0 electric-indent-mode: t<= /div>
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
=
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=
=C2=A0 auto-compression-mode: t
=C2=A0 column-number-m= ode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode: t

Recent input:
<down-mouse-5> <mouse-5&g= t; <down-mouse-4> <mouse-4> <double-down-mouse-4>=C2=A0
<double-mouse-4> <down-mouse-5> <drag-mouse-5> &= lt;down-mouse-5>=C2=A0
<mouse-5> <double-down-mouse-5> <double-mouse-5> <= ;down-mouse-5>=C2=A0
<mouse-5> <lwindow> C-x h M-w= <down-mouse-4> <mouse-4>=C2=A0
<down-mouse-4> = <mouse-4> <down-mouse-4> <mouse-4> C-x=C2=A0
C-s C-c C-k <down-mouse-1> <mouse-1> <down-mouse-1>= =C2=A0
<mouse-1> C-s c k <backspace> - k <down>= C <backspace>=C2=A0
C-s c c <backspace> <backspac= e> C c C-s C-s C-s <backspace>=C2=A0
<backspace> <backspace> <backspace> <backspace>= ; C-s=C2=A0
<down> <wheel-up> <double-wheel-up>= C-s c o p y y <down-mouse-1>=C2=A0
<mouse-1> <whe= el-down> <double-wheel-down> <triple-wheel-down>=C2=A0
<wheel-up> <double-wheel-up> <triple-wheel-up> <t= riple-wheel-up>=C2=A0
<triple-wheel-up> C-s c o p y t - = t h i s C-s <down-mouse-1>=C2=A0
<mouse-1> <wheel-= down> <double-wheel-down> <triple-wheel-down>=C2=A0
<triple-wheel-down> <triple-wheel-down> <triple-wheel-d= own>=C2=A0
<wheel-up> <double-wheel-up> <triple= -wheel-up> <triple-wheel-up>=C2=A0
<triple-wheel-up&g= t; <triple-wheel-up> C-s c o p y - l=C2=A0
i n C-s C-s C-s <down-mouse-1> <mouse-1> C-s c o p=C2=A0
y SPC t h i s SPC l i n <backspace> <backspace> <ba= ckspace>=C2=A0
<backspace> <backspace> <backspa= ce> <backspace> <backspace>=C2=A0
<backspace> - t h i s C-s <up> <up> C-a C-k <back= space>=C2=A0
C-x C-s C-s c - n C-s C-x b * s <tab> <r= eturn> C-x=C2=A0
h <return> C-x h C-w / * <return>= * <return> * / <up>=C2=A0
SPC T h i s SPC i s SPC a SPC c o m m e n t . <return>=C2=A0
* SPC H e r e SPC i s SPC a SPC s i n e l <backspace>=C2=A0
<backspace> <backspace> <backspace> <backspace= > p o=C2=A0
s i <backspace> s e s i v e SPC w i t h SPC e l e c=C2=A0
<= div>t i c SPC p a r i <backspace> <backspace> i r SPC m=C2=A0
o d e SPC t u r n e d SPC o n : <return> * SPC B o=C2=A0
b ' s SPC s t u f f M-x r e p o r t - e m a c s - b=C2=A0
u g <return>

Recent messages:
Auto-saving...
Mark saved where search started [4 times]
byte-code: End of buffer [3 times]
Mark saved where search sta= rted [2 times]
Saving file c:/Users/Philip/AppData/Roaming/.emacs...
Wrote = c:/Users/Philip/AppData/Roaming/.emacs
Mark saved where search st= arted
Mark set [2 times]
Indenting region... done
Mark set [2 times]

Load-path shadows:
~/elisp/ispell hides c:/Program Files (x86)/emacs-24.2/lisp/textmodes/is= pell
c:/Program Files (x86)/emacs-24.2/site-lisp/ess/.dir-locals = hides c:/Program Files (x86)/emacs-24.2/lisp/gnus/.dir-locals

Features:
(shadow sort mail-extr emacsbug sen= dmail rx php-mode speedbar sb-image
ezimage dframe etags flymake = compile comint ansi-color cc-langs cc-mode
cc-fonts cc-guess cc-m= enus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs add-log regexp-opt thingatpt find-func autorevert misearch
multi-isearch calc-menu calc calc-loaddefs calc-macs vc-git newcomme= nt
git-auto-commit-mode-autoloads git-commit-mode-autoloads
magithub-autoloads finder-inf magit-autoloads info paren easy-mmode
warnings advice help-fns advice-preload electric edmacro kmacro pac= kage
tabulated-list ispell weblogger derived ring message format-= spec rfc822
mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev mail-uti= ls
gmm-utils mailheader xml-rpc cl timezone url-http tls url url-= proxy
url-privacy url-expand url-methods url-history mailcap url-= auth
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-cookie url-util
url-parse auth-source eieio byte-opt bytecomp byte-compile cconv
macroexp assoc gnus-util password-cache url-gw url-vars mm-util
mail-prsvr xml dvi-view time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
<= div>tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnam= ese
tibetan thai tai-viet lao korean japanese hebrew greek romani= an slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env<= /div>
code-pages mule custom widget hashtable-print-readable backquote
=
make-network-process multi-tty emacs)

--089e0149c6c01120b804f393e3b5-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 15:53:39 2014 Received: (at 16917) by debbugs.gnu.org; 7 Mar 2014 20:53:39 +0000 Received: from localhost ([127.0.0.1]:55202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM1ly-0002km-EI for submit@debbugs.gnu.org; Fri, 07 Mar 2014 15:53:38 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:17993) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM1lu-0002ka-CE for 16917@debbugs.gnu.org; Fri, 07 Mar 2014 15:53:35 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCppy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFMCppy/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="50828233" Received: from 76-10-154-114.dsl.teksavvy.com (HELO pastel.home) ([76.10.154.114]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 07 Mar 2014 15:53:33 -0500 Received: by pastel.home (Postfix, from userid 20848) id 2457060349; Fri, 7 Mar 2014 15:53:33 -0500 (EST) From: Stefan Monnier To: Philip Kahn Subject: Re: bug#16917: 24.2; Electric pair mode in comments Message-ID: References: Date: Fri, 07 Mar 2014 15:53:33 -0500 In-Reply-To: (Philip Kahn's message of "Sat, 1 Mar 2014 15:26:22 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16917 Cc: 16917@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.3 (/) > electric-pair-mode should not auto-pair single quotes (apostrophes) in > strings or comments. electric-pair-mode has seen many important changes in that area for 24.4, so I think this is fixed already. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 14:47:49 2014 Received: (at control) by debbugs.gnu.org; 10 Mar 2014 18:47:49 +0000 Received: from localhost ([127.0.0.1]:60562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WN5Er-0006lQ-6W for submit@debbugs.gnu.org; Mon, 10 Mar 2014 14:47:49 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37252) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WN5Ep-0006lI-Ra for control@debbugs.gnu.org; Mon, 10 Mar 2014 14:47:48 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WN5Ep-0002PS-KT for control@debbugs.gnu.org; Mon, 10 Mar 2014 14:47:47 -0400 Date: Mon, 10 Mar 2014 14:47:47 -0400 Message-Id: Subject: control message for bug 16917 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -5.0 (-----) close 16917 24.4 From unknown Tue Jun 17 20:11:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Apr 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator