unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Corallo <acorallo@gnu.org>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: master e8f5df51751: Declare nested backquotes unsupported in Pcase patterns (bug#72328)
Date: Wed, 25 Sep 2024 04:40:54 -0400	[thread overview]
Message-ID: <yp1tte4dt2h.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <20240924180147.CFA2BC41104@vcs2.savannah.gnu.org> (Stefan Monnier via Mailing list for Emacs changes's message of "Tue, 24 Sep 2024 14:01:47 -0400 (EDT)")

Stefan Monnier via Mailing list for Emacs changes <emacs-diffs@gnu.org>
writes:

> branch: master
> commit e8f5df5175170d36f526e46b63b3d428bb9a8950
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Commit: Stefan Monnier <monnier@iro.umontreal.ca>
>
>     Declare nested backquotes unsupported in Pcase patterns (bug#72328)
>
>     The current behavior is inconsistent with that of the normal backquote
>     macro, so to avoid surprises, warn about the use of nested backquotes.
>
>     * lisp/emacs-lisp/pcase.el (pcase--expand-\`): Warn about nested backquotes.
>
>     * lisp/emacs-lisp/testcover.el (testcover-analyze-coverage)
>     (testcover-analyze-coverage-wrapped-form): Avoid nested backquotes

Hello,

this is introducing the following on my build on master:

========
Warning: pcase pattern '(a b) shadowed by previous pcase pattern
Warning: Nested ` are not supported
Test pcase-tests-quote-optimization backtrace:
  signal(ert-test-failed (((should (= 1 (with-temp-buffer (prin1 exp1
  ert-fail(((should (= 1 (with-temp-buffer (prin1 exp1 (current-buffer
  #f(compiled-function () #<bytecode -0x1976b0af9035f65f>)()
  #f(compiled-function () #<bytecode 0x179d5d17f865dad7>)()
  handler-bind-1(#f(compiled-function () #<bytecode 0x179d5d17f865dad7
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name pcase-tests-quote-optimization :docum
  ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [...
  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" "--eval" "(setq treesit-extra-l
  command-line()
  normal-top-level()
Test pcase-tests-quote-optimization condition:
    (ert-test-failed
     ((should (= 1 (with-temp-buffer ... ... ...))) :form (= 1 2) :value
      nil))
   FAILED  10/13  pcase-tests-quote-optimization (0.000206 sec) at lisp/emacs-lisp/pcase-tests.el:80

========

Thanks

  Andrea



       reply	other threads:[~2024-09-25  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <172720090734.16527.4608943018991937538@vcs2.savannah.gnu.org>
     [not found] ` <20240924180147.CFA2BC41104@vcs2.savannah.gnu.org>
2024-09-25  8:40   ` Andrea Corallo [this message]
2024-09-26 20:42     ` master e8f5df51751: Declare nested backquotes unsupported in Pcase patterns (bug#72328) Stefan Monnier
2024-09-27 16:27       ` Andrea Corallo

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=yp1tte4dt2h.fsf@fencepost.gnu.org \
    --to=acorallo@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).