Find first numeral or minus sign, instead of blind move

This commit is contained in:
Vinod Kurup 2013-09-08 13:57:09 -04:00
parent 816f4405b0
commit 7704018968

View file

@ -151,7 +151,8 @@ MOMENT is an encoded date"
(re-search-forward ledger-iso-date-regexp)
(replace-match date)
(ledger-next-amount)
(forward-char 2)))
(if (re-search-forward "[-0-9]")
(goto-char (match-beginning 0)))))
(defun ledger-delete-current-transaction (pos)
"Delete the transaction surrounging point."