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: Re: python.el, shell-send-region and exception handling Date: Tue, 23 Jun 2015 15:42:21 +0200 Message-ID: <5589623D.2060805@thregr.org> References: <87y4p0zxgc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1435066967 1437 80.91.229.3 (23 Jun 2015 13:42:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2015 13:42:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?B?RmFiacOhbiBFemVxdWllbCBHYWxsaW5h?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 23 15:42:47 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 1Z7OTL-0008Ns-O5 for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 15:42:43 +0200 Original-Received: from localhost ([::1]:45412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7OTL-0001Jn-2f for ged-emacs-devel@m.gmane.org; Tue, 23 Jun 2015 09:42:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7OT8-0001JW-Ox for emacs-devel@gnu.org; Tue, 23 Jun 2015 09:42:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7OT3-0004ir-Nj for emacs-devel@gnu.org; Tue, 23 Jun 2015 09:42:30 -0400 Original-Received: from e.thregr.org ([80.68.88.20]:43462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7OT3-0004iA-HC; Tue, 23 Jun 2015 09:42:25 -0400 Original-Received: from [2a02:27e8:20:9049:8edc:d4ff:fed6:5d5b] by e.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.85) (envelope-from ) id 1Z7OT0-0002wC-IJ; Tue, 23 Jun 2015 15:42:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 In-Reply-To: <87y4p0zxgc.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 80.68.88.20 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:187416 Archived-At: On 01/18/2015 02:31 AM, Fabián Ezequiel Gallina wrote: >> If I wanted to implement such a feature, how would you suggest to >> implement it? > > A simple way to achieve this would be to create a comint output filter > function. The `python-pdbtrack-comint-output-filter-function` is a nice > guide to start. You would check with a regexp for the occurrence of an > exception and act accordingly. > > I plan to add this to python.el. If you'd like your implementation to > be considered feel free to propose it, otherwise expect my approach to > land in the next few weeks. Hi again Fabián, did you eventually develop something in that regard?