From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: ELPA submission: python-import Date: Sun, 31 Jul 2022 11:26:25 +0200 Message-ID: <87mtcpvdj2.fsf@fau.de> References: <87v8rguhry.fsf@gmail.com> <871qu3synn.fsf@posteo.net> <871qu3klyi.fsf@gmail.com> <87o7x6ke1h.fsf@fau.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: arstoffel@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 31 14:59:09 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oI8XE-0008PG-VR for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 14:59:09 +0200 Original-Received: from localhost ([::1]:60574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oI8XD-0002HQ-R0 for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 08:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI5Dh-0003pc-BK for emacs-devel@gnu.org; Sun, 31 Jul 2022 05:26:45 -0400 Original-Received: from mx-rz-1.rrze.uni-erlangen.de ([2001:638:a000:1025::14]:56383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oI5Df-0006wb-8P; Sun, 31 Jul 2022 05:26:45 -0400 Original-Received: from mx-rz-smart.rrze.uni-erlangen.de (mx-rz-smart.rrze.uni-erlangen.de [IPv6:2001:638:a000:1025::1e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mx-rz-1.rrze.uni-erlangen.de (Postfix) with ESMTPS id 4LwbVL3fj9z8vxt; Sun, 31 Jul 2022 11:26:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fau.de; s=fau-2021; t=1659259594; bh=rs7cgmyztM/ZQpEzRWiidqb/c5dv052pGoNPreD5hJ0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:To:CC: Subject; b=WFuGkp/NM3mH4H/Zo6QkwnX1hYELslqTiGEBbaTFdSfk402Uk0TUL9gpBevBZCWa0 tkrDURuQWvUldhhwkLSYncU2RYap7OEpCVUGifjLMUhiUqFqDYp5rcy5fYcc+rL5Vs fwdS2ty4jYcXI0hm6vBQyKEHm6CTBkUMqEBlk0IV1nlS+tTTlp14GHqD3MiGDSv9H5 MgPqVO71gKgyep5/A7Bc+okOgQYlvS9HPsyLC8XvCajHRBpdTAmQcvLWFeVzkDGDuS gg1v6YM5qeUuEdx8CX2yU6fqlwbV7USYsYmnurBXpkvr2ZjLCVzBEkVdbIQaoxo2w+ 6VAvoK7coGP8A== X-Virus-Scanned: amavisd-new at boeck5.rrze.uni-erlangen.de (RRZE) X-RRZE-Flag: Not-Spam X-RRZE-Submit-IP: 2003:f8:71e:d877:2fe8:532:db34:b88f Original-Received: from rhea (p200300f8071ed8772fe80532db34b88f.dip0.t-ipconnect.de [IPv6:2003:f8:71e:d877:2fe8:532:db34:b88f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: U2FsdGVkX1+zHF9hBpaOmoX+/2wLk7mu/1KHnHCEmuk=) by smtp-auth.uni-erlangen.de (Postfix) with ESMTPSA id 4LwbVH5SBzz8vxk; Sun, 31 Jul 2022 11:26:31 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Sat, 30 Jul 2022 23:32:04 -0400") Received-SPF: pass client-ip=2001:638:a000:1025::14; envelope-from=philip.kaludercic@fau.de; helo=mx-rz-1.rrze.uni-erlangen.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 31 Jul 2022 08:54:50 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292917 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I am not saying it isn't impossible, but if there is a dependency on > > project.el, it might make sense to raise the minimum version of ELPA's > > python.el? > > Is it necessary for any of these python files depend on project.el? > If these features such as python-import are added to python.el, > doesn't it eliminate the need for that? If the Augusto's propose features were to be added, then python.el would depend on project.el, at the very least because of this function: --8<---------------cut here---------------start------------->8--- (defun python-import--project-files () "Return a list of all Python files in the current project. If not in a project, just return the `default-directory'." (if-let (proj (project-current)) (seq-filter (lambda (s) (string-suffix-p ".py" s)) (project-files proj)) default-directory)) --8<---------------cut here---------------end--------------->8--- (where btw. `string-suffix-p' could be replaced by `file-name-extension'). The alternative would be to reimplement `project-files' in python.el, but I would consider that an undesirable duplication of effort that would most likely not do what the user would want.