From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cPGaA5WwBGVN8wAAG6o9tA:P1 (envelope-from ) for ; Fri, 15 Sep 2023 21:29:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cPGaA5WwBGVN8wAAG6o9tA (envelope-from ) for ; Fri, 15 Sep 2023 21:29:25 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B1855A645 for ; Fri, 15 Sep 2023 21:29:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=jlO8ynQa; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694806164; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x0uH1C2osUwAR209S21Rjoh6Y5/11rFAQs8CdMHmckQ=; b=lyjQZaqDf+GUUQrjOxHOfK0QQkcriDXPj7b+/d9SxWaYTHl3FKwKGz61SFV31DFuIH0xN+ xbc8bfkmuqZ50ZqCEMyPg3JsV3vQn1UjC1iVjdTlLzsat9PDnX95wMmNtzeu3Dto5ybpMM UL/st2qgJLXUNNoxI7qrAIjzqt3KGgpvDq8kh2slhkgERts+BiCWOGIeZG0GtPNqw7OvJ6 lq8AEq0SmYAVT1CCV6xUCoYJVymEvCmann2w5hocqkJyqSZV0AV6yEArXKjRNzWxgTsUf5 4SVUoAiQIsf9zjZZb92xQyYcyz9KXnfl59kopLhlpfkZH9M7rD9EGtQWTroECQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=jlO8ynQa; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694806164; a=rsa-sha256; cv=none; b=rAwZO/3GdmzN7T9GoC+afsqictliX6rVViHoF2qGAea8MinS5PafAHz7FiLYWkkSnoWLzu DOAxP/G/AoxRZeUA/oZz/9ef3vh56vMiiQxzz6l+DV04aND5Wm+sU7bWO4fsh7cpH/QvyO Liua61nAn1fn26Q4JIzA93YjwN7Ja07WaY0EeZ1qe/4V3oHOGvHJ/IToWuVc3xPSQXDD/q f7VWNLEG8+RrW3qXqAmkHqdpFZfd12OhOf1RZrn0tf05ousSPimLkBYi4u0wthvpj7Mp+H kcZpjtneEaNBGFElnnFY9P5flvlY7crMA+6irkeJ3a8k1uSJk39WtMW+Fe7MHw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhEV7-0005wJ-Bs; Fri, 15 Sep 2023 15:29:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhEUt-0005s4-83 for guix-patches@gnu.org; Fri, 15 Sep 2023 15:28:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhEUt-0004dJ-0Z for guix-patches@gnu.org; Fri, 15 Sep 2023 15:28:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhEUz-0007Tr-Gh; Fri, 15 Sep 2023 15:29:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66016] [PATCH emacs-team 7/7] gnu: emacs-rjsx-mode: Fix build. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 15 Sep 2023 19:29:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66016 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66016@debbugs.gnu.org Cc: andrew@trop.in, liliana.prikler@gmail.com X-Debbugs-Original-Xcc: andrew@trop.in, liliana.prikler@gmail.com Received: via spool by 66016-submit@debbugs.gnu.org id=B66016.169480609528637 (code B ref 66016); Fri, 15 Sep 2023 19:29:05 +0000 Received: (at 66016) by debbugs.gnu.org; 15 Sep 2023 19:28:15 +0000 Received: from localhost ([127.0.0.1]:44825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhEUB-0007Rk-Cn for submit@debbugs.gnu.org; Fri, 15 Sep 2023 15:28:15 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:47571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhEU2-0007Q6-D7 for 66016@debbugs.gnu.org; Fri, 15 Sep 2023 15:28:07 -0400 Received: by mail-wr1-x444.google.com with SMTP id ffacd0b85a97d-31c4d5bd69cso2361691f8f.3 for <66016@debbugs.gnu.org>; Fri, 15 Sep 2023 12:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694806074; x=1695410874; darn=debbugs.gnu.org; h=to:content-transfer-encoding:mime-version:subject:date:from :references:in-reply-to:message-id:from:to:cc:subject:date :message-id:reply-to; bh=x0uH1C2osUwAR209S21Rjoh6Y5/11rFAQs8CdMHmckQ=; b=jlO8ynQa9m/pU2FzT+0cA/rEsiRPbWt+2kwxDlw65tuXsqVV3eXTilq0GusGjIpsHA VhkkSOzdPNEp/OTUouiW2xPRZxze0QGzKL6WLFxgs4GgoJZIfWTPTGIK8TfjZG+E86Qq vLfgGU+c1XaoQk+iyxRI1q3ZRNSKKpGxHTNdqAFX4XpfObgwuxG/K0vO7rcEmVX0cMWN 0HNKIB4hoJ7L8S0c7UwrKakVq2zXPnV1KhtWMXzfncqSbla4FiDGufsjFyk9RdFZUDK6 qn+FDf35t6r3RY2ZrwYFQN7GxSYB7wU4ZXG2pqJPBihjmKvZL05Heup2Scy8LO4dvTFS tpyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694806074; x=1695410874; h=to:content-transfer-encoding:mime-version:subject:date:from :references:in-reply-to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x0uH1C2osUwAR209S21Rjoh6Y5/11rFAQs8CdMHmckQ=; b=U8TuoWXNNyUIz5lfNaMpm0RZSZSmkR5WlLZG5t4l1aKVCvQUbc5K6uA9oNnJYa5vrD C/cgdy19hvaAUyAKd/3tV9+4K+N9/sSyUyNvu1oFmHKqqc+Tr44zuE1O6XZCJ89kbrnw wdsTlAgmhWDOYLLTLmo+OVXNDzzZ/97eayrL4kN4UIVJtcYShNH5k6jz2HC6V11GAo69 x4MeKo0RcnpfqFLaQdxnsKCGCHclXNeiOcSYMDxahOrlUyEjGsKA+8m3ExYplHrfbD/i uYt74jE/eJl8HhgqGREKvhT/nTHuzB5z1iU5QwVWgzNrOXoafQk43X81ZR8DGATXDIdq CNcA== X-Gm-Message-State: AOJu0YwDUcDW6J2P5UgphPGetmfchdOR3PE3VYmFIo6vssVX6E8VRU2y I9v4yWjcvpRzq+RnPq+Y1GIcYTMHoVHEqxRD X-Google-Smtp-Source: AGHT+IG6vYhf1/c4FRPqeFWuROOAcOvUB2Y9fw9UnH5rZ3i0okRIjnWb3+HD/AfKThEHGXIYez/4ig== X-Received: by 2002:a5d:6302:0:b0:317:ef76:b773 with SMTP id i2-20020a5d6302000000b00317ef76b773mr2130307wru.45.1694806073909; Fri, 15 Sep 2023 12:27:53 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id i22-20020a05640200d600b0052595b17fd4sm2620171edu.26.2023.09.15.12.27.52 for <66016@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 12:27:53 -0700 (PDT) Message-ID: <10664c0f1c351eae24629127d97fe23f5e18a93c.1694805225.git.liliana.prikler@gmail.com> In-Reply-To: References: From: Liliana Marie Prikler Date: Fri, 15 Sep 2023 21:11:56 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -0.31 X-Spam-Score: -0.31 X-Migadu-Queue-Id: 3B1855A645 X-TUID: xVRX0Tc2fhBR * gnu/packages/emacs-xyz.scm (emacs-rjsx-mode)[#:phases]: Add ‘js2-number-tests’. --- gnu/packages/emacs-xyz.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 6b4c23290c..6ca833b484 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -31014,7 +31014,25 @@ (define-public emacs-rjsx-mode (list emacs-js2-mode)) (arguments `(#:tests? #t - #:test-command '("make" "test"))) + #:test-command '("make" "test") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'js2-number-tests + (lambda _ + ((lambda (file test-name) ; variant of ert-number-tests + (emacs-batch-edit-file file + `(let ((i 0)) + (while (re-search-forward + ,(string-append "js2-deftest-parse " + test-name) + nil t) + (goto-char (match-beginning 0)) + (kill-region (match-beginning 0) (match-end 0)) + (insert (format "xt-deftest %s-%d" ,test-name i)) + (setq i (+ i 1))) + (basic-save-buffer)))) + "rjsx-tests.el.el" + "no-attr-no-children-self-closing")))))) (home-page "https://github.com/felipeochoa/rjsx-mode") (synopsis "Major mode for JSX files") (description "This package extends the parser of @code{js2-mode} to -- 2.41.0