From cb6f7cd54e24aa31b0ba163dfb5680e4a7795228 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Oct 2009 17:54:54 -0400 Subject: Add a position_t object for tracking item positions It is also optional, which is useful for generated items. --- src/emacs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emacs.cc') 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 << "\""; -- cgit v1.2.3