From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings. Date: Tue, 22 May 2018 17:40:54 +0000 Message-ID: <20180522174054.GA4504@ACM> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1527010898 27766 195.159.176.226 (22 May 2018 17:41:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 22 May 2018 17:41:38 +0000 (UTC) User-Agent: Mutt/1.9.4 (2018-02-28) Cc: Emacs developers To: Tino Calancha , =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 19:41:33 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLBHw-00076o-Vh for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 19:41:33 +0200 Original-Received: from localhost ([::1]:57074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLBK3-0006e9-W5 for ged-emacs-devel@m.gmane.org; Tue, 22 May 2018 13:43:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLBJ1-0006d7-5G for emacs-devel@gnu.org; Tue, 22 May 2018 13:42:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLBIy-00086n-17 for emacs-devel@gnu.org; Tue, 22 May 2018 13:42:39 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:23750 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1fLBIx-00086H-Kb for emacs-devel@gnu.org; Tue, 22 May 2018 13:42:35 -0400 Original-Received: (qmail 18197 invoked by uid 3782); 22 May 2018 17:42:31 -0000 Original-Received: from acm.muc.de (p5B147236.dip0.t-ipconnect.de [91.20.114.54]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 22 May 2018 19:42:30 +0200 Original-Received: (qmail 4520 invoked by uid 1000); 22 May 2018 17:40:54 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225565 Archived-At: Hello, Tino and Joćo. On Tue, May 22, 2018 at 16:42:46 +0900, Tino Calancha wrote: > Hi Alan, > Since this commit one test > (electric-pair-autowrapping-5-at-point-2-in-c++-mode-in-strings) > in electric-tests.el is failing with error: > (scan-error "Unbalanced parentheses" 6 1) Sorry about that. > This is the bactrace: > scan-sexps(7 -1) > forward-sexp(-1) > backward-sexp() > c-before-change-check-unbalanced-strings(6 6) > #f(compiled-function (fn) #)(c-before-change-che > mapc(#f(compiled-function (fn) #) (c-extend-regi > c-before-change(6 6) > self-insert-command(1) > electric-pair--insert(34) > electric-pair-post-self-insert-function() > self-insert-command(1) > funcall-interactively(self-insert-command 1) > call-interactively(self-insert-command) > #f(compiled-function () #)() > funcall(#f(compiled-function () #)) > (let nil (funcall '#f(compiled-function () #))) > eval((let nil (funcall '#f(compiled-function () # > #f(compiled-function () #)() > call-with-saved-electric-modes(#f(compiled-function () # electric-pair-test-for("\"foo\"" 2 34 "\"\"foo\"\"" 3 c++-mode nil # > #f(compiled-function () #)() > ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test > ert-run-test(#s(ert-test :name electric-pair-autowrapping-5-at-point > ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi > ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co > ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))) > ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un > eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) ( > command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/electric-tests" "--e > command-line() > normal-top-level() Joćo, the file electric-tests.el is anything but straightforward to read. The test referred to above is generated by a nest of two or three macros, somehow, and it is not obvious what buffer operations were generated by these macros, and how they triggered a newly introduced bug in C++ Mode. The comments in the file are too sparse to help. How do I extract these essential details from "electric-pair-autowrapping-5-at-point-2-in-c++-mode-in-strings"? Thanks! -- Alan Mackenzie (Nuremberg, Germany).