emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 63255de48b: * src/pdumper.c (dump_vectorlike): Handle PVEC_SY


From: Po Lu
Subject: Re: master 63255de48b: * src/pdumper.c (dump_vectorlike): Handle PVEC_SYMBOL_WITH_POS.
Date: Thu, 27 Jan 2022 20:10:40 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Andreas Schwab <schwab@gnu.org> writes:

>     * src/pdumper.c (dump_vectorlike): Handle PVEC_SYMBOL_WITH_POS.
> ---
>  src/pdumper.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/pdumper.c b/src/pdumper.c
> index 60280fcb04..f4e8e4af28 100644
> --- a/src/pdumper.c
> +++ b/src/pdumper.c
> @@ -2948,7 +2948,7 @@ dump_vectorlike (struct dump_context *ctx,
>                   Lisp_Object lv,
>                   dump_off offset)
>  {
> -#if CHECK_STRUCTS && !defined HASH_pvec_type_19F6CF5169
> +#if CHECK_STRUCTS && !defined HASH_pvec_type_AFF6FED5BD
>  # error "pvec_type changed. See CHECK_STRUCTS comment in config.h."
>  #endif
>    const struct Lisp_Vector *v = XVECTOR (lv);
> @@ -3032,6 +3032,8 @@ dump_vectorlike (struct dump_context *ctx,
>        error_unsupported_dump_object (ctx, lv, "sqlite");
>      case PVEC_MODULE_FUNCTION:
>        error_unsupported_dump_object (ctx, lv, "module function");
> +    case PVEC_SYMBOL_WITH_POS:
> +      error_unsupported_dump_object (ctx, lv, "symbol with pos");
>      default:
>        error_unsupported_dump_object(ctx, lv, "weird pseudovector");
>      }

Hmm, why not actually dump those symbols?  I think it makes sense to do
so, though admittedly didn't take a very close look at their
implementation.

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]