From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: python.el, shell-send-region and exception handling Date: Fri, 09 Jan 2015 21:29:52 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420835423 20327 80.91.229.3 (9 Jan 2015 20:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 20:30:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 09 21:30:17 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Y9gCF-0000rq-KF for ged-emacs-devel@m.gmane.org; Fri, 09 Jan 2015 21:30:15 +0100 Original-Received: from localhost ([::1]:52128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9gCE-0007jX-VL for ged-emacs-devel@m.gmane.org; Fri, 09 Jan 2015 15:30:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9gCB-0007jP-UQ for emacs-devel@gnu.org; Fri, 09 Jan 2015 15:30:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9gC8-0005Um-C4 for emacs-devel@gnu.org; Fri, 09 Jan 2015 15:30:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:51903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9gC8-0005U0-5H for emacs-devel@gnu.org; Fri, 09 Jan 2015 15:30:08 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y9gC6-0000nQ-Qp for emacs-devel@gnu.org; Fri, 09 Jan 2015 21:30:07 +0100 Original-Received: from 193.106.183.18 ([193.106.183.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 21:30:06 +0100 Original-Received: from wavexx by 193.106.183.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 21:30:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181115 Archived-At: Is there a way to have python-shell-send-region (and friends) to detect uncaught exceptions at the python prompt? I would like to be notified somehow of python exceptions either in the minibuffer or by splitting the window and showing python's output. Currently, uncaught exceptions simply go unnoticed if you don't have the output buffer visible. This is done currently in python-mode.el, but I couldn't find an alternative in python.el. If I wanted to implement such a feature, how would you suggest to implement it? Thanks.