From 73ae9dd2f0f7bb45fbbd7c0c3b497d64247baf03 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 21 Jul 2024 07:27:38 +0300 Subject: [PATCH] ; Fix recent changes in pdumper.c * src/pdumper.c (dump_treesit_compiled_query, dump_vectorlike): Minor copyedits. (cherry picked from commit e63fa29b98f3be18b7c66c9ca289e787b172ec37) --- src/pdumper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pdumper.c b/src/pdumper.c index 07fb1d569da..53bddf91f04 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -2223,7 +2223,7 @@ dump_treesit_compiled_query (struct dump_context *ctx, START_DUMP_PVEC (ctx, &query->header, struct Lisp_TS_Query, out); dump_field_lv (ctx, &out->language, query, &query->language, WEIGHT_STRONG); dump_field_lv (ctx, &out->source, query, &query->source, WEIGHT_STRONG); - /* Recompile these after load */ + /* These will be recompiled after load from dump. */ out->query = NULL; out->cursor = NULL; return finish_dump_pvec (ctx, &out->header); @@ -3123,11 +3123,9 @@ dump_vectorlike (struct dump_context *ctx, return DUMP_OBJECT_IS_RUNTIME_MAGIC; } break; -#ifdef HAVE_TREE_SITTER case PVEC_TS_COMPILED_QUERY: +#ifdef HAVE_TREE_SITTER return dump_treesit_compiled_query (ctx, XTS_COMPILED_QUERY (lv)); -#else - case PVEC_TS_COMPILED_QUERY: #endif case PVEC_WINDOW_CONFIGURATION: case PVEC_OTHER: -- 2.39.2