We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c484d commit 1afb772Copy full SHA for 1afb772
ledger-mode.el
@@ -245,16 +245,8 @@ With a prefix argument, remove any effective dates."
245
(goto-char start)
246
(while (< (point) end)
247
(let ((context (car (ledger-context-at-point))))
248
- (save-restriction
249
- (narrow-to-region (line-beginning-position) (line-end-position))
250
- (when (eq 'xact context)
251
- (if should-remove
252
- (ledger-remove-effective-date)
253
- (beginning-of-line)
254
- (re-search-forward ledger-iso-date-regexp)
255
- (when (= (char-after) ?=)
256
- (ledger-remove-effective-date))
257
- (insert "=" date-string)))))
+ (when (eq 'xact context)
+ (ledger-insert-effective-date date-string)))
258
(forward-line 1)))))
259
260
(defun ledger-mode-remove-extra-lines ()
0 commit comments