From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36423: 27.0.50; electric-pair-mode not working properly depending of file content. Date: Mon, 8 Jul 2019 09:48:01 +0000 Message-ID: <20190708094801.GC4529@ACM> References: <20190628190131.w7ajdhaqqnmebewc@Ergus> <20190702133641.GA30699@ACM> <20190703193200.awabu3ell7vsrcpj@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="259667"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 36423-done@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 08 11:51:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkQJM-0015Ka-L4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jul 2019 11:51:52 +0200 Original-Received: from localhost ([::1]:39970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkQHB-0003hl-98 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jul 2019 05:49:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52498) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkQGd-0003N6-73 for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 05:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkQGc-0006xm-8m for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 05:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkQGc-0006xX-42 for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 05:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkQGc-0004WC-0Y for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2019 05:49:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jul 2019 09:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36423 X-GNU-PR-Package: emacs Mail-Followup-To: 36423@debbugs.gnu.org, acm@muc.de, spacibba@aol.com Original-Received: via spool by 36423-done@debbugs.gnu.org id=D36423.156257929317301 (code D ref 36423); Mon, 08 Jul 2019 09:49:01 +0000 Original-Received: (at 36423-done) by debbugs.gnu.org; 8 Jul 2019 09:48:13 +0000 Original-Received: from localhost ([127.0.0.1]:57759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkQFp-0004Uz-0v for submit@debbugs.gnu.org; Mon, 08 Jul 2019 05:48:13 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:18834 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hkQFn-0004Ur-KR for 36423-done@debbugs.gnu.org; Mon, 08 Jul 2019 05:48:12 -0400 Original-Received: (qmail 26005 invoked by uid 3782); 8 Jul 2019 09:48:02 -0000 Original-Received: from acm.muc.de (p4FE15FEC.dip0.t-ipconnect.de [79.225.95.236]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 08 Jul 2019 11:48:01 +0200 Original-Received: (qmail 25297 invoked by uid 1000); 8 Jul 2019 09:48:01 -0000 Content-Disposition: inline In-Reply-To: <20190703193200.awabu3ell7vsrcpj@Ergus> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162319 Archived-At: Hello, Ergus. On Wed, Jul 03, 2019 at 21:32:00 +0200, Ergus wrote: > Hi Alan: > Sorry for the bother again. After the fix you did, the "" issue is > better, but now there are new issues with the {} when I use pragmas for > example. OK, thanks! I've corrected a further problem with " in electric-pair-mode, and I'm taking the liberty of closing your bug. ;-) > I attached you a picture (because this is the easier way to explain it) This is actually a different bug. If you haven't done so already, could you please raise this as a bug in its own right. Thanks. Just as a matter of interest, please enclose a copy of the C++ file (or even better, just the relevant part of it) so as to save me the bother of having to type it in. Thanks! > As you can see it does not recognize the pairs correctly in one > case. And in the other it does not recognize the () at all. (Maybe the > second is not exactly the same issue) > The main problem is that because of this the automatic indentation is > affected. > An interesting thing is that in the line 136 out(vout[0; size]) it works > correctly. Maybe it has to do with the \ in the pragmas? > Thanks for the previous patch and in advance for the next ;) > Ergus -- Alan Mackenzie (Nuremberg, Germany).