From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Regression in dump-emacs-portable Date: Thu, 16 Feb 2023 23:10:48 -0500 Message-ID: References: <83ttzocomk.fsf@gnu.org> <834jrncd6a.fsf@gnu.org> <83o7pt395q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 17 05:11:46 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSs66-0000Dh-IK for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Feb 2023 05:11:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSs5R-0005pk-4B; Thu, 16 Feb 2023 23:11:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSs5Q-0005m9-C4 for emacs-devel@gnu.org; Thu, 16 Feb 2023 23:11:04 -0500 Original-Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSs5O-0001p3-Ii; Thu, 16 Feb 2023 23:11:03 -0500 Original-Received: by mail-pj1-x102d.google.com with SMTP id q5-20020a17090a1b0500b00229ca6a4636so97032pjq.0; Thu, 16 Feb 2023 20:11:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uW9GwsdJFhtdQb9+xX4h7HcfBFHKYiwqx5rbjwvWHPk=; b=EZt+jpnm0ezzPfTp7wxwDwaPL/B9/QoPDmet3nujMH8Su2nUTam6VbOn9uoXZtd9Zc KjUb5MVAKZ5+LTSk/2f1rYTK+Qhtnyhxow0K+eXNY5mOlSIG4HvLY2N2tW+pIY3kwfFo qgjhnycYnLKZg+vEhI4hLIEUhVJlgg6A1kyDvWu52VJdFdmhiulrs/J69OqBlCBUM59L ab5RTWo0Hhz70aYydhijFVGDVlYVbGied0ZhHcb56GsZr03ntDo7k8HtSjt0bxguucsV ZQaiggauq5sx/NPtoSAffk+rErEXH3UKZVEhe+BwW15K3BZcLTMA/mnX6QgqwHvx98DK 8l9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uW9GwsdJFhtdQb9+xX4h7HcfBFHKYiwqx5rbjwvWHPk=; b=Rs7SEW3QYUUjq3IHBFFrfdlUSjcOqBl59v/sR/LDA4uj0jX+RImJFbt1uLzCJTqNJr TiiBkUy04o+Em1tjFKZuNUNcTp2jrq388H47hUrXvP25/doEbXdD/wDwZ+wfBN58Ns0F I2JmWMYoqVbRLySrbVctST360aTDX2Ccr7j7elgGdxxafeiZfgU8++xZ4ypJC4aZnQCB JSFkE4D6QQNMdwUX82/5wfCCdK9BSI3CO7+HAbSkqluxofSci2KYo8zn6pgYz00fBMzR voqfD/zi3kvkz3DhAjC/DoQ5KB7Pk+aTENQoq/3gfO5iVmX+X1u/Fv7AOOPtb3zRm/Vt Cb5Q== X-Gm-Message-State: AO0yUKV5iqn0LMd2w4pgtlsG3vifpqLOJ66+KDUJGzXqU7dxbcKJ09Hs k4t1FeZ0Sgb14RgLlCDNIgFf4dQVDBJDX4MTytV1PhaHVo8= X-Google-Smtp-Source: AK7set9g0/rp/0Dmlqv0Gc7KsqquX+pmk3b6/FuhClet2IGy0rhgKnj5G78D5t88GDAiE476dsGsVVDI4AcUuCcHS14= X-Received: by 2002:a17:902:7009:b0:19a:9c0e:9af0 with SMTP id y9-20020a170902700900b0019a9c0e9af0mr1689345plk.10.1676607059939; Thu, 16 Feb 2023 20:10:59 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=owinebar@gmail.com; helo=mail-pj1-x102d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303449 Archived-At: On Thu, Feb 16, 2023 at 8:29 PM Lynn Winebarger wrote: > sh-script generates a "weird pseudovector" message in 376ms > > time emacs -Q -batch --eval '(load "sh-script")' --eval '(dump-emacs-portable "test-sh-script.pdmp")' This seems to be related to whatever object "treesit-font-lock-rules" creates. The moral seems to be to create tests of each type of object a user-visible lisp function might create to get quick test cases. =============>sh-script-test<====================== (require 'treesit) (defvar font-lock-comment-face) (defvar sh-mode--treesit-operators '("|" "|&" "||" "&&" ">" ">>" "<" "<<" "<<-" "<<<" "==" "!=" ";&" ";;&") "A list of `sh-mode' operators to fontify.") (defvar sh-mode--treesit-keywords '("case" "do" "done" "elif" "else" "esac" "export" "fi" "for" "function" "if" "in" "unset" "while" "then") "Minimal list of keywords that belong to tree-sitter-bash's grammar. Some reserved words are not recognize to keep the grammar simpler. Those are identified with regex-based filtered queries. \(See `sh-mode--treesit-other-keywords' and `sh-mode--treesit-settings').") (defvar sh-mode--treesit-settings (treesit-font-lock-rules :feature 'comment :language 'bash '((comment) @font-lock-comment-face)) "Tree-sitter font-lock settings for `sh-mode'.") ====================================================================== Loading /home/owinebar/sh-script-test.el (source)... Dumping fingerprint: 30c4a01f07c30c32913a3c578aa6871d7af188212b14e2f9c5e3717f80b9ab43 Error: error ("unsupported object type in dump: weird pseudovector") mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (error "unsupported object type in dump: weird pseudovector")) dump-emacs-portable("test.pdmp") eval((dump-emacs-portable "test.pdmp") t) command-line-1(("--eval" "(load \"~/sh-script-test\")" "--eval" "(dump-emacs-portable \"test.pdmp\")")) command-line() normal-top-level() unsupported object type in dump: weird pseudovector real 0m0.415s user 0m0.343s sys 0m0.068s