Skip to content

Commit 1a32890

Browse files
committed
Fix insert-effective-date argument order.
Need to keep `date` first for backwards compatibility. Fixes tests.
1 parent 2a5f559 commit 1a32890

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ledger-mode.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ the balance into that."
187187
nil 'noerr)
188188
(replace-match ""))))))))
189189

190-
(defun ledger-insert-effective-date (&optional start end date)
190+
(defun ledger-insert-effective-date (&optional date start end)
191191
"Insert effective date `DATE' to the transaction or posting.
192192
193193
If `DATE' is nil, prompt the user for a date.
@@ -201,8 +201,8 @@ With an active region (`START' and `END' non-nil), insert or
201201
remove for all transactions starting within the region."
202202
(interactive
203203
(if (use-region-p)
204-
(list (region-beginning) (region-end))
205-
(list nil nil)))
204+
(list nil (region-beginning) (region-end))
205+
(list nil nil nil)))
206206

207207
(if (and start end) (ledger-insert-effective-date-region start end date)
208208
(if (and (listp current-prefix-arg)

0 commit comments

Comments
 (0)