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: Docstring hack Date: Sat, 30 Jul 2022 11:38:13 -0400 Message-ID: References: <83bkt6687a.fsf@gnu.org> <871qu2lo29.fsf@yahoo.com> <837d3u63ez.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b7323705e5078e96" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 30 17:39:27 2022 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 1oHoYp-0006W9-Es for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 17:39:27 +0200 Original-Received: from localhost ([::1]:36060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHoYo-0006ts-FW for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 11:39:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHoXy-000680-EK for emacs-devel@gnu.org; Sat, 30 Jul 2022 11:38:34 -0400 Original-Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:45893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHoXs-0005MB-CC; Sat, 30 Jul 2022 11:38:29 -0400 Original-Received: by mail-pg1-x52a.google.com with SMTP id f65so6210985pgc.12; Sat, 30 Jul 2022 08:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C1XOaDD/86wyDJ1hYaqy4KRNu8zFqcqk5O8ee2E1SMw=; b=pH3jFCaQh9d/n7jUyVcBq0z79pxzOWksuDmoTaI9hhjnyuHIRKstD1R+w/lWKMQx4P 6X+iBGfEs1aoDz2vFSS+oEJAedhFLLuWv9pq4e9MqpcEiChrFe0ftjOGJbvnZzuseyIt DWHdQssthjrQCmkX3p+nFGBrqfJij+s/ipip3QhPxH7cc+0+ahaNKOvZFho+T1BfxB2P FFcrki8a7nppALFax17Vu/w74i/DSGC7twkazDJlLDbG3kodPje60ln5zl2y6svVxpZZ ndseG5lXYVye/tis2MX+CoMQxKG+Bn0XiQHKwq7M/dPLnhtpiM9O6JLyBO6kwm77Vm3u GcTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C1XOaDD/86wyDJ1hYaqy4KRNu8zFqcqk5O8ee2E1SMw=; b=eVapSU9VASmAexLXf0UIR9vUUlvbijGYpqsQIB5v4mLSQtIbJDqnHxlP2gqFPagAIn tjeeekz8nGjVEajAu5ExSncABWb2O55BwUOp60+whTuSmzXGvRMngBJq9FWWGNqtaojv Z0u5rcqI4/btEtHVqajCgL09dORhOBo5pSn8ioLPCYZu92bWNsuU13/CG196GDMwQKn4 HNl02UX/WX2CeRpY3p/3mASkytbwtLyEG6qjH8UjXbK5wqXkJwRqvoxEcilJJTkRopjL 48CvreeILjzwvIZKm8laL6L6uFCq0oCaQ684BTjR/1lORJklnJW7JmyaJkCGFzwi/636 38IQ== X-Gm-Message-State: AJIora8BSyjuuFYSTHIxQmw7rnbUnim32WToLHhDWO6RAgNlPuX4hnkR zpGmuUWP0+R+KaW5XapzABMWtevHCp5n4eUljZMcMwPS X-Google-Smtp-Source: AGRyM1v2OyAOErsiuMAf5prHrNhRkKdMTW2Eded9BC3+noLc81kR6eANZe6h4GxD111fzSun+u7FbfCWOkvqh55ihf4= X-Received: by 2002:a63:2bc1:0:b0:412:706e:73ad with SMTP id r184-20020a632bc1000000b00412706e73admr6773929pgr.488.1659195505454; Sat, 30 Jul 2022 08:38:25 -0700 (PDT) In-Reply-To: <837d3u63ez.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=owinebar@gmail.com; helo=mail-pg1-x52a.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:292880 Archived-At: --000000000000b7323705e5078e96 Content-Type: text/plain; charset="UTF-8" On Sat, Jul 30, 2022, 11:11 AM Eli Zaretskii wrote: > > From: Po Lu > > Cc: Lynn Winebarger , emacs-devel@gnu.org > > Date: Sat, 30 Jul 2022 21:36:46 +0800 > > > > I think the problem is this: > > > > (format args...) > > > > will result in (format 0 args...) during dumping. > > "Result" in what sense? > As in, if you load emacs-lisp/eieio-core in site-load.el with dump-mode pdump without having byte-compiled eieio-core first, the load cedet/semantic/loaddefs.el, you will get a cryptic error message stating stringp: 0 is not a string. And upon investigation, the closure for def-eieio-autoload mysteriously has a "(format 0 cname)" in the code, even though it's not 0 in the eieio-core source code. Lynn --000000000000b7323705e5078e96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jul 30, 2022, 11:11 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Po Lu <luangruo@yahoo.com>
> Cc: Lynn Winebarger <owinebar@gmail.com>,=C2=A0 emacs-dev= el@gnu.org
> Date: Sat, 30 Jul 2022 21:36:46 +0800
>
> I think the problem is this:
>
>=C2=A0 =C2=A0(format <control string starting with escaped newline&g= t; args...)
>
> will result in (format 0 args...) during dumping.

"Result" in what sense?

As in, if you load emacs-lisp/eieio-core i= n site-load.el with dump-mode pdump without having byte-compiled eieio-core= first, the load cedet/semantic/loaddefs.el, you will get a cryptic error m= essage stating stringp: 0 is not a string.=C2=A0 And upon investigation, th= e closure for def-eieio-autoload mysteriously has a "(format 0 cname)&= quot; in the code, even though it's not 0 in the eieio-core source code= .

Lynn


--000000000000b7323705e5078e96--