From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Brieiev Newsgroups: gmane.emacs.bugs Subject: bug#48452: 28.0.50; flymake for elisp does not respect `load-path` Date: Fri, 15 Jul 2022 14:53:53 +0300 Message-ID: <87cze6fv72.fsf@gmail.com> References: <8735unafob.fsf@gmail.com> <877d4hs084.fsf@gnus.org> <87v8s1untg.fsf@gmail.com> <874jzlp12v.fsf@gnus.org> <87wnchc75r.fsf@gmail.com> <87ilnzaa49.fsf@gnus.org> <87cze7780j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 48452@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 13:55:42 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 1oCJv1-0004yw-0Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 13:55:39 +0200 Original-Received: from localhost ([::1]:50862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCJv0-0003iH-16 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 07:55:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCJuR-0003Vj-8Y for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 07:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCJuQ-0004fm-Uh for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCJuQ-0002e2-JO for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 07:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Brieiev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 11:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 48452-submit@debbugs.gnu.org id=B48452.165788604410077 (code B ref 48452); Fri, 15 Jul 2022 11:55:02 +0000 Original-Received: (at 48452) by debbugs.gnu.org; 15 Jul 2022 11:54:04 +0000 Original-Received: from localhost ([127.0.0.1]:39725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCJtU-0002cS-HS for submit@debbugs.gnu.org; Fri, 15 Jul 2022 07:54:04 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:41552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCJtR-0002bx-9y for 48452@debbugs.gnu.org; Fri, 15 Jul 2022 07:54:02 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id q9so6412768wrd.8 for <48452@debbugs.gnu.org>; Fri, 15 Jul 2022 04:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=XsX7KYlOnWe05rPVn3PQYlYuVeC1mYDOEP401gqkqSw=; b=SfbF2PGG2LmZxgbwfqvG7gaBw2PvXgcpJf14juglYMbPeQ87uETEYDSlBB0ensLiR+ Ctu/W/HpKCNScL5MSHno74qwuAgVZ7XQg35F4jroc/qpMRtoaWmd+q+h9zwJyrzo9CxZ dVREYEgyOsKMSPiU9svRlvigOUwE/tO0Jwwu0VEpysNAqn4cL3FUxvtXuvBKxNIpLUYK ZChjhcskUypi2pFgiFtFiCfyxYZeBiRuLHKDSDDpsT1gUuHDv4RSWTk+TJM7YB+mq8uM ApfzUOEqcF7iT6Ih+wRKJZRSW5cyGZebYn3Bw4SYz9gzcawxA/zdPb8F5C+CieTEuE21 7MTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version:content-transfer-encoding; bh=XsX7KYlOnWe05rPVn3PQYlYuVeC1mYDOEP401gqkqSw=; b=SuILm1s9h1wdZhLOKE+1nLSLsut9JnTrKmHcLmTzWv6DgJr4BbTTyVJpuHmZhLrTRJ 6RkruQcTlqqbfUurxPFZ50b7yy5kK92ObK4CCv5bcPPH5gQ9zyoP7m1lw+O/aeUA/Aeh zYW5exQL+Mn3DRoriEU8zGdzlXYYo+6kYsMbuxhrJhL+rtTqz5N+CEyw43sLo4+f85am I3I+xYYMHLxjJvVgE0a70AbGSOzBViDLD4OmjJqipcKI2fKmqDx484gj6lij2KKGaf9O a57L5V2xrlVtv/jYxuaz41wPnujYf6VMOM0xZ89UbaHkQ7GW8OmcOLrfKbG7PhBrFI2D f6Dg== X-Gm-Message-State: AJIora/hg1HcMNbTrtEKr4EPEUUIr4iJDwja3jw3HxuHRYbCa6bIxAf2 EzGbklbdCfkT90DkwkXk9ESdG+YXuQU= X-Google-Smtp-Source: AGRyM1socb1SKA/GyRIY34tXb1B3m0zmRpFbrmV+nkQ1JM7hpZkrl6MmfvHyZj/hrw+n29d4axB87g== X-Received: by 2002:a05:6000:1849:b0:21d:9ad7:f27f with SMTP id c9-20020a056000184900b0021d9ad7f27fmr11879041wri.445.1657886034866; Fri, 15 Jul 2022 04:53:54 -0700 (PDT) Original-Received: from thinkmax (host-176-37-1-68.b025.la.net.ua. [176.37.1.68]) by smtp.gmail.com with ESMTPSA id r124-20020a1c4482000000b003a2e2a2e294sm5280363wma.18.2022.07.15.04.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 04:53:54 -0700 (PDT) In-Reply-To: <87cze7780j.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 14 Jul 2022 21:29:32 +0100") 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:237086 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > But it could make sense to add ~/.emacs.d/elpa/* to the variable, if the > package you're developing somewhere else has a dependency on other Elpa > packages. Yes, to me it seems very common to have a depandency on an Elpa package, so I was wondering why flymake was complaining about requiring installed package. > Or maybe, Max, you can just set this variable it in your file-local > variables or the dir-locals.el of the package you're developing. This could work, but doesn't it mean that with each new version of a dependency, I'll have to change my dir-locals.el, because the version of the installed package is part of its file path? > Anyway, because the directories under ~/.emacs.d/elpa are somewhat > special and/or security-vetted it _could_ make sense to add them to > the default value of the variable. This would amount to more or less > the same as calling the underlying process with `-f > package-initialize` I think. > > But I'm still not sure this should be the default, or merely an option > to the flymake-elisp-byte-compile backend. I think the second is > safer. Both possibilities are fine to me. Another option could be to parse the header section of the current buffer for `Package-Requires:' clause, and then automatically add listed dependencies to the `elisp-flymake-byte-compile-load-path'. In this case, flymake would still had operated in quite restricted environment, but at the same time it'd recognize package dependencies. Would that make sense?