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: File local byte-compile-dynamic-docstrings:nil ignored (was: bug#68200: 30.0.50; Emacs reloads init file when calling `documentation') Date: Thu, 11 Jan 2024 17:59:34 +0000 Message-ID: References: <8734vgjya9.fsf@web.de> <83wmsrzxtk.fsf@gnu.org> <875y056hvj.fsf@web.de> <8334v9simj.fsf@gnu.org> <877ckloxos.fsf@web.de> <87sf375snq.fsf@web.de> <87sf35j28v.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="37132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , acm@muc.de, Eli Zaretskii , 68200-done@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 11 19:00:32 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 1rNzLz-0009QM-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Jan 2024 19:00:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNzLd-0005Ui-7v; Thu, 11 Jan 2024 13:00:09 -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 1rNzLa-0005Tx-LW for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 13:00:06 -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 1rNzLZ-0005PM-QY for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 13:00:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNzLX-0002mi-8i for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 13:00:03 -0500 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jan 2024 18:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68200 X-GNU-PR-Package: emacs Mail-Followup-To: 68200@debbugs.gnu.org, acm@muc.de, michael_heerdegen@web.de Original-Received: via spool by 68200-done@debbugs.gnu.org id=D68200.170499598110621 (code D ref 68200); Thu, 11 Jan 2024 18:00:03 +0000 Original-Received: (at 68200-done) by debbugs.gnu.org; 11 Jan 2024 17:59:41 +0000 Original-Received: from localhost ([127.0.0.1]:33838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNzLB-0002lE-1f for submit@debbugs.gnu.org; Thu, 11 Jan 2024 12:59:41 -0500 Original-Received: from mail.muc.de ([193.149.48.3]:33370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNzL8-0002l0-W0 for 68200-done@debbugs.gnu.org; Thu, 11 Jan 2024 12:59:40 -0500 Original-Received: (qmail 68643 invoked by uid 3782); 11 Jan 2024 18:59:35 +0100 Original-Received: from acm.muc.de (p4fe15a91.dip0.t-ipconnect.de [79.225.90.145]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 11 Jan 2024 18:59:34 +0100 Original-Received: (qmail 29810 invoked by uid 1000); 11 Jan 2024 17:59:34 -0000 Content-Disposition: inline In-Reply-To: <87sf35j28v.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:277924 Archived-At: Hello, Michael. On Wed, Jan 10, 2024 at 04:28:32 +0100, Michael Heerdegen wrote: > Alan Mackenzie writes: > > You've almost certainly written your own patch for it by now, but > > nevertheless, could I ask you to try out this patch. I don't have a > > convenient test case here. > > diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el > > index 2bc8d54ba77..ad8d53d01e9 100644 > > --- a/lisp/emacs-lisp/bytecomp.el > > +++ b/lisp/emacs-lisp/bytecomp.el > > @@ -2605,9 +2605,10 @@ byte-compile-output-docform > > `defvaralias', `autoload' and `custom-declare-variable' need that." > > ;; We need to examine byte-compile-dynamic-docstrings > > ;; in the input buffer (now current), not in the output buffer. > > - (let ((byte-compile-dynamic-docstrings byte-compile-dynamic-docstrings)) > > + (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) > > (with-current-buffer byte-compile--outbuffer > > - (let ((position (point)) > > + (let ((byte-compile-dynamic-docstrings dynamic-docstrings) > > + (position (point)) > Yes, that's what I tried as well. This approach seems to fix this > problem here, so: fine by me. OK, I've committed the fix and I'm closing the bug with this post. > Thanks, > Michael. -- Alan Mackenzie (Nuremberg, Germany).