emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, et


From: Alan Mackenzie
Subject: Re: [Emacs-diffs] master bb591f139f: Enhance CC Mode's fontification, etc., of unterminated strings.
Date: Tue, 22 May 2018 17:40:54 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

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) #<bytecode 0x1171d85>)(c-before-change-che
>    mapc(#f(compiled-function (fn) #<bytecode 0x1171d85>) (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 () #<bytecode 0x484725>)()
>    funcall(#f(compiled-function () #<bytecode 0x484725>))
>    (let nil (funcall '#f(compiled-function () #<bytecode 0x484725>)))
>    eval((let nil (funcall '#f(compiled-function () #<bytecode 0x484725>
>    #f(compiled-function () #<bytecode 0x48475d>)()
>    call-with-saved-electric-modes(#f(compiled-function () #<bytecode 0x
>    electric-pair-test-for("\"foo\"" 2 34 "\"\"foo\"\"" 3 c++-mode nil #
>    #f(compiled-function () #<bytecode 0x514bbd>)()
>    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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]