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#48452: 28.0.50; flymake for elisp does not respect `load-path` Date: Sat, 16 Jul 2022 12:12:40 +0200 Message-ID: <87fsj1tlgn.fsf@gnus.org> 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> <87r12mogh9.fsf@gnus.org> 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="34664"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Max Brieiev , 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 Sat Jul 16 12:13:29 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 1oCeng-0008ou-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 12:13:28 +0200 Original-Received: from localhost ([::1]:42944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCenf-0006YO-PY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 06:13:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCenG-0006XP-7F for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 06:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCenF-000559-Uc for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 06:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCenF-00080q-MP for bug-gnu-emacs@gnu.org; Sat, 16 Jul 2022 06:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jul 2022 10:13:01 +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.165796637430788 (code B ref 48452); Sat, 16 Jul 2022 10:13:01 +0000 Original-Received: (at 48452) by debbugs.gnu.org; 16 Jul 2022 10:12:54 +0000 Original-Received: from localhost ([127.0.0.1]:42966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCen8-00080W-Av for submit@debbugs.gnu.org; Sat, 16 Jul 2022 06:12:54 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:55896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCen4-00080G-5F for 48452@debbugs.gnu.org; Sat, 16 Jul 2022 06:12:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: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=PKxRJn2pNPQB5ib/F1ZiJDwrePT2e6Xfiaw9Tla1ee8=; b=WlRrOIVqJL0cImVzzQvPxzV4oY gTzXx06C0Sf9Xbb4xZgOCeMbC6auyCVxZzwr4q7cY5lyzbfrq+Y4qG/j1B3TQ58LWknsnOeYg8Kph oiGAozL+bJsRxpylBt0sCJT7RH8A1JTukQVmFyCq76frOvKp7Er7pL9zEaXAHsaPcFz4=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCemv-0000lw-CY; Sat, 16 Jul 2022 12:12:43 +0200 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Fri, 15 Jul 2022 11:03:35 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEV0iM+otOBQZroz PHv///9VtdMmAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YHEAoKAW6PhHoAAAF+SURBVDjLhZPhsQMh CITBNACmAdQGcl7/vb0FTTR38yZzP6J8wV1QiImTmpRUKtVcMnbkn4c3YA4Me4DgDhKBD+AZqirK opmZi3BWjYiQMhZFcF7R+D972IFiiYzEPBbyziCtYtnFJTT8DIK4VngAqMuVmzEKc3fgGVJ/AYnK I+wFbsAWsAXYfzgqB6gA9AWic7aBMOcNWGAcRegLeiXwdAGoOqT3jLDfSuOeXlegqaf+6A0eLuBR Gp3plfUL4D6a9vx6lgTgbY4CIS10PI+ngQ6Q3yBTObnX/rB5DTavycUhbecdNG4ElTTr+mhol56P J9fp0kgmcGk+XXyCMFdU7Ky9QUdHU220jIUTwq2eMEsIZ5ogM8Szi++g+P10OXJB5ZDfAaQIQXxl AF5Aa1ysA/ExGEDwpL9AZHAuUXAGAohX8gHzHbrOAuUGeAH+DyCjD+BP9Atw7BPbyhji74nbAM1B i/HfwRz/X6DKBcyjdKv8DqJXa8ovIIY58RX8AbXqWKGE9pc/AAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIyLTA3LTE2VDEwOjEwOjAwKzAwOjAw4ES4KAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNy0x NlQxMDoxMDowMCswMDowMJEZAJQAAAAASUVORK5CYII= X-Now-Playing: Xeno & Oaklander's _Hypnos_: "Insomnia" 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:237159 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > When I was first coding this backend, I had that expectation too. > But it's not very useful, as you normally, when developing an elisp > file in a package, you want to be made aware of the potential compilation > problems arising when compiling that file in a much simpler environment, > very often the Emacs -Q environment where Makefiles usually byte-compile= =20 > files. That's a good point. > And there's also the question of security. Flymake runs compile-time=20 > code every time by simply modifying the buffer. So being conservative > here is also a good idea because of that. Speaking of which, I was surprised that flymake adds "./" to the load path -- we never use that in real Emacsen exactly because of security considerations (we don't want to pick up stray files when working under /tmp/, for instance).=20=20 > 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=20 > 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= =20 > the flymake-elisp-byte-compile backend. I think the second is safer. An option here would be nice, yes. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no