Skip to content

Commit

Permalink
Bump transient version to 0.3.0 (#104)
Browse files Browse the repository at this point in the history
Replace the obsolete 'define-transient-command' with
'transient-define-prefix'.
  • Loading branch information
dajva committed Feb 27, 2021
1 parent 2aa338b commit 8a537d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rg-isearch.el
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ in files matching the current file type."
:format literal
:files current)

(define-transient-command rg-isearch-menu ()
(transient-define-prefix rg-isearch-menu ()
"Show menu for rg isearch commands."
[:description "Search with ripgrep"
(3 "f" "File" rg-isearch-current-file--transient)
Expand Down
2 changes: 1 addition & 1 deletion rg-menu.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ FUNC is an rerun function invoked from an `rg-mode' buffer."
(rg-menu-wrap-transient-rerun rg-rerun-change-dir)

;;;###autoload (autoload 'rg-menu "rg-menu.el" "" t)
(define-transient-command rg-menu ()
(transient-define-prefix rg-menu ()
"Show menu buffer for rg commands."
:man-page "rg"
:value 'rg-menu-search-initial-value
Expand Down
2 changes: 1 addition & 1 deletion rg.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
;; Roland McGrath <roland@gnu.org>
;; Version: 2.1.0
;; URL: https://github.com/dajva/rg.el
;; Package-Requires: ((emacs "25.1") (transient "0.1.0") (wgrep "2.1.10"))
;; Package-Requires: ((emacs "25.1") (transient "0.3.0") (wgrep "2.1.10"))
;; Keywords: matching, tools

;; This file is not part of GNU Emacs.
Expand Down
4 changes: 2 additions & 2 deletions test/rg-menu.el-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

(ert-deftest rg-unit/menu-transient-insert ()
"Test adding new items to the menu"
(define-transient-command rg-menu ()
(transient-define-prefix rg-menu ()
[ "Switches" ]
[ "Options" ]
[[ "Search"
Expand All @@ -111,7 +111,7 @@

(ert-deftest rg-unit/menu-define-search ()
"Test adding new items to the menu"
(define-transient-command rg-menu ()
(transient-define-prefix rg-menu ()
[ "Switches" ]
[ "Options" ]
[[ "Search"
Expand Down

0 comments on commit 8a537d9

Please sign in to comment.