From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.bugs Subject: bug#27933: emacs25: default info dir initialization slow with remote filesystems Date: Thu, 14 Apr 2022 02:51:56 -0400 Message-ID: References: <20150524155316.28851.58585.reportbug@tack.local> <87bmnweopv.fsf@trouble.defaultvalue.org> <7r60e4d5zj.fsf@fencepost.gnu.org> <20170803163935.4gchv7tmtqnrh4em@tack.einval.com> <20170803164913.wkuvwws3ry4l4ofy@tack.einval.com> <83r2wsy35x.fsf@gnu.org> <8xy3r0ftb6.fsf@fencepost.gnu.org> <87bkznn2dd.fsf@gnus.org> <8735jxektl.fsf@gnus.org> <87h76xp50o.fsf@gnus.org> <875yndp086.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27873"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rgm@gnu.org, 786707@bugs.debian.org, 27933@debbugs.gnu.org, steve@einval.com, 786707-forwarded@bugs.debian.org, rlb@defaultvalue.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 14 08:53:30 2022 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 1netMA-00077t-KK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Apr 2022 08:53:30 +0200 Original-Received: from localhost ([::1]:56152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1netM9-00075v-3z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Apr 2022 02:53:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1netLi-00075V-4A for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 02:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1netLh-0008Ez-RJ for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 02:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1netLh-0000Aa-Q0 for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 02:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Alfred M. Szmidt" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Apr 2022 06:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27933 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 27933-submit@debbugs.gnu.org id=B27933.1649919130569 (code B ref 27933); Thu, 14 Apr 2022 06:53:01 +0000 Original-Received: (at 27933) by debbugs.gnu.org; 14 Apr 2022 06:52:10 +0000 Original-Received: from localhost ([127.0.0.1]:54852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1netKs-000097-5E for submit@debbugs.gnu.org; Thu, 14 Apr 2022 02:52:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1netKr-00008v-4a for 27933@debbugs.gnu.org; Thu, 14 Apr 2022 02:52:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1netKj-00088k-5e; Thu, 14 Apr 2022 02:52:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=HmYTQ8Uma8xtq6lB9X/G3cuLYI9ydbCsZq94ohg0I3k=; b=RPW2GSyeROsZ KHh8eyNuNtxBnG4uetZovRWQzrngcKmqM7YG9zIZhJyn0V+oBbowwVr9yWZBsgBHi5jkSi6H2dMFS E/LhbAzDXmZHbP0m5NQqctRpUQ2PFlY/F2GU8nvqpBU8wCbo/GdUoMMN+FmvEJdQBBL2Fa75kvLSn Qd084IyiusNqUAXG7vOyxUK8XUlG99VKzRXHDHthSzklLezXvTGY9QPNDNd2TuVOf1Lw2sU8y9EFA 9/nB5HITN5+57a8zDPzpGycC92OJ9fsGdPp1fzXmQvsP9DoLAwdBapussLmg+NN6stDSV6ptaHTS3 J2fPuFploGFpcbx3Jj22HQ==; Original-Received: from ams by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1netKe-0007CP-Pq; Thu, 14 Apr 2022 02:51:56 -0400 In-Reply-To: <875yndp086.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 13 Apr 2022 15:43:53 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:229854 Archived-At: > > Standard info does the right thing, and shows both local (those listed > > by INFOPATH) dir files, and the system ones. > > > > Reverting the change (5f7db63a93f0c670d6f88dd24f922462abce7d8c) makes > > things work as expected. > > "Alfred M. Szmidt" writes: > > > Sorry -- too many distractions while writing, I missed to add one > > additional (important) note. Started with -Q and then evaluating: > > > > (add-hook 'Info-mode-hook > > (lambda () > > (setq Info-additional-directory-list Info-default-directory-list))) > > > > before entering info. > > Do you need to have both INFOPATH set and this hook set to reproduce the > problem? > > Yes, exactly. The code here is pretty convoluted, but reading it, I think we just don't support doing something like that any more (since Info-default-directory-list isn't populated any more at this point). Which is why the changes here are listed under "Incompatible changes in Emacs 29.1". Yes, it is convulted. :-/ But I think the situation gets slightly more convulted with this change. Now, there is no easy way of adding back the default directories where Emacs searches. The docstring could need a touch up, mentioning how Info-default-directory-list and Info--default-directory-list work together or hint towards it. The text is slightly misleading, since the following is not really the case: This variable is used as the default for initializing `Info-default-directory-list' when Info is started, unless the environment variable INFOPATH is set. I've tried to get the same behaviour that I had, namley that of INFOPATH + Info-default-directory-list (in that order). The only thing that comes to mind is explicitly calling Info--default-directory-list to set it up; which doesn't seem very nice. (add-hook 'Info-mode-hook (lambda () (setq Info-additional-directory-list (if (fboundp 'Info--default-directory-list) (Info--default-directory-list) Info-default-directory-list)))) If one could re-do all of this, having Info-additional-directory-list be initialized to INFOPATH would have made most sense. There can be very few reasons to delete the default Emacs info directory locations, and having INFOPATH override those always seemed backwards, and not what stand-alone Info does -- so while the Emacs documentation says that one should customize INFOPATH for both, the customizations aren't really the same :-( PS. Shouldn't bugs become unarchived when someone replies to an already archived one? The discussion here is now lost in the ether...