From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57885: [PATCH] Add a command to restart the Python shell Date: Sat, 17 Sep 2022 20:15:50 +0300 Message-ID: <83a66x2a7t.fsf@gnu.org> References: <875yhmapwr.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29399"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57885@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 19:17:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZbRG-0007Vc-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 19:17:10 +0200 Original-Received: from localhost ([::1]:47464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZbRF-0007YL-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 13:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZbR8-0007Wu-Rr for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 13:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZbR8-0000eS-Gq for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 13:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZbR8-0007AN-5F for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 13:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57885 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57885-submit@debbugs.gnu.org id=B57885.166343496227452 (code B ref 57885); Sat, 17 Sep 2022 17:17:02 +0000 Original-Received: (at 57885) by debbugs.gnu.org; 17 Sep 2022 17:16:02 +0000 Original-Received: from localhost ([127.0.0.1]:47083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZbQ9-00078c-Fw for submit@debbugs.gnu.org; Sat, 17 Sep 2022 13:16:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZbQ7-00078M-0K for 57885@debbugs.gnu.org; Sat, 17 Sep 2022 13:16:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZbQ1-0000bt-QD; Sat, 17 Sep 2022 13:15:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gFYHrZzQFZLnweZ7VnBZ53ZIbrsT47tp674i6r/9tYQ=; b=bBmIDNpIzPL+ 8daIYnGAbjDCNVfrKdxt8MSGbd85W74jLT5cRIP4Qz5jY1ur5N0nRgsfEaWbyVUuU839/4IMxAjxC /7SOPDmx9uQwwnbL/I8e9ImlXE2f5YHnJrYXGSZIrVJaIVdWfl/A6eIw9JRCMRQXTdD+7EDrLAuhx HYjouyXGL9AP4Om0ezsLNUPABQI6fTXMks1h8v0BSsvYoIGxEV9M/k+z8qPVPbLfoOP08OKFn4KER FKjiokLcZo8dG3xAkC4JouXYgB31zCClyAoUKNKGCZXjrq3tVvDztgpjGEPllmhMjoOLj+50W+WFi KBxm/e59l8EFNza7uoaTNw==; Original-Received: from [87.69.77.57] (port=1509 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZbPy-0004nS-E8; Sat, 17 Sep 2022 13:15:51 -0400 In-Reply-To: <875yhmapwr.fsf@gmail.com> (message from Augusto Stoffel on Sat, 17 Sep 2022 19:09:40 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242889 Archived-At: > From: Augusto Stoffel > Date: Sat, 17 Sep 2022 19:09:40 +0200 > > +(defun python-shell-restart (&optional show) > + "Restart the Python shell. > +With a prefix argument, also SHOW the buffer." Our style for the second sentence is Optional argument SHOW (interactively, the prefix argument), if non-nil, means also display the Python shell buffer. That is, document the argument both for calls from Lisp and for interactive invocations. Thanks.