all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: master c4d34d2: CC Mode: Enhance C++ Mode raw strings to multi-line strings for any language
Date: Fri, 13 Aug 2021 19:52:43 +0000	[thread overview]
Message-ID: <YRbNixsFuHljGOpv@ACM> (raw)
In-Reply-To: <87r1exa0jf.fsf@gnus.org>

Hello, Lars.

On Fri, Aug 13, 2021 at 16:20:52 +0200, Lars Ingebrigtsen wrote:
> acm@muc.de (Alan Mackenzie) writes:

> > +(defun c-ml-string-opener-around-point ()
> > +  ;; If point is inside an ml string opener, return a dotted list of the start
> > +  ;; and end of that opener, and the position of its double-quote.  That list

> I'm not quite sure that it's this patch, but the some electric tests
> started failing today with the following backtrace:

Yes, sorry, it's that patch indeed.  It's a rather serious bug which
might have left C Mode unusable.  I'll fix it right now.

> Test electric-pair-electric-quote-replace-double-escaped-close-at-point-12-in-c-mode-in-strings backtrace:
>   c-ml-string-opener-at-or-around-point(1)
>   c-before-change-check-unbalanced-strings(12 12)
>   #f(compiled-function (fn) #<bytecode 0x1aaf1ff2c636a263>)(c-before-c
>   mapc(#f(compiled-function (fn) #<bytecode 0x1aaf1ff2c636a263>) (c-ex
>   c-before-change(12 12)
>   self-insert-command(1 34)
>   funcall-interactively(self-insert-command 1 34)
>   call-interactively(self-insert-command)
>   (closure ((vals) (syms) (temp-buffer . #<killed buffer>) (doc-string
>   funcall((closure ((vals) (syms) (temp-buffer . #<killed buffer>) (do
>   (let ((electric-quote-replace-double 't) (electric-quote-comment 't)
>   eval((let ((electric-quote-replace-double 't) (electric-quote-commen
>   (let* ((syms (mapcar #'car bindings)) (vals (mapcar #'cdr bindings))
>   (progn (let* ((syms (mapcar #'car bindings)) (vals (mapcar #'cdr bin
>   (let ((last-command-event char) (transient-mark-mode 'lambda)) (goto
>   (closure ((temp-buffer . #<killed buffer>) (doc-string . "Electricit
>   funcall((closure ((temp-buffer . #<killed buffer>) (doc-string . "El
>   (unwind-protect (funcall fn) (electric-pair-mode saved-electric) (el
>   (let ((saved-electric (if electric-pair-mode 1 -1)) (saved-layout (i
>   call-with-saved-electric-modes((closure ((temp-buffer . #<killed buf
>   (progn (funcall mode) (insert fixture) (call-with-saved-electric-mod
>   (unwind-protect (progn (funcall mode) (insert fixture) (call-with-sa
>   (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn
>   (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current
>   electric-pair-test-for("\"foo \\“foo\\\"" 12 34 "\"foo \\“foo\\”\"" 
>   (closure (t) nil (electric-pair-test-for "\"foo \\“foo\\\"" 12 34 "\
>   ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
>   ert-run-test(#s(ert-test :name electric-pair-electric-quote-replace-
>   ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
>   ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
>   ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
>   ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
>   eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
>   command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
>   command-line()
>   normal-top-level()
> Test electric-pair-electric-quote-replace-double-escaped-close-at-point-12-in-c-mode-in-strings condition:
>     (wrong-type-argument number-or-marker-p nil)


> -- 
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2021-08-13 19:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210812190845.13266.82536@vcs0.savannah.gnu.org>
     [not found] ` <20210812190847.E372A20997@vcs0.savannah.gnu.org>
2021-08-13 14:20   ` master c4d34d2: CC Mode: Enhance C++ Mode raw strings to multi-line strings for any language Lars Ingebrigtsen
2021-08-13 19:52     ` Alan Mackenzie [this message]
2021-08-14 11:53       ` Lars Ingebrigtsen
2021-08-14 14:53         ` Alan Mackenzie
2021-08-14 19:30           ` Lars Ingebrigtsen
2021-08-14 23:24             ` Glenn Morris
2021-08-14 23:31               ` Lars Ingebrigtsen
2021-08-15  6:12                 ` Eli Zaretskii
2021-08-15 15:23                 ` Alan Mackenzie
2021-08-16 11:29                   ` Lars Ingebrigtsen
2021-08-17 19:37                     ` Basil L. Contovounesios
2021-08-18  0:02                       ` Basil L. Contovounesios
2021-08-18 14:48                         ` Lars Ingebrigtsen
2021-08-18 17:07                           ` Basil L. Contovounesios
2021-08-18 17:37                         ` Alan Mackenzie
2021-08-18 19:20                           ` Alan Mackenzie
2021-08-18 20:47                             ` Alan Mackenzie
2021-08-19  0:15                               ` Basil L. Contovounesios
2021-08-20 10:48                                 ` Alan Mackenzie
2021-08-20 21:20                                   ` Alan Mackenzie
2021-08-20 22:43                                     ` Basil L. Contovounesios
2021-08-21  9:55                                       ` Alan Mackenzie
2021-08-21  7:15                                     ` Eli Zaretskii
2021-08-21 10:00                                       ` Alan Mackenzie
2021-08-21 10:04                                         ` Eli Zaretskii
2021-08-19  0:13                             ` Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YRbNixsFuHljGOpv@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.