Skip to content

Commit

Permalink
transient--expand-define-args: Use backward compatible signature
Browse files Browse the repository at this point in the history
Closes #288.
  • Loading branch information
tarsius committed Jun 19, 2024
1 parent ef6cb38 commit 4f0fe22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# -*- mode: org -*-
* v0.7.1 UNRELEASED

- Added a workaround for ~emoji.el~ from Emacs 29.1 calling an internal
function using an outdated number of arguments. #288

* v0.7.0 2024-06-18

- Added new macro ~transient-augment-suffix~, which can be used to
Expand Down
5 changes: 4 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,10 @@ commands are aliases for."
(and val (not (eq val 'transient--default-infix-command)) val)))

(eval-and-compile ;transient--expand-define-args
(defun transient--expand-define-args (args arglist form &optional nobody)
(defun transient--expand-define-args (args &optional arglist form nobody)
;; ARGLIST and FORM are only optional for backward compatibility.
;; This is necessary because "emoji.el" from Emacs 29 calls this
;; function directly, with just one argument.
(unless (listp arglist)
(error "Mandatory ARGLIST is missing"))
(let (class keys suffixes docstr declare (interactive-only t))
Expand Down

0 comments on commit 4f0fe22

Please sign in to comment.