summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-16 21:10:50 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:24 -0400
commitf43370cae5d9297487fedeefa427d42ab869df48 (patch)
tree247b3e1f9628fd62e19f0758d8f7265308b1d8e2 /format.h
parentb0414258467a1216f69dc01ae7a7ad8af2751b8b (diff)
downloadfork-ledger-f43370cae5d9297487fedeefa427d42ab869df48.tar.gz
fork-ledger-f43370cae5d9297487fedeefa427d42ab869df48.tar.bz2
fork-ledger-f43370cae5d9297487fedeefa427d42ab869df48.zip
Transactions now track their beginning and ending position, as do
entries. The new format strings %xB %xE %xb %xe can be used to display those values relative to a transaction. The Emacs module now relies on this support to exactly determine where a transaction is, rather than the Elisp logic it relied on previously.
Diffstat (limited to 'format.h')
-rw-r--r--format.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/format.h b/format.h
index b1b77fd8..eff23b2c 100644
--- a/format.h
+++ b/format.h
@@ -19,10 +19,14 @@ struct element_t
STRING,
VALUE_EXPR,
SOURCE,
- BEG_POS,
- BEG_LINE,
- END_POS,
- END_LINE,
+ ENTRY_BEG_POS,
+ ENTRY_BEG_LINE,
+ ENTRY_END_POS,
+ ENTRY_END_LINE,
+ XACT_BEG_POS,
+ XACT_BEG_LINE,
+ XACT_END_POS,
+ XACT_END_LINE,
DATE_STRING,
COMPLETE_DATE_STRING,
CLEARED,