From ccc75b0ee1ff4b8aad41243d31af984f83f5df71 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Thu, 9 Mar 2023 02:35:00 -0600 Subject: [PATCH] Fix: (org-ql-view--link-store) Error message for test suite Use format string to prevent `substitute-quotes' from changing the error string, breaking the test suite when run on CI. Fixes #317. --- org-ql-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-ql-view.el b/org-ql-view.el index 13cde85b..95dfe3b4 100644 --- a/org-ql-view.el +++ b/org-ql-view.el @@ -672,7 +672,7 @@ When opened, the link searches the buffer it's opened from." (when (buffer-base-buffer thing) (buffer-file-name (buffer-base-buffer thing)))))))) (unless (strings-or-file-buffers-p org-ql-view-buffers-files) - (user-error "Views that search non-file-backed buffers can't be linked to")) + (user-error "%s" "Views that search non-file-backed buffers can't be linked to")) (let* ((query-string (--if-let (org-ql--query-sexp-to-string org-ql-view-query) it (org-ql-view--format-query org-ql-view-query))) (buffers-files (prompt-for (org-ql-view--contract-buffers-files org-ql-view-buffers-files)))