Skip to content

Commit 327cf47

Browse files
committed
Merge pull request #21 from ravl1084/master
Update documentation on deprecated functions
2 parents 06c6873 + d3eeea4 commit 327cf47

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.mkd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Tips and useful commands
1818

1919
* Try account-completion (as explained below)
2020

21-
* `:call LedgerSetDate(line('.'), 'auxiliary')`
21+
* `:call ledger#transaction_date_set(line('.'), 'auxiliary')`
2222

2323
will set today's date as the auxiliary date of the current transaction. You
2424
can use also `primary` or `unshift` in place of `auxiliary`. When you pass
@@ -27,18 +27,18 @@ Tips and useful commands
2727
To use a different date pass a date measured in seconds since 1st Jan 1970
2828
as the third argument.
2929

30-
* `:call LedgerSetTransactionState(line('.'), '*')`
30+
* `:call ledger#transaction_state_set(line('.'), '*')`
3131

3232
sets the state of the current transaction to '*'. You can use this in custom
3333
mappings.
3434

35-
* `:call LedgerToggleTransactionState(line('.'), ' *?!')`
35+
* `:call ledger#transaction_state_toggle(line('.'), ' *?!')`
3636

3737
will toggle through the provided transaction states. You can map this to
3838
double-clicking for example:
3939

4040
noremap <silent><buffer> <2-LeftMouse>\
41-
:call LedgerToggleTransactionState(line('.'), ' *?!')<CR>
41+
:call ledger#transaction_state_toggle(line('.'), ' *?!')<CR>
4242

4343
Configuration
4444
-------------

doc/ledger.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Tips and useful commands
3131

3232
* Try account-completion (as explained below)
3333

34-
* `:call LedgerSetDate(line('.'), "auxiliary")`
34+
* `:call ledger#transaction_date_set('.'), "auxiliary")`
3535

3636
will set today's date as the auxiliary date of the current transaction. You
3737
can use also "primary" or "unshift" in place of "auxiliary". When you pass
@@ -40,18 +40,18 @@ Tips and useful commands
4040
To use a different date pass a date measured in seconds since 1st Jan 1970
4141
as the third argument.
4242

43-
* `:call LedgerSetTransactionState(line('.'), '*')`
43+
* `:call ledger#transaction_state_set(line('.'), '*')`
4444

4545
sets the state of the current transaction to '*'. You can use this in custom
4646
mappings.
4747

48-
* `:call LedgerToggleTransactionState(line('.'), ' *?!')`
48+
* `:call ledger#transaction_state_toggle(line('.'), ' *?!')`
4949

5050
will toggle through the provided transaction states. You can map this to
5151
double-clicking for example:
5252

5353
noremap <silent><buffer> <2-LeftMouse>\
54-
:call LedgerToggleTransactionState(line('.'), ' *?!')<CR>
54+
:call ledger#transaction_state_toggle(line('.'), ' *?!')<CR>
5555

5656
==============================================================================
5757
SETTINGS *ledger-settings*

0 commit comments

Comments
 (0)