summaryrefslogtreecommitdiff
path: root/src/emacs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.cc')
-rw-r--r--src/emacs.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/emacs.cc b/src/emacs.cc
index b63375b2..714302c5 100644
--- a/src/emacs.cc
+++ b/src/emacs.cc
@@ -36,14 +36,8 @@ namespace ledger {
void format_emacs_xacts::write_entry(entry_t& entry)
{
- int idx = entry.src_idx;
- foreach (const path& path, entry.journal->sources)
- if (! idx--) {
- out << "\"" << path << "\" ";
- break;
- }
-
- out << (static_cast<std::size_t>(entry.beg_line) + 1) << " ";
+ out << "\"" << entry.pathname << "\" "
+ << (static_cast<std::size_t>(entry.beg_line) + 1) << " ";
tm when = gregorian::to_tm(*entry.date());
std::time_t date = std::mktime(&when); // jww (2008-04-20): Is this GMT or local?