update packages
This commit is contained in:
@@ -119,7 +119,7 @@ long, otherwise it is the word at point."
|
||||
"Make an overlay for an invisible portion of the buffer, from BEG to END."
|
||||
(let ((ovl (make-overlay beg end)))
|
||||
(overlay-put ovl ledger-occur-overlay-property-name t)
|
||||
(overlay-put ovl 'invisible t)))
|
||||
(overlay-put ovl 'invisible 'ledger-occur-hidden)))
|
||||
|
||||
(defun ledger-occur-create-overlays (ovl-bounds)
|
||||
"Create the overlays for the visible transactions.
|
||||
@@ -150,8 +150,8 @@ Argument OVL-BOUNDS contains bounds for the transactions to be left visible."
|
||||
;; Search loop
|
||||
(while (not (eobp))
|
||||
;; if something found
|
||||
(when-let ((endpoint (re-search-forward regex nil 'end))
|
||||
(bounds (ledger-navigate-find-element-extents endpoint)))
|
||||
(when-let* ((endpoint (re-search-forward regex nil 'end))
|
||||
(bounds (ledger-navigate-find-element-extents endpoint)))
|
||||
(push bounds lines)
|
||||
;; move to the end of the xact, no need to search inside it more
|
||||
(goto-char (cadr bounds))))
|
||||
|
||||
Reference in New Issue
Block a user