From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#67696: 30.0.50; Help deal with multiple versions in load-path Date: Fri, 29 Dec 2023 06:22:36 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30411"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67696@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 29 15:23:17 2023 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 1rJDlc-0007gT-8z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Dec 2023 15:23:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJDlS-0000AF-QK; Fri, 29 Dec 2023 09:23:06 -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 1rJDlP-00009n-Im for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 09:23:03 -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 1rJDlO-0006FP-L9 for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 09:23:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJDlO-0006La-Er for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 09:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2023 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67696 X-GNU-PR-Package: emacs Original-Received: via spool by 67696-submit@debbugs.gnu.org id=B67696.170385976724377 (code B ref 67696); Fri, 29 Dec 2023 14:23:02 +0000 Original-Received: (at 67696) by debbugs.gnu.org; 29 Dec 2023 14:22:47 +0000 Original-Received: from localhost ([127.0.0.1]:41069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJDl8-0006L7-Uq for submit@debbugs.gnu.org; Fri, 29 Dec 2023 09:22:47 -0500 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:42362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJDl5-0006Kr-Hg for 67696@debbugs.gnu.org; Fri, 29 Dec 2023 09:22:45 -0500 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5559df64497so2153272a12.1 for <67696@debbugs.gnu.org>; Fri, 29 Dec 2023 06:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703859757; x=1704464557; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=x0jODc8s3gDCE7ZEQrR9FAXHyEzap4eTTPPAV7b+WfA=; b=HckWlETk9jM0y8Q1Vnmg0eYXxzlSKPKTcrOIWfwVyWhH/8JiZh1ATSx5ics+Y0Cv6U NHzon7xIj/WbqLp28P8xijXLuMRb2pCckCD7sQrkIxd2CDtO3/yVX9G8Pb/7m/RKIEHk KSVmTVCvA3dgJrL2AeY3JM2GtTFlTI2lgEYA8DpWezVSGYIp37zzpfTrWwFP9jRApAwe 70wpYae7TXUfzI8CHqnqlUD9fYlKPhmyalOL4mSt+NqF9+vu9ksmHVqTrJYY8y0lKbqQ fyM/4J2xHMPI9o2Xp9zQ/5yANYieZP9tHLI60CRT46GcaoOMvjwcNngE9yPjy8gtcIhO itPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703859757; x=1704464557; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x0jODc8s3gDCE7ZEQrR9FAXHyEzap4eTTPPAV7b+WfA=; b=UQNRqGAYWQje6lOeIo0oztCeI5AU7vXlxdahuONixs4LbY9l0I/qvAMMybFA+wadM9 Vm4EuPBUWM7DCIkUt+8DHpLiS3GakC4MG5Lh51PH2D3sKEKvdYbaNeMeZMV0AJCRWudi u+nLY8vfaRvO6pXOwRYihRurDhX4KTLHcEbr/mlWF5soy4PXMIs1uemVyhHfgFqC2RUN Ikp0jzXD2H94uPS4I7N9BoQ8lKKxMHM8XK3+sCsmzWXoMpxAs8cDAJwuKtGpLTvTUccZ q0BKHgbWt4aKqwswUc0cSRFcwGgRIUHTuUE4U4c8kestjw466QURgHAIkIkrF6nzs0Q6 YTEQ== X-Gm-Message-State: AOJu0Yy4UXR+MRV1AtTNKB700WuQokQsvY24YTPxCx/IgT/lNLJdB191 ZeCiZwY/Zinq2xPUj1YasCe/kMtCjriJLYJtIqqtb/TfJ8E= X-Google-Smtp-Source: AGHT+IHvg9cUwvUp/7bVNpPb2nydyCn6/fPM2EqJIhbdxwwtnquHkIJng+tmCg1zKR6YYppcYZg6ljaJslkSn4WXS3g= X-Received: by 2002:a50:c308:0:b0:555:d3f3:2089 with SMTP id a8-20020a50c308000000b00555d3f32089mr648846edb.35.1703859757382; Fri, 29 Dec 2023 06:22:37 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Dec 2023 06:22:36 -0800 In-Reply-To: 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:277016 Archived-At: Stefan Monnier writes: >> Right. On the other hand, perhaps hitting the file system is to some >> extent expected once you start asking for libraries to be loaded. You >> only get the best case `(memq F features)' if that evaluates to `t'. > > For top-level uses of `require`, the performance impact is negligible. > But for `require`s used within functions (basically performing manual > autoloads), I'm worried that it could be problematic. > >> Personally, I don't have a good view of how common these problems are. >> Perhaps they are relatively uncommon, and it's too much to ask all users >> of `require' to pay a cost for added correctness in unusual cases. > > I don't either. That's why I preferred to define a new function, which > lets us gain some experience with it. We may later opt to merge (some > of) its functionality into `require`, of course. Makes sense to me, thanks.