From unknown Sun Jun 15 09:01:36 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4822: run-python in progmodes/python.el hardcodes interpreter args Reply-To: Ole Laursen , 4822@debbugs.gnu.org Resent-From: Ole Laursen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 28 Oct 2009 16:40:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4822 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125674742130697 (code B ref -1); Wed, 28 Oct 2009 16:40:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 28 Oct 2009 16:30:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9SGUJAD030694 for ; Wed, 28 Oct 2009 09:30:21 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3BPf-00089v-7t for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3BPa-00087X-5Y for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:18 -0400 Received: from [199.232.76.173] (port=35100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3BPa-00087O-1R for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:14 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]:55959) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3BPZ-0006a1-Pj for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2009 12:30:13 -0400 Received: by yxe29 with SMTP id 29so808394yxe.14 for ; Wed, 28 Oct 2009 09:30:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.167.21 with SMTP id u21mr425946ano.56.1256747411871; Wed, 28 Oct 2009 09:30:11 -0700 (PDT) Date: Wed, 28 Oct 2009 17:30:11 +0100 Message-ID: From: Ole Laursen To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Hi! python.el hardcodes the arguments passed to the Python shell in run-python on line 1555. Suggested fix: use python-which-args which is defined in python.el (without documentation by the way). My problem: I'm trying to make the built-in Python repl work with Django (Ruby on Rails clone that's very popular in the Python community). With Django, you can get a shell by running python manage.py shell in the root of a project. It does some magic to setup things correctly. So I've written a small snippet to locate the manage.py file and use the above command if found, but this is completely defeated because run-python insists on appending -i which the manage.py script doesn't recognize. -- Ole Laursen http://www.iola.dk/ From unknown Sun Jun 15 09:01:36 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4822: Fixing the bug doesn't help me anyway Reply-To: Ole Laursen , 4822@debbugs.gnu.org Resent-From: Ole Laursen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 29 Oct 2009 10:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 4822 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 4822-submit@emacsbugs.donarmstrong.com id=B4822.125681028011261 (code B ref 4822); Thu, 29 Oct 2009 10:05:05 +0000 Received: (at 4822) by emacsbugs.donarmstrong.com; 29 Oct 2009 09:58:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-yx0-f190.google.com (mail-yx0-f190.google.com [209.85.210.190]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9T9vwr0011245 for <4822@emacsbugs.donarmstrong.com>; Thu, 29 Oct 2009 02:57:59 -0700 Received: by yxe28 with SMTP id 28so1528638yxe.19 for <4822@emacsbugs.donarmstrong.com>; Thu, 29 Oct 2009 02:57:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.25.19 with SMTP id c19mr782310anj.84.1256810272891; Thu, 29 Oct 2009 02:57:52 -0700 (PDT) Date: Thu, 29 Oct 2009 10:57:52 +0100 Message-ID: From: Ole Laursen To: 4822@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Hi, I still think it's a bug, but even when I fix it, I can't get my particular use case to work anyway. It turns out to be easier to replicate what "python manage.py shell" is doing inside Emacs by setting a couple of environment variables. So you might want to close the bug again. Sorry. -- Ole Laursen http://www.iola.dk/ From rgm@gnu.org Fri Oct 30 19:25:55 2009 Received: (at control) by emacsbugs.donarmstrong.com; 31 Oct 2009 02:25:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9V2PrDD031609 for ; Fri, 30 Oct 2009 19:25:54 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N43f7-0001J6-9e; Fri, 30 Oct 2009 22:25:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19179.41008.952237.216417@fencepost.gnu.org> Date: Fri, 30 Oct 2009 22:25:52 -0400 From: Glenn Morris To: control Subject: control severity 4724 wishlist severity 4743 wishlist tags 4743 wontfix reassign 4759 emacs,ns reassign 4765 emacs,ns reassign 4774 emacs,ns severity 4680 minor severity 4833 wishlist severity 4829 minor reassign 4831 emacs,ns severity 4827 minor close 4821 close 4822 close 4778 severity 4804 wishlist reassign 4836 emacs,w32