From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 09 15:05:29 2015 Received: (at submit) by debbugs.gnu.org; 9 Feb 2015 20:05:29 +0000 Received: from localhost ([127.0.0.1]:38571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKuaG-0005Hi-Ae for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:05:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54445) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YKuaE-0005HQ-NH for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:05:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKua8-0005Sw-Eu for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:05:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKua8-0005Ss-By for submit@debbugs.gnu.org; Mon, 09 Feb 2015 15:05:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKua7-0006gf-42 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:05:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKua0-0005MR-Q2 for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:05:19 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKua0-0005L5-IY for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 15:05:12 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1910C20F06 for ; Mon, 9 Feb 2015 15:05:10 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 09 Feb 2015 15:05:10 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=Z6yE63rNnIIjV4pVl8jqfB3g0IQ=; b=Ims2 EpjPQB+m7FRz2vUANs08vIc4Zw/DILulwx+YGLl5R2VAvIPi016B6/0fZAzOIlX/ sy2dDbzTD+xQrxCZY+aWXKgZRxPjuw6It9pcBGXHaE2XL+O16k4DnfIGP83OAVzM fOemIXezUxvR0auQt3Oell58dL8d4C7p1/omPJk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=Z6yE63rNnII jV4pVl8jqfB3g0IQ=; b=bZcje7a7USz3TBZ+tPgZLALe5TLQVxGe0t+CUytb+QT ZXRHyIn06pr0OMdkCBUcN/VTNPSLX+WkiDe6XiKnsh66In1xEtoozJ7ocPFbvQOP ZO2FKrLElAtCEDH4KWNa39VkLrxQlx1rsxL9q1PPbZDRxdHr71xRXJ+Ktg5nU+mk = X-Sasl-enc: +/Vzln5PHBaOzPfdzy7hIDIQo3KfdK2mfoZYunHChgpK 1423512309 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id 6CF2FC0028C for ; Mon, 9 Feb 2015 15:05:09 -0500 (EST) Received: from ip6-localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YKuZx-0002v1-7E for bug-gnu-emacs@gnu.org; Mon, 09 Feb 2015 12:05:09 -0800 From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Inferior-python-mode buffer can't be killed if process is dead Date: Mon, 09 Feb 2015 12:05:09 -0800 Message-ID: <874mqusvey.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi. Currently emacs requires the inferior python process to exist to be able to kill that buffer. If the inferior process exits earlier for any reason, it's impossible to kill the buffer. Recipe: 1. emacs -Q 2. M-x python 3. exit() [ this exits the session, killing the inferior process ] 4. C-x k enter [ Error! "No inferior Python process running" ] This happens because a cleanup handler fails. It needs to explicitly ignore this particular failure. Wrapping the contents of python-shell-font-lock-kill-buffer() into (ignore-errors ....) is one way to fix this: (defun python-shell-font-lock-kill-buffer () "Kill the font-lock buffer safely." (ignore-errors (python-shell-with-shell-buffer (when (and python-shell--font-lock-buffer (buffer-live-p python-shell--font-lock-buffer)) (kill-buffer python-shell--font-lock-buffer) (when (derived-mode-p 'inferior-python-mode) (setq python-shell--font-lock-buffer nil)))))) It should probably be more specific than a blanket ignore-errors, but the maintainers should decide what they want here. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 11 22:42:19 2015 Received: (at 19823-done) by debbugs.gnu.org; 12 Feb 2015 03:42:19 +0000 Received: from localhost ([127.0.0.1]:40473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLkfS-0002lA-Dj for submit@debbugs.gnu.org; Wed, 11 Feb 2015 22:42:18 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:39961 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YLkfP-0002l1-Uu for 19823-done@debbugs.gnu.org; Wed, 11 Feb 2015 22:42:16 -0500 Received: from [190.246.172.180] (port=47280 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YLkfP-0001ix-4K for 19823-done@debbugs.gnu.org; Wed, 11 Feb 2015 22:42:15 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 19823-done@debbugs.gnu.org Subject: 25.0.50; Inferior-python-mode buffer can't be killed if process is dead Date: Thu, 12 Feb 2015 00:42:11 -0300 Message-ID: <87y4o3eqy4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19823-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Fixed at revno da726ad in the master branch. Thanks, Fabi=C3=A1n. From unknown Tue Jun 24 15:40:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Mar 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator