Skip to content

Commit

Permalink
ci(test): calls to generate-new-buffer changed
Browse files Browse the repository at this point in the history
Call generate-new-buffer with a single argument. 2 arguments are only
supported for versions 28 and above.

Signed-off-by: Sylvain Bougerel <[email protected]>
  • Loading branch information
sbougerel committed Feb 18, 2024
1 parent beb412b commit 4675dca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions logseq-org-roam-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -722,16 +722,16 @@ A [[test links]] matching headline.
(f &optional n r w)
((:input '("a" nil nil nil) ; no modifications
:output-generator (lambda (f &optional n r w)
(generate-new-buffer "*test*" t)))
(generate-new-buffer "*test*")))
(:input '("h" nil nil nil) ; with modifications!
:output-generator (lambda (f &optional n r w)
(let ((buf (generate-new-buffer "*test*" t)))
(let ((buf (generate-new-buffer "*test*")))
(with-current-buffer buf
(set-buffer-modified-p t))
buf)))
(:input '("i" nil nil nil) ; no modifications
:output-generator (lambda (f &optional n r w)
(generate-new-buffer "*test*" t)))))
(generate-new-buffer "*test*")))))
(save-buffer
(&optional b)
((:occur 1
Expand Down Expand Up @@ -797,10 +797,10 @@ A [[test links]] matching headline.
(f &optional n r w)
((:input '("a" nil nil nil) ; no modifications
:output-generator (lambda (f &optional n r w)
(generate-new-buffer "*test*" t)))
(generate-new-buffer "*test*")))
(:input '("h" nil nil nil) ; with modifications!
:output-generator (lambda (f &optional n r w)
(let ((buf (generate-new-buffer "*test*" t)))
(let ((buf (generate-new-buffer "*test*")))
(with-current-buffer buf
(set-buffer-modified-p t))
buf)))))
Expand Down Expand Up @@ -899,7 +899,7 @@ A [[test links]] matching headline.
(f &optional n r w)
((:input-matcher #'always
:output-generator (lambda (f &optional n r w)
(generate-new-buffer "*test*" t)))))
(generate-new-buffer "*test*")))))
(org-id-get-create
(&optional f)
((:input-matcher #'always
Expand Down

0 comments on commit 4675dca

Please sign in to comment.