From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id 6BXNB4IpM2BYUgAAsNZ9tg (envelope-from ); Mon, 22 Feb 2021 03:48:18 +0000 Received: from out0.migadu.com ([2001:41d0:2:267::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UKxlFn4pM2CGNgAAbx9fmQ (envelope-from ); Mon, 22 Feb 2021 03:48:14 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1613965694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+BsZuSeaynr/60lyzilBQtlTF9TwO4HHr+qSt+fyhI0=; b=CxGYf8Gv/8ptDsmqebDa/ilEyn7GeqYrg5duBzq8f5vf3fGvuf3/cTxIWjwADhsb3zE4Hn fhvFE1UI/+jeyTQ5n3sCNfPpBbQ7trSVYI1NKF/SlHV9x5eg7k7DZWAEI4Bl35PzwLP81R xIOV7UJ8atcvgyrljksxURNUSRiCmYBmEGpQkIxKrYWjfof2qrzgyULz9U4CZn/G6xfu+e nbAAXFOR3aZUTXHNns/jsySb0VOBHTVWq5Vz0g2zeg/bZewdUnThJWyFTdjP4MBTfuJhPG 8060F5UsLTI4tsKVQusco9l2UB+ka2ao1XoFXKhAAUdBM+ETyE6a5tRxveMc0Q== From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH] Require Transient 0.3.0 Date: Sun, 21 Feb 2021 22:48:07 -0500 Message-Id: <20210222034807.23437-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com X-TUID: lYGH3QjrgtTg Transient 0.3.0 was just released. Require it, and stop using now obsolete macros. --- piem-b4.el | 12 ++++++------ piem.el | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/piem-b4.el b/piem-b4.el index dd7aa90..f25a676 100644 --- a/piem-b4.el +++ b/piem-b4.el @@ -4,7 +4,7 @@ ;; Author: Kyle Meyer ;; Keywords: vc, tools -;; Package-Requires: ((emacs "26.3") (transient "0.2.0")) +;; Package-Requires: ((emacs "26.3") (transient "0.3.0")) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -169,28 +169,28 @@ (defun piem-b4-am-from-mid (mid &optional args toggle-worktree) (when clean-fn (funcall clean-fn))))) -(define-infix-argument piem-b4-am:--outdir () +(transient-define-argument piem-b4-am:--outdir () :description "Output directory" :class 'transient-option :shortarg "-o" :argument "--outdir=" :reader #'transient-read-existing-directory) -(define-infix-argument piem-b4-am:--mbox-name () +(transient-define-argument piem-b4-am:--mbox-name () :description "Base file name for mbox" :class 'transient-option :shortarg "-n" :argument "--mbox-name=" :reader #'read-string) -(define-infix-argument piem-b4-am:--use-version () +(transient-define-argument piem-b4-am:--use-version () :description "Desired version of patch series" :class 'transient-option :shortarg "-v" :argument "--use-version=" :reader #'transient-read-number-N+) -(define-infix-argument piem-b4-am:--cherry-pick () +(transient-define-argument piem-b4-am:--cherry-pick () :description "Select a subset of patches by number" :class 'transient-option :shortarg "-P" @@ -198,7 +198,7 @@ (define-infix-argument piem-b4-am:--cherry-pick () :reader #'read-string) ;;;###autoload (autoload 'piem-b4-am "piem-b4" nil t) -(define-transient-command piem-b4-am () +(transient-define-prefix piem-b4-am () "Filter mbox to patches and feed to git-am" ["General options" ("-c" "Check newer versions" "--check-newer-revisions") diff --git a/piem.el b/piem.el index 8f328c4..795b297 100644 --- a/piem.el +++ b/piem.el @@ -5,7 +5,7 @@ ;; Author: Kyle Meyer ;; Keywords: vc, tools ;; Version: 0.1.0 -;; Package-Requires: ((emacs "26.3") (transient "0.2.0")) +;; Package-Requires: ((emacs "26.3") (transient "0.3.0")) ;; Homepage: https://git.kyleam.com/piem/about/ ;; This program is free software; you can redistribute it and/or modify @@ -828,7 +828,7 @@ (defun piem-am (mbox &optional format info coderepo toggle-worktree) ;;;; Dispatch ;;;###autoload (autoload 'piem-dispatch "piem" nil t) -(define-transient-command piem-dispatch () +(transient-define-prefix piem-dispatch () "Invoke a piem command." [[("a" "apply patch" piem-am) ("b" "call b4-am" piem-b4-am)] base-commit: f784460e5fd99619070a302dfc22d24d54336ede -- 2.30.1