From f691735c6ce89a19356769084449d3f5691ab030 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Nov 2005 07:11:22 +0000 Subject: Restructed the code that it can build and be used as a shared library. The command-line version is still statically bound in the build process by default (for the sake of speed). --- ledger.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ledger.el') diff --git a/ledger.el b/ledger.el index 492ef306..9d06dbe1 100644 --- a/ledger.el +++ b/ledger.el @@ -487,7 +487,7 @@ dropped." (dolist (item items) (let ((index 1)) (dolist (xact (nthcdr 5 item)) - (let ((beg (point)) + (let ((beg (point)) (where (with-current-buffer buf (cons @@ -502,14 +502,14 @@ dropped." account (cdr (ledger-current-entry-bounds))) (setq i (1+ i)))) (point-marker))))))) - (insert (format "%s %-30s %-25s %15s\n" + (insert (format "%s %-30s %-25s %15s\n" (format-time-string "%m/%d" (nth 2 item)) (nth 4 item) (nth 0 xact) (nth 1 xact))) (if (nth 2 xact) + (set-text-properties beg (1- (point)) + (list 'face 'bold + 'where where)) (set-text-properties beg (1- (point)) - (list 'face 'bold - 'where where)) - (set-text-properties beg (1- (point)) (list 'where where)))) (setq index (1+ index))))) (goto-char (point-min)) -- cgit v1.2.3