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: Thu, 4 Aug 2022 00:12:18 -0400 Message-ID: References: <83bkt6687a.fsf@gnu.org> <871qu2lo29.fsf@yahoo.com> <837d3u63ez.fsf@gnu.org> <834jyy61w6.fsf@gnu.org> <831qu25z5x.fsf@gnu.org> <87mtcqhvot.fsf@yahoo.com> <83sfmh4x0o.fsf@gnu.org> <878ro9iw2q.fsf@yahoo.com> <83o7x54swu.fsf@gnu.org> <87pmhlhdlu.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f88e4605e5628e6b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25641"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 04 06:13:24 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 1oJSEe-0006WB-Iq for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 06:13:24 +0200 Original-Received: from localhost ([::1]:59768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJSEc-00050i-UI for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Aug 2022 00:13:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJSDr-0004E0-H5 for emacs-devel@gnu.org; Thu, 04 Aug 2022 00:12:35 -0400 Original-Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:46665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJSDp-0000nm-L2; Thu, 04 Aug 2022 00:12:35 -0400 Original-Received: by mail-pf1-x435.google.com with SMTP id 130so10467746pfv.13; Wed, 03 Aug 2022 21:12:32 -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=iv0sm6tkYP92UMMc/De6JJERGixC2n2eZS0/Wngt7J0=; b=pOf+cz+BCkEmRZrumVhhgGJG82R7i/pixZcVHYiALhvTrf35tkClSphExCd7HXGqO2 8p5ylmlBO396tQxxASGLbLxHWnqrtjdESUx7MGwcf71ET3Hf3Mwe1iK411RaUVzNC6z9 DQxf8LsbwNQsYbiWKjse5aP5Z80Tz/XN8vIJ9of3Wqc+8Zfehc5sfWYrW+dipX45Bkgu 0z2DGQXP2Mn4XrdWwu+6sc0G0ZVO3oJg4oc6uFOBRJyZVdMwz3gHtUE8Y0ogpaxftIMf sRP1HnH6TDlXjH25Eb80etSdNEbES1m1gKK6CyzA1wrnuL51DszEXktWlpH71iZeBeCi uGMA== 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=iv0sm6tkYP92UMMc/De6JJERGixC2n2eZS0/Wngt7J0=; b=WVQWRLpARVPheQqtgKDqRB2TJk8+1A/2742pKZ071FcIP3/8NyDRT5yiCZREjJdMbz EyZ4PJFQ7jMqwLYp9OyXziAgNPnbylBNriftTmn86fcGmqA5rAuhgTzbjhLOPi7mDYGh 2hjCyvZj8yix2/LM5qP78FCEf+IZRuyO6wPekWRf0CsC3Vt0xPI9JtgXO+5uPz9o6sRq Yem6xwUXE3IA4V8/58K04kwFVOwd0NgwDr6MrMWCtRMkpC/+RrVtcntpGMbODjqai3cy ccJbbOS38VSYVNuC8FJ7gxOMufgUPwhKrIBWXc6MWVShDP3LmNN6CbF+IFqQSAAGzHQi jn5g== X-Gm-Message-State: ACgBeo2cdvIQzWO6kAOvkIeQz06mIrwH3CBLaf+sufQlqs+lUIX47RoY 6N53DyFFjXe2ZrLHHqVHY+ejvFoAOe1M+9D0dw8= X-Google-Smtp-Source: AA6agR7H9Ss5U5JcHr1am0Z92atxPztSzq2E2TogyMbAbhLGpZukVx5O9HfFqIWsFAwJ4fGAI0eBRlI4xfn8RcXKPOc= X-Received: by 2002:aa7:8892:0:b0:52e:14cb:7e67 with SMTP id z18-20020aa78892000000b0052e14cb7e67mr11826pfe.35.1659586351761; Wed, 03 Aug 2022 21:12:31 -0700 (PDT) In-Reply-To: <87pmhlhdlu.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=owinebar@gmail.com; helo=mail-pf1-x435.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:293038 Archived-At: --000000000000f88e4605e5628e6b Content-Type: text/plain; charset="UTF-8" On Sun, Jul 31, 2022, 4:48 AM Po Lu wrote: > Eli Zaretskii writes: > Maybe this would work? (This question is also partly intended for Lynn) > > diff --git a/lisp/loadup.el b/lisp/loadup.el > index 21a87dbd77..e81eccb58e 100644 > --- a/lisp/loadup.el > +++ b/lisp/loadup.el > @@ -387,7 +387,8 @@ > ;; you may load them with a "site-load.el" file. > ;; But you must also cause them to be scanned when the DOC file > ;; is generated. > -(let ((lp load-path)) > +(let ((lp load-path) > + (purify-flag nil)) > (load "site-load" t) > ;; We reset load-path after dumping. > ;; For a permanent change in load-path, use configure's When I tried switching the purify-flag on and off selectively in site-load itself resulted in pdumper never completing. It was easier to just add a variable dedicated solely to turning the hack off that has no other dependencies. Keep in mind I'm only worried about 28.x for this exercise. Lynn --000000000000f88e4605e5628e6b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Jul 31, 2022, 4:48 AM Po Lu <luangruo@yahoo.com> wrote:
Eli Zaretskii <eliz@gnu.org> writes:
Maybe this would= work? (This question is also partly intended for Lynn)

diff --git a/lisp/loadup.el b/lisp/loadup.el
index 21a87dbd77..e81eccb58e 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -387,7 +387,8 @@
=C2=A0;; you may load them with a "site-load.el" file.
=C2=A0;; But you must also cause them to be scanned when the DOC file
=C2=A0;; is generated.
-(let ((lp load-path))
+(let ((lp load-path)
+=C2=A0 =C2=A0 =C2=A0 (purify-flag nil))
=C2=A0 =C2=A0(load "site-load" t)
=C2=A0 =C2=A0;; We reset load-path after dumping.
=C2=A0 =C2=A0;; For a permanent change in load-path, use configure's

When I = tried switching the purify-flag on and off selectively in site-load itself = resulted in pdumper never completing.
It was easier = to just add a variable dedicated solely to turning the hack off that has no= other dependencies.=C2=A0 Keep=C2=A0in mind I'm only worried about 28.= x for this exercise.=C2=A0=C2=A0

Lynn=C2=A0

--000000000000f88e4605e5628e6b--