Skip to content

Commit

Permalink
dev: fix buttercup-format-spec for Emacs29+
Browse files Browse the repository at this point in the history
It's a temporary measure, the proper fix should land in buttercup
  • Loading branch information
d12frosted committed Oct 8, 2022
1 parent f74575e commit d2620c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/utils/vulpea-test-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
(require 'org-roam)
(require 'vulpea)

(when (version<= "29" emacs-version)
(defun buttercup-format-spec (format specification)
"Return a string based on FORMAT and SPECIFICATION.
This is a wrapper around `format-spec', which see. This also adds
a call to `save-match-data', as `format-spec' modifies that."
(save-match-data
(format-spec format (--map
(cons (car it) (lambda () (cdr it)))
specification)))))

(defvar vulpea-test-directory (expand-file-name "test/note-files")
"Directory containing test notes.")

Expand Down

0 comments on commit d2620c8

Please sign in to comment.