From b2634c9893d496f4493a6f09a5d5cf8f65253f1a Mon Sep 17 00:00:00 2001 From: Justin Barclay Date: Sat, 30 Mar 2024 18:36:07 -0700 Subject: [PATCH] Switch to lists over vector to align with change in library --- Makefile | 2 +- parinfer-rust-mode.el | 12 ++++++------ test/user-submitted-cases.el | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 68d8721..9fbb397 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ version: download: ifeq (,$(wildcard $(HOME)/.emacs.d/parinfer-rust/parinfer-rust-$(OS).so)) mkdir -p $(HOME)/.emacs.d/parinfer-rust - curl -L "https://github.com/justinbarclay/parinfer-rust/releases/download/v0.4.6-beta1/parinfer-rust-$(OS).so" -o "$(HOME)/.emacs.d/parinfer-rust/parinfer-rust-$(OS).so" + curl -L "https://github.com/justinbarclay/parinfer-rust/releases/download/v0.4.6-beta2/parinfer-rust-$(OS).so" -o "$(HOME)/.emacs.d/parinfer-rust/parinfer-rust-$(OS).so" endif test: clean elpa version download build diff --git a/parinfer-rust-mode.el b/parinfer-rust-mode.el index 48dbe9b..58343ff 100644 --- a/parinfer-rust-mode.el +++ b/parinfer-rust-mode.el @@ -143,7 +143,7 @@ ;; 3. Run parinfer-rust and update the state of the buffer accordingly -(defconst parinfer-rust-supported-versions '("0.4.6-beta1") +(defconst parinfer-rust-supported-versions '("0.4.6-beta2") "The Supported versions of the parinfer-rust library. Versions of the library that `parinfer-rust-mode' was tested @@ -247,7 +247,7 @@ against and is known to be api compatible.") (:janet-long-strings boolean) (:comment-char string) (:string-delimiters (repeat string))) - :value-type (choice boolean string (vector string))) + :value-type (choice boolean string (repeat string))) "The available options to pass to the parinfer-rust library. These options are used to configure the behavior of the @@ -297,8 +297,8 @@ The available options are: - Default: \";\" - `:string-delimiters' - the delimiters used for strings. - - Type: (vector string) - - Default: [\"\\\"\"]") + - Type: (repeat string) + - Default: (\"\\\"\")") (defvar parinfer-rust--default-options '(:force-balance nil @@ -310,8 +310,8 @@ The available options are: :scheme-sexp-comments nil :janet-long-strings nil :comment-char ";" - :string-delimiters ["\""]) - "The set of options parinfer-rust considers default. + :string-delimiters ("\"")) + "The set of options parinfer-rust considers default. This is here mainly as reference for what is available to pass to the library and what needs to be changed for major mode specific diff --git a/test/user-submitted-cases.el b/test/user-submitted-cases.el index de4cf69..8fd1d09 100644 --- a/test/user-submitted-cases.el +++ b/test/user-submitted-cases.el @@ -51,7 +51,7 @@ :scheme-sexp-comments t :janet-long-strings nil :comment-char "#" - :string-delimiters (vector "\""))) + :string-delimiters (list "\""))) (keys (mapcar #'car (seq-partition settings 2))) (options (parinfer-rust-make-option))) (parinfer-rust--set-options