From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27933: emacs25: default info dir initialization slow with remote filesystems Date: Thu, 03 Feb 2022 21:04:14 +0100 Message-ID: <87bkznn2dd.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 786707@bugs.debian.org, 27933@debbugs.gnu.org, Steve McIntyre , 786707-forwarded@bugs.debian.org, rlb@defaultvalue.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 03 21:29:05 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 1nFij3-00086C-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 21:29:05 +0100 Original-Received: from localhost ([::1]:54612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFij1-0007Uw-B9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 15:29:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFiM7-0001NT-4Y for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:05:23 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFiLm-0004OO-R4 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:05:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFiLm-00031W-5g for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 15:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2022 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27933 X-GNU-PR-Package: emacs Original-Received: via spool by 27933-submit@debbugs.gnu.org id=B27933.164391867811585 (code B ref 27933); Thu, 03 Feb 2022 20:05:02 +0000 Original-Received: (at 27933) by debbugs.gnu.org; 3 Feb 2022 20:04:38 +0000 Original-Received: from localhost ([127.0.0.1]:57972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFiLN-00030k-Vl for submit@debbugs.gnu.org; Thu, 03 Feb 2022 15:04:38 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFiLM-00030P-Es for 27933@debbugs.gnu.org; Thu, 03 Feb 2022 15:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1MOG4kCfm3gf4pm6VQKUjZXnadPkELoz/+IaqH/y7n8=; b=A37zJCXtwZ9BiS4VAS+qQ27FAT QCk/SgBUS+fQA94pHEz6xlSxm0dl9KGbl63lrojS4Oz1n5zlVjg5Z24/C2EQO0ahIYmuYtBHdhS7D ozF/MSxsCB4CkVzFaamltG775WEPkDrC1PzNnW5mq3jv5Wb/zQyz1yx/OLxCpR8lO+EA=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFiL4-00041G-QY; Thu, 03 Feb 2022 21:04:21 +0100 X-Now-Playing: He Said's _Take Care_: "Watch Take Care" In-Reply-To: <8xy3r0ftb6.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 03 Aug 2017 13:35:25 -0400") 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:225921 Archived-At: Glenn Morris writes: > Ideally Info-default-directory-list would go away. leaving only > Info-directory-list initialized in a standard fashion. But I haven't > looked at the details. I poked a bit at this, and it seems hard to make this work in a backwards-compatible way. The problem is that we document stuff like this to work: (add-to-list 'Info-default-directory-list "~/Info") And we compute Info-default-directory-list at startup (and it stats a bunch of directories, which is what this bug report is about). The user can therefore assume that it's been filled, and may be removing directories from it, too, so if we just initialise it (or do statting while initialising Info-directory-list), we'll be breaking people's setups. I.e., people may have (setq Info-default-directory-list (delete "/usr/share/info/" Info-default-directory-list)) in .emacs, and that won't work. But I think we should indeed fix this, because statting those directories at startup isn't ideal, but it'd be a breaking change. I propose to make Info-default-directory-list nil by default, and initialise Info-directory-alist from the directories that Info-default-directory-list would normally find, as well as Info-default-directory-list (unless INFODIR is set, and that overrides). I think the breakage for users should be pretty minimal -- it would only affect people that remove stuff from Info-default-directory-list, but not those that add to it. Any comments before I make this change? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no