From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10167: 23.3; python.el code execution does not add the buffers directory to the pythonpath. Date: Fri, 27 Jan 2012 15:50:20 +0800 Message-ID: <877h0dd1oj.fsf@gnu.org> References: <87k46h99nn.wl%arne_bab@web.de> <1410245.gZC2tulmG3@fluss> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327650703 20691 80.91.229.12 (27 Jan 2012 07:51:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2012 07:51:43 +0000 (UTC) Cc: 10167@debbugs.gnu.org To: Arne Babenhauserheide Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 27 08:51:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rqgar-0000hh-Im for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jan 2012 08:51:33 +0100 Original-Received: from localhost ([::1]:39126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqgar-0003UV-3c for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jan 2012 02:51:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqgao-0003UN-8x for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 02:51:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqgak-0002Me-Et for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 02:51:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqgak-0002MX-A3 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 02:51:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RqgbK-00075R-0Q for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2012 02:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jan 2012 07:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10167 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10167-submit@debbugs.gnu.org id=B10167.132765066927167 (code B ref 10167); Fri, 27 Jan 2012 07:52:01 +0000 Original-Received: (at 10167) by debbugs.gnu.org; 27 Jan 2012 07:51:09 +0000 Original-Received: from localhost ([127.0.0.1]:46083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqgaT-000747-AN for submit@debbugs.gnu.org; Fri, 27 Jan 2012 02:51:09 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35989 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqgaQ-00073w-6K for 10167@debbugs.gnu.org; Fri, 27 Jan 2012 02:51:07 -0500 Original-Received: from [155.69.17.161] (port=44722 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RqgZn-0005I1-OZ; Fri, 27 Jan 2012 02:50:28 -0500 In-Reply-To: <1410245.gZC2tulmG3@fluss> (Arne Babenhauserheide's message of "Sun, 11 Dec 2011 20:57:21 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56069 Archived-At: Arne Babenhauserheide writes: > That=E2=80=99s quite inconvenient=E2=80=A6 would it not be cleaner to rem= ove "" before=20 > importing emacs.py and add the buffer dir afterwards?=20 > > For anything which is not emacs.py it is clear that it will be run.=20 > Alternatively add a new command which adds the buffer-dir - as I did for= =20 > python-send-buffer. If you are not about having cwd in the python path, set python-remove-cwd-from-path to nil.