From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#68200: 30.0.50; Emacs reloads init file when calling `documentation' Date: Mon, 8 Jan 2024 21:22:16 +0000 Message-ID: References: <8734vgjya9.fsf@web.de> <83wmsrzxtk.fsf@gnu.org> <875y056hvj.fsf@web.de> <8334v9simj.fsf@gnu.org> <877ckloxos.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3233"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , acm@muc.de, Eli Zaretskii , 68200@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 08 22:23:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rMx5e-0000eA-Se for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jan 2024 22:23:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMx5K-0001vQ-Pl; Mon, 08 Jan 2024 16:23:02 -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 1rMx5F-0001v8-F3 for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 16:22:58 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMx5D-0004J4-UB for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 16:22:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMx5J-0007N0-T7 for bug-gnu-emacs@gnu.org; Mon, 08 Jan 2024 16:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jan 2024 21:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68200 X-GNU-PR-Package: emacs Original-Received: via spool by 68200-submit@debbugs.gnu.org id=B68200.170474895428293 (code B ref 68200); Mon, 08 Jan 2024 21:23:01 +0000 Original-Received: (at 68200) by debbugs.gnu.org; 8 Jan 2024 21:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:37767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMx4r-0007MG-JS for submit@debbugs.gnu.org; Mon, 08 Jan 2024 16:22:33 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:46368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMx4n-0007M1-OS for 68200@debbugs.gnu.org; Mon, 08 Jan 2024 16:22:32 -0500 Original-Received: (qmail 59555 invoked by uid 3782); 8 Jan 2024 22:22:16 +0100 Original-Received: from acm.muc.de (p4fe1597a.dip0.t-ipconnect.de [79.225.89.122]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 08 Jan 2024 22:22:16 +0100 Original-Received: (qmail 25327 invoked by uid 1000); 8 Jan 2024 21:22:16 -0000 Content-Disposition: inline In-Reply-To: <877ckloxos.fsf@web.de> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277580 Archived-At: Hello, Michael. On Sun, Jan 07, 2024 at 18:33:39 +0100, Michael Heerdegen wrote: > Eli Zaretskii writes: > > > Looks to me like Fdocumentation detects that the file containing the doc > > > has changed, and that it needs to reload it. I think you mentioned that > > > this happens when you change the file and existing Emacs sessions do the > > > reload? In that case, this looks like normal behaviour to me, unless I'm > > > overlooking something? > > Right. > Looks like > 6a01a1a856f ".elc format: Record lambdas' doc strings lazily, not > inline" (Alan Mackenzie 2023-11-26) > would be related. > Alan, could this be the case? Yes, I think it could. I've not yet got my brain into that commit from November (which was quite a long time ago), but .... In an age when a computer with 1 GB RAM is regarded as small indeed, why are we so concerned about the, at most, few hundred bytes occupied by each doc string? Even if certain libraries were given adequate doc strings, that still wouldn't swell the occupied storage to more than... Well, I think there are around 40,000 defuns (etc.) in Emacs (I did scan the source files for this at one time). If each doc string were on average 1024 bytes, that would come to around 40 MB. That's negligible these days, surely. Eli, what would you say to changing the default of the custom variable byte-compile-dynamic-docstrings to nil? And I'll have a look at why that variable no longer appears to be working (though I have rather a lot on in the next few days). > TIA, > Michael. -- Alan Mackenzie (Nuremberg, Germany).