From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YObuEP64K2OLKgAAbAwnHQ (envelope-from ) for ; Thu, 22 Sep 2022 03:23:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GOsKEP64K2OugQEAG6o9tA (envelope-from ) for ; Thu, 22 Sep 2022 03:23:10 +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 B8D8110354 for ; Thu, 22 Sep 2022 03:23:09 +0200 (CEST) Received: from localhost ([::1]:34748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obAvk-0000qS-SQ for larch@yhetil.org; Wed, 21 Sep 2022 21:23:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obAve-0000oM-9m for guix-patches@gnu.org; Wed, 21 Sep 2022 21:23:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36435) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obAve-0003Qy-1S for guix-patches@gnu.org; Wed, 21 Sep 2022 21:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obAvd-0005HR-PX for guix-patches@gnu.org; Wed, 21 Sep 2022 21:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57992] [PATCH] gnu: emacs-use-package: Emit deprecation messages. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Sep 2022 01:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57992 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57992@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166380977320280 (code B ref -1); Thu, 22 Sep 2022 01:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Sep 2022 01:22:53 +0000 Received: from localhost ([127.0.0.1]:35513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obAvU-0005H2-KA for submit@debbugs.gnu.org; Wed, 21 Sep 2022 21:22:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:59942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obAvT-0005Gu-8z for submit@debbugs.gnu.org; Wed, 21 Sep 2022 21:22:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obAvT-0000e7-3v for guix-patches@gnu.org; Wed, 21 Sep 2022 21:22:51 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:37408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obAvQ-0003OV-E0 for guix-patches@gnu.org; Wed, 21 Sep 2022 21:22:50 -0400 Date: Thu, 22 Sep 2022 09:21:58 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1663809762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MC/77/1npdwu2kUQP/1w0xVKM2kLm5TwbRwVorCeODc=; b=md+8RTmiprctLOpi+xQOmDRuBhZ2M5F1/e4K8JNZVRfZEz0lo0KkucBgqiSss4JCcyhcMH H1UyoK5J3ejl9TysVYOD1Mw3H7of63FvtjfY+U+qmMiQccZLy+f1oyL8C47NMw389Xzgfb ZtP1W7pcGGs/Cn1FfDzNOpSZjXTxXgyNz0sAwuEHLwualqNslRHn1lSuMcd+PpAtctbQgW 5aoHb4XZWHCMXdUIBLvWZZhtecQj1dd9F2rAXEcHeAXz9NvDPxu3HyopmA4B0DqWJVRHCJ Qp8uZB8TZnh80lh6xn+yqPuvGqT10HT0dB9ldYFachptO0tVhtAhOB01QU57iA== Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663809790; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MC/77/1npdwu2kUQP/1w0xVKM2kLm5TwbRwVorCeODc=; b=ie4L83hCvze3j6miwtWpWfJWgIQYoIW6otKF3P0cCivHR7GOItYBxnHCMwD3mK8LP45cQM j0IMP2lIhUm3UH3AZGzwTGtlebxw00j4wtpxr5zyRLSaJvdfSM9Lg0zXck1bEkewd+YUOG 8g2xiS38crClg9XNB8soPvMAETl2zLaQIzouS7/bovTQwB4N+e4oVpxrHdNj9gUZecf5Or z08q3gmqzjPhXlzTQWNGK9SqvSyu+uRPC/gfDknuC+TlW1o9KUiZE+pUCa0kj5ui3yeGvg SqyBTcRnZL0BY7xJfXcnyE7Oc1TBoBpd/ZZdJCv4EMr/HkHnABbV3jzGfL6PYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663809790; a=rsa-sha256; cv=none; b=XhULTOBUllKAL4VSEftjiblNgWi0fRHGSsUB8yQVYLkfrVVb0Ggzk5ZTZYfTgmLPVPkG46 xdVY5YaF5gikxVKlOaP7A50tN/218g5TDxiz20hRr6QQqrAjiz3Y6rPgNf968yLrdWe9F+ R8KCvlyGcq5OgOu+Z0G0A3vk/r2gH5ZhU+B/b+jaQ14Jtpb0K8n/u6LMH6cxHjwrnGeaw0 93hCFzAZZetZdZj6GXePWMz4QzDSXHXBdMqg5WsS/gwzSYbI3PqqIXcsQUuJg64rsqauFR zaNR4DrI1cTIF2MAUfMz6vYSdRTzHMfhE895OEa6bbO02E4gU4MDUkEBoyYwZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=md+8RTmi; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=md+8RTmi; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: B8D8110354 X-Spam-Score: -2.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: KUEJgOyntgbG * gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/emacs-xyz.scm (emacs-use-package)[patches]: Add emacs-use-package-avoid-positional-arguments.patch. --- gnu/local.mk | 1 + gnu/packages/emacs-xyz.scm | 6 ++++- ...e-package-avoid-positional-arguments.patch | 26 +++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch diff --git a/gnu/local.mk b/gnu/local.mk index ef1bae5f3c..731f64b053 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1054,6 +1054,7 @@ dist_patch_DATA = \ %D%/packages/patches/emacs-source-date-epoch.patch \ %D%/packages/patches/emacs-telega-path-placeholder.patch \ %D%/packages/patches/emacs-telega-test-env.patch \ + %D%/packages/patches/emacs-use-package-avoid-positional-arguments.patch \ %D%/packages/patches/emacs-wordnut-require-adaptive-wrap.patch \ %D%/packages/patches/emacs-yasnippet-fix-tests.patch \ %D%/packages/patches/emacs-kv-fix-tests.patch \ diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 32e4c33f16..762d11a776 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -14994,7 +14994,11 @@ (define-public emacs-use-package (file-name (git-file-name name version)) (sha256 (base32 - "088kl3bml0rs5bkfymgzr15ram9qvy66h1kaisrbkynh0yxvf8g9")))) + "088kl3bml0rs5bkfymgzr15ram9qvy66h1kaisrbkynh0yxvf8g9")) + (patches + (search-patches + ;; NOTE: Cherry-picked from upstream commit. + "emacs-use-package-avoid-positional-arguments.patch")))) (build-system emacs-build-system) (native-inputs (list texinfo)) diff --git a/gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch b/gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch new file mode 100644 index 0000000000..82b52b0400 --- /dev/null +++ b/gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch @@ -0,0 +1,26 @@ +From cb90d3fa4168d7e1b2f035f4fbb0d5d08db1fbec Mon Sep 17 00:00:00 2001 +From: Jonas Bernoulli +Date: Tue, 18 May 2021 15:44:34 +0200 +Subject: [PATCH] Avoid positional arguments to define-minor-mode + +Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to +replace its old positional arguments. Starting with Emacs-28.1 +a warning will be omitted if positional arguments are still used. +--- + bind-key.el | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/bind-key.el b/bind-key.el +index 1d611c2..9a2ddcd 100644 +--- a/bind-key.el ++++ b/bind-key.el +@@ -131,7 +131,8 @@ + + (define-minor-mode override-global-mode + "A minor mode so that keymap settings override other modes." +- t "") ++ :global t ++ :lighter "") + + ;; the keymaps in `emulation-mode-map-alists' take precedence over + ;; `minor-mode-map-alist' base-commit: 1a1ff7ed8fdaae58aff0e8625399cd7354038ca3 -- 2.37.3