update packages

This commit is contained in:
2022-01-04 21:35:17 +01:00
parent 1d5275c946
commit 8de00e5202
700 changed files with 42441 additions and 85378 deletions

View File

@@ -26,6 +26,8 @@
(require 'ledger-regex)
(require 'ledger-navigate)
(declare-function ledger-string-to-number "ledger-commodities" (str &optional decimal-comma))
;;; Code:
(defgroup ledger-post nil
@@ -168,7 +170,9 @@ regular text."
(delete-region (match-beginning 0) (match-end 0))
(push-mark)
(calc)
(calc-eval val-string 'push)) ;; edit the amount
;; edit the amount, first removing thousands separators and
;; converting decimal commas to calc's input format
(calc-eval (number-to-string (ledger-string-to-number val-string)) 'push))
(progn ;;make sure there are two spaces after the account name and go to calc
(if (search-backward " " (- (point) 3) t)
(goto-char (line-end-position))