summaryrefslogtreecommitdiff
path: root/lisp/ldg-xact.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-03-18 10:50:11 -0700
committerCraig Earls <enderw88@gmail.com>2013-03-18 10:50:11 -0700
commitea72ac29eadad36d2b9e37a168127cff76f2880a (patch)
treecdb19f810a3ad0d8ef9d52d8584baa29e9aa5b21 /lisp/ldg-xact.el
parent431d7e5b25f7e2997494ace7a0be78492c5d688b (diff)
downloadledger-ea72ac29eadad36d2b9e37a168127cff76f2880a.tar.gz
ledger-ea72ac29eadad36d2b9e37a168127cff76f2880a.tar.bz2
ledger-ea72ac29eadad36d2b9e37a168127cff76f2880a.zip
Enh918 Have occur mode searches stored in mini buffer history
Diffstat (limited to 'lisp/ldg-xact.el')
-rw-r--r--lisp/ldg-xact.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ldg-xact.el b/lisp/ldg-xact.el
index ecd87127..3e4cec4b 100644
--- a/lisp/ldg-xact.el
+++ b/lisp/ldg-xact.el
@@ -99,9 +99,10 @@ within the transaction."
(ignore (goto-char here))))))
(defun ledger-copy-transaction-at-point (date)
- "Ask for a new DATE and copy the transaction under point to that date. Leave point on the first amount."(interactive (list
- (read-string "Copy to date: "
- (concat ledger-year "/" ledger-month "/"))))
+ "Ask for a new DATE and copy the transaction under point to that date. Leave point on the first amount."
+ (interactive (list
+ (read-string "Copy to date: "
+ (concat ledger-year "/" ledger-month "/") 'ledger-minibuffer-history)))
(let* ((here (point))
(extents (ledger-find-xact-extents (point)))
(transaction (buffer-substring (car extents) (cadr extents)))