Merge branch 'next' into ledger-mode-automatic-transactions
This commit is contained in:
commit
b15d4bc09e
4 changed files with 4 additions and 6 deletions
|
|
@ -75,7 +75,7 @@ Returns a list with (value commodity)."
|
||||||
(let ((fields (split-string str "[\n\r]"))) ; break any balances
|
(let ((fields (split-string str "[\n\r]"))) ; break any balances
|
||||||
; with multi commodities
|
; with multi commodities
|
||||||
; into a list
|
; into a list
|
||||||
(mapcar '(lambda (str)
|
(mapcar #'(lambda (str)
|
||||||
(ledger-split-commodity-string str))
|
(ledger-split-commodity-string str))
|
||||||
fields)))
|
fields)))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,8 @@
|
||||||
"Deal with ledger errors contained in LEDGER-OUTPUT."
|
"Deal with ledger errors contained in LEDGER-OUTPUT."
|
||||||
(with-current-buffer (get-buffer-create "*Ledger Error*")
|
(with-current-buffer (get-buffer-create "*Ledger Error*")
|
||||||
(insert-buffer-substring ledger-output)
|
(insert-buffer-substring ledger-output)
|
||||||
(make-frame)
|
|
||||||
(fit-frame)
|
|
||||||
(view-mode)
|
(view-mode)
|
||||||
(toggle-read-only)))
|
(setq buffer-read-only t)))
|
||||||
|
|
||||||
(defun ledger-exec-success-p (ledger-output-buffer)
|
(defun ledger-exec-success-p (ledger-output-buffer)
|
||||||
(with-current-buffer ledger-output-buffer
|
(with-current-buffer ledger-output-buffer
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
:group 'ledger-faces)
|
:group 'ledger-faces)
|
||||||
|
|
||||||
(defface ledger-font-highlight-face
|
(defface ledger-font-highlight-face
|
||||||
`((t :background "white"))
|
`((t :background "#eee8d5"))
|
||||||
"Default face for transaction under point"
|
"Default face for transaction under point"
|
||||||
:group 'ledger-faces)
|
:group 'ledger-faces)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ text that should replace the format specifier."
|
||||||
(interactive)
|
(interactive)
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(forward-paragraph)
|
(forward-paragraph)
|
||||||
(next-line)
|
(forward-line)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(setq inhibit-read-only t)
|
(setq inhibit-read-only t)
|
||||||
(reverse-region (point) (point-max))))
|
(reverse-region (point) (point-max))))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue