]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix recent changes in pdumper.c
authorEli Zaretskii <eliz@gnu.org>
Sun, 21 Jul 2024 04:27:38 +0000 (07:27 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:38:32 +0000 (12:38 +0200)
* src/pdumper.c (dump_treesit_compiled_query, dump_vectorlike):
Minor copyedits.

(cherry picked from commit e63fa29b98f3be18b7c66c9ca289e787b172ec37)

src/pdumper.c

index 07fb1d569dabb114afe6d61e3476c95bc0fb0d16..53bddf91f04ce873a9b03c5e43bd4a889ba73916 100644 (file)
@@ -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: