summaryrefslogtreecommitdiff
path: root/lisp/ldg-register.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ldg-register.el')
-rw-r--r--lisp/ldg-register.el35
1 files changed, 28 insertions, 7 deletions
diff --git a/lisp/ldg-register.el b/lisp/ldg-register.el
index 7b5c0d0a..adb37a1a 100644
--- a/lisp/ldg-register.el
+++ b/lisp/ldg-register.el
@@ -1,3 +1,24 @@
+;;; ldg-register.el --- Helper code for use with the "ledger" command-line tool
+
+;; Copyright (C) 2003-2013 John Wiegley (johnw AT gnu DOT org)
+
+;; This file is not part of GNU Emacs.
+
+;; This is free software; you can redistribute it and/or modify it under
+;; the terms of the GNU General Public License as published by the Free
+;; Software Foundation; either version 2, or (at your option) any later
+;; version.
+;;
+;; This is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+;; for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+;; MA 02111-1307, USA.
+
(require 'ldg-post)
(require 'ldg-state)
@@ -16,8 +37,8 @@
:group 'ledger-register)
(defface ledger-register-pending-face
- '((((background light)) (:weight bold))
- (((background dark)) (:weight bold)))
+ '((((background light)) (:weight bold))
+ (((background dark)) (:weight bold)))
"Face used to highlight pending entries in a register report."
:group 'ledger-register)
@@ -34,9 +55,9 @@
(save-excursion
(goto-line (nth 1 post))
(point-marker))
- (save-excursion
- (goto-line (nth 0 xact))
- (point-marker)))))))
+ (save-excursion
+ (goto-line (nth 0 xact))
+ (point-marker)))))))
(insert (format ledger-register-line-format
(format-time-string ledger-register-date-format
(nth 2 post))
@@ -45,8 +66,8 @@
(set-text-properties beg (1- (point))
(list 'face 'ledger-register-pending-face
'where where))
- (set-text-properties beg (1- (point))
- (list 'where where))))
+ (set-text-properties beg (1- (point))
+ (list 'where where))))
(setq index (1+ index)))))
(goto-char (point-min))
)