From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10948: 24.0.94; electric-pair-mode inserts unnecessary " Date: Wed, 02 Jun 2021 09:06:13 +0200 Message-ID: <87mts87nkq.fsf@gnus.org> References: <20120305091308.94B251FDD0@saturn.ch.ristopher.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38588"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 10948@debbugs.gnu.org To: Christopher Schmidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 09:07:14 2021 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 1loKy9-0009nH-V2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 09:07:13 +0200 Original-Received: from localhost ([::1]:49784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loKy8-0002mM-I5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 03:07:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loKy2-0002l0-88 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 03:07:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loKxy-0001B4-7L for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 03:07:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1loKxy-0004hF-2X for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2021 03:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jun 2021 07:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10948 X-GNU-PR-Package: emacs Original-Received: via spool by 10948-submit@debbugs.gnu.org id=B10948.162261759217997 (code B ref 10948); Wed, 02 Jun 2021 07:07:02 +0000 Original-Received: (at 10948) by debbugs.gnu.org; 2 Jun 2021 07:06:32 +0000 Original-Received: from localhost ([127.0.0.1]:38547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKxQ-0004g8-F0 for submit@debbugs.gnu.org; Wed, 02 Jun 2021 03:06:31 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:54470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1loKxL-0004fc-AM for 10948@debbugs.gnu.org; Wed, 02 Jun 2021 03:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=v7WSfO4SC5vb5L229z5ldHwSifO9KkXBs38Tel13S5s=; b=ROyJNN2yv2NmtzkzeZ4SZPTgiw uAgf0sJRt/rEqo449Cqot1TlGTTunQh1Ni7GSfGgQZ7WMPr0H0qAFFV2e1ipa/L+JAoWxICBpPpO9 Ul5cSYoCsLqtDCuiZN0YAftBCGI+YAxxxhczrLh9yyEBhw5QhRzRrvTqak1DlhJBjW+A=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loKxB-00030z-KP; Wed, 02 Jun 2021 09:06:17 +0200 X-Now-Playing: Ana Roxanne's _Ana Roxanne_: "I'm Every Sparkly Woman " In-Reply-To: <20120305091308.94B251FDD0@saturn.ch.ristopher.com> (Christopher Schmidt's message of "Mon, 05 Mar 2012 10:13:06 +0100") 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:207833 Archived-At: Christopher Schmidt writes: > I often encounter electric-pair-mode inserting unnecessary quotation > marks on GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu, GTK+ Version > 2.24.9) of 2012-03-01. > > Recipe: > > emacs -q > C-x b RET # we are in *scratch* now > M-x electric-pair-mode RET > "test C-d # at this point the line at point should read `"test > " > > the line at point now contains "test"". I think electric-pair-mode > should be smarter here, do a little backtracking, and just insert one > quote. (I'm going through old bug reports that unfortunately got little response at the time.) I'm unable to reproduce this problem in Emacs 25 or more recent versions of Emacs, but I'm not sure I totally understand the recipe: I end up with a line reading "test" which is what I expect. Are you still seeing this issue in recent Emacs versions? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no