diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-30 17:54:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-30 17:54:54 -0400 |
commit | cb6f7cd54e24aa31b0ba163dfb5680e4a7795228 (patch) | |
tree | ad7379258c0fc63935be3844f3f8ef34e37ad9f0 /src/emacs.cc | |
parent | 00886a32e7edc85b30919519cd2ff3a54bbbd0fc (diff) | |
download | fork-ledger-cb6f7cd54e24aa31b0ba163dfb5680e4a7795228.tar.gz fork-ledger-cb6f7cd54e24aa31b0ba163dfb5680e4a7795228.tar.bz2 fork-ledger-cb6f7cd54e24aa31b0ba163dfb5680e4a7795228.zip |
Add a position_t object for tracking item positions
It is also optional, which is useful for generated items.
Diffstat (limited to 'src/emacs.cc')
-rw-r--r-- | src/emacs.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emacs.cc b/src/emacs.cc index 57054690..24d3f1c1 100644 --- a/src/emacs.cc +++ b/src/emacs.cc @@ -40,8 +40,8 @@ namespace ledger { void format_emacs_posts::write_xact(xact_t& xact) { - out << "\"" << xact.pathname << "\" " - << (xact.beg_line + 1) << " "; + out << "\"" << xact.pos->pathname << "\" " + << (xact.pos->beg_line + 1) << " "; tm when = gregorian::to_tm(xact.date()); std::time_t date = std::mktime(&when); // jww (2008-04-20): Is this GMT or local? @@ -77,7 +77,7 @@ void format_emacs_posts::operator()(post_t& post) out << "\n"; } - out << " (" << (post.beg_line + 1) << " "; + out << " (" << (post.pos->beg_line + 1) << " "; out << "\"" << post.reported_account()->fullname() << "\" \"" << post.amount << "\""; |