Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in completion and interactive specs #52

Merged
merged 2 commits into from
Jun 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions beancount.el
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ With an argument move to the previous non cleared transaction."
(lambda (string pred action)
(if (null candidates)
(setq candidates
(sort (beancount-collect regexp 1) #'string<)))
(sort (beancount-collect-unique regexp 1) #'string<)))
(complete-with-action action candidates string pred))))
(list (match-beginning 1) (match-end 1) completion-table)))

Expand All @@ -574,7 +574,7 @@ With an argument move to the previous non cleared transaction."
(lambda (string pred action)
(if (null candidates)
(setq candidates
(sort (beancount-collect regexp 1) #'string<)))
(sort (beancount-collect-unique regexp 1) #'string<)))
(complete-with-action action candidates string pred))))
(list (match-beginning 1) (match-end 1) completion-table))))))))

Expand Down Expand Up @@ -940,13 +940,13 @@ Emacs-26 is dropped."
(defun beancount-date-up-day (&optional days)
"Increase the date in the current line by one day.
With prefix ARG, change that many days."
(interactive "p" beancount-mode)
(interactive "p")
(beancount--shift-date-at-point (or days 1)))

(defun beancount-date-down-day (&optional days)
"Decrease the date in the current line by one day.
With prefix ARG, change that many days."
(interactive "p" beancount-mode)
(interactive "p")
(beancount--shift-date-at-point (- (or days 1))))

(defvar beancount-install-dir nil
Expand Down
Loading