Merge branch 'next' into ledger-mode-automatic-transactions
This commit is contained in:
commit
712665e5b4
5 changed files with 10 additions and 8 deletions
|
|
@ -77,8 +77,7 @@ Return tree structure"
|
||||||
(split-string
|
(split-string
|
||||||
(match-string-no-properties 2) ":"))
|
(match-string-no-properties 2) ":"))
|
||||||
(let ((root account-tree))
|
(let ((root account-tree))
|
||||||
(while (and account-elements
|
(while account-elements
|
||||||
(not (char-equal (string-to-char (car account-elements)) ?\;)))
|
|
||||||
(let ((entry (assoc (car account-elements) root)))
|
(let ((entry (assoc (car account-elements) root)))
|
||||||
(if entry
|
(if entry
|
||||||
(setq root (cdr entry))
|
(setq root (cdr entry))
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,8 @@ region align the posting on the current line."
|
||||||
(when (setq amt-offset (ledger-next-amount (line-end-position)))
|
(when (setq amt-offset (ledger-next-amount (line-end-position)))
|
||||||
(let* ((amt-adjust (- ledger-post-amount-alignment-column
|
(let* ((amt-adjust (- ledger-post-amount-alignment-column
|
||||||
amt-offset
|
amt-offset
|
||||||
(current-column))))
|
(current-column)
|
||||||
|
2)))
|
||||||
(if (/= amt-adjust 0)
|
(if (/= amt-adjust 0)
|
||||||
(if (> amt-adjust 0)
|
(if (> amt-adjust 0)
|
||||||
(insert (make-string amt-adjust ? ))
|
(insert (make-string amt-adjust ? ))
|
||||||
|
|
|
||||||
|
|
@ -434,7 +434,7 @@ moved and recentered. If they aren't strange things happen."
|
||||||
(define-key map [menu-bar ldg-recon-menu qui] '("Quit" . ledger-reconcile-quit))
|
(define-key map [menu-bar ldg-recon-menu qui] '("Quit" . ledger-reconcile-quit))
|
||||||
(define-key map [menu-bar ldg-recon-menu sep1] '("--"))
|
(define-key map [menu-bar ldg-recon-menu sep1] '("--"))
|
||||||
(define-key map [menu-bar ldg-recon-menu pre] '("Previous Entry" . previous-line))
|
(define-key map [menu-bar ldg-recon-menu pre] '("Previous Entry" . previous-line))
|
||||||
(define-key map [menu-bar ldg-recon-menu vis] '("Visit Entry" . ledger-reconcile-visit))
|
(define-key map [menu-bar ldg-recon-menu vis] '("Visit Source" . ledger-reconcile-visit))
|
||||||
(define-key map [menu-bar ldg-recon-menu nex] '("Next Entry" . next-line))
|
(define-key map [menu-bar ldg-recon-menu nex] '("Next Entry" . next-line))
|
||||||
(define-key map [menu-bar ldg-recon-menu sep2] '("--"))
|
(define-key map [menu-bar ldg-recon-menu sep2] '("--"))
|
||||||
(define-key map [menu-bar ldg-recon-menu del] '("Delete Entry" . ledger-reconcile-delete))
|
(define-key map [menu-bar ldg-recon-menu del] '("Delete Entry" . ledger-reconcile-delete))
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ text that should replace the format specifier."
|
||||||
'ledger-report-kill)
|
'ledger-report-kill)
|
||||||
(define-key map [(control ?c) (control ?l) (control ?e)]
|
(define-key map [(control ?c) (control ?l) (control ?e)]
|
||||||
'ledger-report-edit)
|
'ledger-report-edit)
|
||||||
(define-key map [(control ?c) (control ?c)] 'ledger-report-visit-source)
|
(define-key map [return] 'ledger-report-visit-source)
|
||||||
|
|
||||||
|
|
||||||
(define-key map [menu-bar] (make-sparse-keymap "ldg-rep"))
|
(define-key map [menu-bar] (make-sparse-keymap "ldg-rep"))
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@
|
||||||
;; automagically
|
;; automagically
|
||||||
(let ((new-beg beg)
|
(let ((new-beg beg)
|
||||||
(new-end end))
|
(new-end end))
|
||||||
|
(setq inhibit-modification-hooks t)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(save-restriction
|
(save-restriction
|
||||||
(goto-char beg)
|
(goto-char beg)
|
||||||
|
|
@ -93,7 +94,8 @@
|
||||||
nil
|
nil
|
||||||
'ledger-next-record-function
|
'ledger-next-record-function
|
||||||
'ledger-end-record-function
|
'ledger-end-record-function
|
||||||
'ledger-sort-startkey))))))
|
'ledger-sort-startkey))))
|
||||||
|
(setq inhibit-modification-hooks nil)))
|
||||||
|
|
||||||
(defun ledger-sort-buffer ()
|
(defun ledger-sort-buffer ()
|
||||||
"Sort the entire buffer."
|
"Sort the entire buffer."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue