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#57574: [PATCH] Add Python import management commands Date: Sun, 04 Sep 2022 13:18:09 +0200 Message-ID: <87zgff8k26.fsf@gnus.org> References: <87fsh7l9ct.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18646"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57574@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 04 13:19:25 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 1oUnev-0004i2-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 13:19:25 +0200 Original-Received: from localhost ([::1]:43322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUneu-000784-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 07:19:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUneY-00077o-JZ for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 07:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUneY-0001KN-AS for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 07:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUneY-0001XV-6a for bug-gnu-emacs@gnu.org; Sun, 04 Sep 2022 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Sep 2022 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57574-submit@debbugs.gnu.org id=B57574.16622903005853 (code B ref 57574); Sun, 04 Sep 2022 11:19:02 +0000 Original-Received: (at 57574) by debbugs.gnu.org; 4 Sep 2022 11:18:20 +0000 Original-Received: from localhost ([127.0.0.1]:43564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUnds-0001WL-Jr for submit@debbugs.gnu.org; Sun, 04 Sep 2022 07:18:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:56930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUndq-0001W7-NH for 57574@debbugs.gnu.org; Sun, 04 Sep 2022 07:18:19 -0400 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:Date:References: In-Reply-To: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=RR8hRZoWQ+Z8q2y2vajZdZMmsV5G3wdx5SKyMjhUVuw=; b=rh040MDU3jId1d2LRXSnr14EVa owSmFMhmjyH+FXtqDoSDDLVszGqtgtbBoxmN6cYPDEVcYk0MQgXwzjcSz8z94cq1JbzU+aW0AkR0E rZxSvB7zVuLb2PqbBG29dn5px0V2uz/B1DrIENiZapw074VPH41B1XgD5UumPUObmv38=; 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 1oUndi-0000nL-CU; Sun, 04 Sep 2022 13:18:12 +0200 In-Reply-To: <87fsh7l9ct.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 04 Sep 2022 12:30:58 +0200") X-Now-Playing: The Beatles's _The Beatles (2)_: "Yer Blues" 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:241497 Archived-At: Augusto Stoffel writes: > This patch adds a few commands to help managing import statements in > Python projects. (I submitted equivalent code some time ago as a > potential ELPA package, and it was noted that this fits better in > python.el itself.) Thanks; pushed to Emacs 29. > PS: Wouldn't it be handy also in other places to have a macro that > creates a temp buffer but doesn't switch to it? Maybe with signature > (with-temp-buffers (NAMES &rest BODY)). Hm... I can see how that can be useful in some cases, but it's probably not a very common usage pattern. But I think there's a real problem that people would just be confused and mistake that for something that does the same thing as with-temp-buffer.