From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#23609: 25.0.92; Python eldoc freeze Date: Wed, 25 May 2016 08:11:13 +0200 Message-ID: <57454201.10607@easy-emacs.de> References: <867fejo4g2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1464156516 5575 80.91.229.3 (25 May 2016 06:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 May 2016 06:08:36 +0000 (UTC) To: 23609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 25 08:08:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b5RzS-000365-S9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 May 2016 08:08:23 +0200 Original-Received: from localhost ([::1]:57539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5RzO-0006sb-FX for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 May 2016 02:08:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5RzB-0006ov-Vg for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:08:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5Rz7-0001YA-Qe for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Rz7-0001Y6-Mj for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b5Rz7-00014U-Ix for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 May 2016 06:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14641564764105 (code B ref -1); Wed, 25 May 2016 06:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2016 06:07:56 +0000 Original-Received: from localhost ([127.0.0.1]:36927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5Rz2-000148-HV for submit@debbugs.gnu.org; Wed, 25 May 2016 02:07:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5Rz0-00013w-By for submit@debbugs.gnu.org; Wed, 25 May 2016 02:07:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5Ryu-0001NH-1C for submit@debbugs.gnu.org; Wed, 25 May 2016 02:07:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Ryt-0001NC-Ub for submit@debbugs.gnu.org; Wed, 25 May 2016 02:07:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Rys-0006dT-ET for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:07:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5Ryn-0001K9-AU for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:07:45 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.135]:65171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5Rym-0001Is-Vc for bug-gnu-emacs@gnu.org; Wed, 25 May 2016 02:07:41 -0400 Original-Received: from [192.168.178.35] ([77.3.30.140]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MRhYD-1ayY660WWf-00SyxE for ; Wed, 25 May 2016 08:07:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.8.0 In-Reply-To: <867fejo4g2.fsf@gmail.com> X-Provags-ID: V03:K0:Q/lpuSa74VvdfODUI0wZ6yIbHygbnyzg1TwPV3lGa+a70KZAAbe YJQXH8x0glr9xMpZo3tx4sh2TUMG19sjlkGlBP08aw3nb0moqrlcIeDz6Er8G9MjxNfrqfr Y214TycAtZGUeFXSh6D7idsG2O2tVrLA4VcyZwdCcOTE2HAJeBNLycwrfZRYhNABDj/VpXW 8YqoO9+9IrjEC/sjwVB3g== X-UI-Out-Filterresults: notjunk:1;V01:K0:C6Vkb9ZhMwQ=:hdrdrsIjgaoxMT0bpKO9km N2pYddMxu1vvlRH/E9s2DCiaapJ9jcO2DvIinuijhvj90+QqJEvnSvwoNWvYyfx5Z9ZQxUNLW Mzolj+QgJJB987/mtOteOjqBqyyAg+6W1SvloS8OzWk98cEg1tx43wq3E9CNI+gOpH7tttX3/ SZQNm6lj3InCPpDqm3LF2TXmQs+n2n9ZB49krhV2SCH4LZHCxbvjlZlwdnITliLSMVd9QUsVC rL3X1xd2lR8oZeSMCrcySf9HMevwg5FWOOeVO7DwxQ3gnqVaYyDVsMZezijRDRc/Uwa96o4+b 8IBC53oeQqaZ+lYuU5jdWC9fY27nFEG0qD7KcQm6nkNvziZ+bA6FpXaZSWtJDBXmgBgTLrq1r cVGwDBRCRT8AgB/fJ6WuatEShE8O2+amLxmqwY3fVWU6Wb+GhXNJI/6guPJ4g6CvGfIpbWgrE In7RFp3lBwxpVbC78n/KAEUXUyGuy2wEi29kWA0VwhAeYR2rFFNpu+xnUOo8hDlNGeHSU8afH P0Nghi2z4sqe9NYRsU/ALMZdV6O50xxKQ7jwocLiZxXYU+jKc52dwesi66/OCILe1R4HL5ySD vri+ktjJa6Szl+eIsvnVIQlXTYgA5hDfhxod1FEqD9CJ76iPgXKHPVwN8yvm9yQfa5WxHA4Tb 1BSEsp6JOX+Tp2y2AEBwfQ3oYm4VfkJPwtfG4l3qtccBkoPBI52NNs20RgN4KoPJVdwz9c4cq eIa1YG4JDpDTWP4W X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118647 Archived-At: On 24.05.2016 17:34, Jules Tamagnan wrote: > This is an issue in relation to python and the interpetter shell. If > the python shell is running something and it is not done then when the > user goes back the the document that was being editted emacs will > freeze. If the user hits C-g then a keyboard interupt is sent to the > interpeter and the action that was being run is canceled. If the user > has the misfortune of using the mouse to click into another window then > emacs will not be able to be recovered (haven't tested that last part > entirely but the easiest way is to get back to working is to 'sudo > killall emacs') > > The issue seems to be with eldoc mode. If eldoc mode (or > global-eldoc-mode) is on then python.el tries to send something to the > interepter to get the definition of the symbol at the point and then > since something is running in the interpetter emacs will hang while > waiting for the interpetter to repond. This issue is most obvious in > emacs 25 because global-eldoc-mode is on by default. This causes loss of > data. > > This bug is easily reproducable from emacs -Q. > - run emacs -Q > - Open a file /tmp/test.py (or any other python file) > - C-c C-p to start the interpetter (it does not matter if the interpetter > is dedicated or not) > - in the interpetter write an expression that will not terminate > e.g. while True: 2+2 > e.g. (anything that plots in matplotlib) > - go back to /tmp/test.py and type anything. > - you will now be frozen > - type C-g to send a keyboard interupt to the interpetter > > repeating these steps without global-eldoc-mode does not cause any > issues > > The most obvious fix that I have found and use is to set > global-eldoc-mode to -1 on init. > > May reproduce this with current pretest GNU Emacs 25.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.25) of 2016-05-18