[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/beancount b377d14caf 047/103: (merge)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/beancount b377d14caf 047/103: (merge) |
Date: |
Mon, 29 Apr 2024 15:59:45 -0400 (EDT) |
branch: elpa/beancount
commit b377d14caf69886dae004b8517aff4f6585be8d4
Merge: 008d1bc599 a48aaa7f41
Author: Martin Blais <blais@furius.ca>
Commit: Martin Blais <blais@furius.ca>
(merge)
---
beancount.el | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/beancount.el b/beancount.el
index 74ca51fa5a..be2f587405 100644
--- a/beancount.el
+++ b/beancount.el
@@ -322,7 +322,7 @@ to align all amounts."
(setq-local comment-start-skip ";+\\s-*")
(setq-local comment-add 1)
- (setq-local indent-line-function #'beancount-indent-line-function)
+ (setq-local indent-line-function #'beancount-indent-line)
(setq-local indent-region-function #'beancount-indent-region)
(setq-local indent-tabs-mode nil)
@@ -548,23 +548,19 @@ will allow to align all numbers."
(account-end (match-end 1))
(number-beginning (match-beginning 3))
(spaces (max 2 (- target-column account-end-column
number-width))))
- (goto-char account-end)
- (delete-region account-end number-beginning)
- (insert (make-string spaces ? ))))))
+ (unless (eq spaces (- number-beginning account-end))
+ (goto-char account-end)
+ (delete-region account-end number-beginning)
+ (insert (make-string spaces ? )))))))
(defun beancount-indent-line ()
(let ((indent (beancount-compute-indentation))
(savep (> (current-column) (current-indentation))))
- (if (eq last-command 'beancount-indent-line)
- (setq indent 0))
(unless (eq indent (current-indentation))
(if savep (save-excursion (indent-line-to indent))
- (indent-line-to indent))))
- (beancount-align-number (beancount-number-alignment-column)))
-
-(defun beancount-indent-line-function ()
- (beancount-indent-line)
- (setq this-command 'beancount-indent-line))
+ (indent-line-to indent)))
+ (unless (eq this-command 'beancount-tab-dwim)
+ (beancount-align-number (beancount-number-alignment-column)))))
(defun beancount-indent-region (start end)
"Indent a region automagically. START and END specify the region to indent."
- [nongnu] elpa/beancount ad05238927 022/103: beancount.el: Small simplifications, (continued)
- [nongnu] elpa/beancount ad05238927 022/103: beancount.el: Small simplifications, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ad26ec2b29 025/103: beancount.el: Add fontification tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8c52ee05ee 030/103: beancount.el: Revamp function to toggle transaction flag, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 201629317d 032/103: beancount.el: Sort option names alphabetically, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount fa285958d0 033/103: beancount.el: Drop unused function, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount d8d95a2f0a 036/103: beancount.el: Small tests cleanup, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount d4db16f0ee 042/103: beancount.el: Fix fontification of outline headings, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 35d127f8fe 048/103: beancount.el: Add imenu support, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount d51963d156 052/103: beancount.el: Remove redundant :group, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 70d4878171 051/103: Merged in default (pull request #133), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount b377d14caf 047/103: (merge),
ELPA Syncer <=
- [nongnu] elpa/beancount ba6bada870 058/103: beancount.el: Rework imenu support and add tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 05d4798156 059/103: (emacs) Added experimental beancount-mode support for running a journal for the account under the cursor., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 7410724924 065/103: beancount-region: Added bindings for region_value variant., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 9508e5640c 060/103: Add README.org, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 3c04745fa5 069/103: Add missing paren to configuration example in README.org, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount dcb317ed0a 064/103: If the cursor is over a link, invoke 'bean-doctor linked' command with the link, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 5ff509075d 063/103: Fixes to /etc, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 7785e8803f 067/103: Improve thing-at-point definition for beancount-link, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 194a9e9697 061/103: Added license., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 90c3992269 076/103: Fix imenu tests, ELPA Syncer, 2024/04/29