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 SR/HIzLtK2MY/QAAbAwnHQ (envelope-from ) for ; Thu, 22 Sep 2022 07:05:54 +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 4EgAIjLtK2PGcwEAG6o9tA (envelope-from ) for ; Thu, 22 Sep 2022 07:05:54 +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 B280A1578D for ; Thu, 22 Sep 2022 07:05:53 +0200 (CEST) Received: from localhost ([::1]:49458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obEPI-0004vc-Rh for larch@yhetil.org; Thu, 22 Sep 2022 01:05:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obEJh-0002RE-Jx for guix-patches@gnu.org; Thu, 22 Sep 2022 01:00:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obEJe-0007h8-V7 for guix-patches@gnu.org; Thu, 22 Sep 2022 01:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obEJe-0002ll-Pb for guix-patches@gnu.org; Thu, 22 Sep 2022 01:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57997] [PATCH] gnu: emacs-rime: Emit deprecation warning. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Sep 2022 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57997 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57997@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166382275510546 (code B ref -1); Thu, 22 Sep 2022 05:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Sep 2022 04:59:15 +0000 Received: from localhost ([127.0.0.1]:35802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obEIt-0002k2-1e for submit@debbugs.gnu.org; Thu, 22 Sep 2022 00:59:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:35268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obEIr-0002jr-91 for submit@debbugs.gnu.org; Thu, 22 Sep 2022 00:59:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obEIr-00025N-3G for guix-patches@gnu.org; Thu, 22 Sep 2022 00:59:13 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:44646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obEIp-0007ba-Di for guix-patches@gnu.org; Thu, 22 Sep 2022 00:59:12 -0400 Date: Thu, 22 Sep 2022 12:58:38 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1663822749; 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=KikDlOCX5k7MBLEPym4/e9yG+xIgQsMH/gus0u35h0M=; b=SroMQhCja+EDeL8UK9GDALoejyr3ef5CJIm3cuLneG52DKFDv9Vj+kSYtKMYtK+J8K0dOq MdOh8h1jweFYwGhmsndh6NNCzu5TZAFwwPoi6qQNa4AMPrx3R3bms4LPbksBjqXLhxVdSW Q29Eo2DAXxtRzrZyal2CdPJXvo2B73rVp/G9GrBm5ya5rJKn3sv+0bwkfY2fKT1G3qSEcy f/xn5TZJxPhhPW8iPo3gbVXE75iyNWNgZhUWxjHolqsYhGIftWPrr8VVNMs2ShLeK+Nme3 +U1wkD88cM8ZvJy5LQW25UGEf4H0BK6TVQo2X9EuPn49uNBJ4Ec33udBgshpvQ== 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=1663823154; 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=KikDlOCX5k7MBLEPym4/e9yG+xIgQsMH/gus0u35h0M=; b=N98zofflWzBDOC1mbYFjPOW4gF9N83K1+D8ZRbaxn0lTqil6nBKUkvdtJB0hR/9/q8EVkh F1SrnWuFGHL62t9a/3i6hT+O2ACPbQr+JBIYlxWzoeIyaTtnL6MglNvfe/nYExrF0kOPJw qYtXEaYgAzO2NGSS1qjrLOUHsI7TwIzcVxGUD1OyDcq4E7rR76+EMBNZQQOjYXGY0ZALBi LPstkOn0osMeAfoX+dhfLLsdiqL1BWheU8h5KzyFdG9n5JIkhOfr1jkZEAcc7/Zp84akGL VcTGA3thXyFF4bZpZZMGdZt6Yw6hUpopHaQ5eSNUyHge+e0uJbslfrM4FS4Hog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663823154; a=rsa-sha256; cv=none; b=EHXL1ssbsptleBd4Yz6vpKslTpPuCdcqgrWTJULYew3NGDadPHOTOrER3N4VwnHpR5ZAvL RtGQzsQaau1DrKvRt1rV6MQGXnS6YSCucWRBpTQDkFg+5+lppY74DFM3PQpbfsmJ5bGERx XByNLe5IQF7xhMNgQO0f6n+GfXgEZcDWqqvnlgEt+IOKWgExueYE6g0HMRVK4l9ryezR+J utB8sCu5r3vL3kVN2T4TnpbB19N4mySTUT0ffWf6y7JqEIQWBsIBu4+dWTG7z/hjx+GLqS bBW1GQyQsW2IvWpy612HwBIw/pZVECbddXE2aEWBitI9g+Po7DVU+8BKAoFBnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=SroMQhCj; 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: -4.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=SroMQhCj; 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: B280A1578D X-Spam-Score: -4.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: OBaL8YCpaZ0S * gnu/packages/patches/emacs-rime-update-define-minor-mode-usage.patch: New file. * gnu/local.mk (dist_patch_DATA): Add patch. * gnu/packages/emacs-xyz.scm (emacs-rime)[patches]: Add emacs-rime-update-define-minor-mode-usage.patch --- gnu/local.mk | 1 + gnu/packages/emacs-xyz.scm | 6 ++- ...-rime-update-define-minor-mode-usage.patch | 38 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/emacs-rime-update-define-minor-mode-usage.patch diff --git a/gnu/local.mk b/gnu/local.mk index ef1bae5f3c..82e980a272 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1051,6 +1051,7 @@ dist_patch_DATA = \ %D%/packages/patches/emacs-libgit-use-system-libgit2.patch \ %D%/packages/patches/emacs-lispy-fix-thread-last-test.patch \ %D%/packages/patches/emacs-polymode-fix-lexical-variable-error.patch \ + %D%/packages/patches/emacs-rime-update-define-minor-mode-usage.patch \ %D%/packages/patches/emacs-source-date-epoch.patch \ %D%/packages/patches/emacs-telega-path-placeholder.patch \ %D%/packages/patches/emacs-telega-test-env.patch \ diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 32e4c33f16..5811fb410a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -29523,7 +29523,11 @@ (define-public emacs-rime (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0z0iwsqr92g8ykxb51gkawwxwzx0faw0027zgdi7c38ngjqld237")))) + (base32 "0z0iwsqr92g8ykxb51gkawwxwzx0faw0027zgdi7c38ngjqld237")) + (patches + (search-patches + ;; NOTE: Cherry-picked from upstream, remove when bumping. + "emacs-rime-update-define-minor-mode-usage.patch")))) (build-system emacs-build-system) (arguments '(#:include (cons "\\.so$" %default-include) diff --git a/gnu/packages/patches/emacs-rime-update-define-minor-mode-usage.patch b/gnu/packages/patches/emacs-rime-update-define-minor-mode-usage.patch new file mode 100644 index 0000000000..4f905ca0bf --- /dev/null +++ b/gnu/packages/patches/emacs-rime-update-define-minor-mode-usage.patch @@ -0,0 +1,38 @@ +From 5c2ade217134f6f20cd405447af20825e5b44513 Mon Sep 17 00:00:00 2001 +From: tianshu +Date: Sat, 11 Dec 2021 02:06:35 +0800 +Subject: [PATCH] update define-minor-mode usage + +--- + rime.el | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/rime.el b/rime.el +index 64a4d70..044ab97 100644 +--- a/rime.el ++++ b/rime.el +@@ -1084,18 +1084,18 @@ Argument NAME ignored." + "Mode used in composition. + + Should not be enabled manually." +- nil +- nil +- nil ++ :lighter nil ++ :init-value nil ++ :keymap nil + (if rime-active-mode + (rime-active-mode--init) + (rime-active-mode--uninit))) + + (define-minor-mode rime-mode + "Mode used when input method is activated." +- nil +- nil +- rime-mode-map) ++ :lighter nil ++ :init-value nil ++ :keymap rime-mode-map) + + ;;;###autoload + (register-input-method "rime" "euc-cn" 'rime-activate rime-title) base-commit: 33d4992b69bfed2ec6b15b7b842599efb1cb1e31 -- 2.37.3