From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Olav Fosse Newsgroups: gmane.emacs.bugs Subject: bug#63600: Prevent python-inferior-mode from using $PAGER Date: Fri, 19 May 2023 22:29:37 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_62FF12EB-DCFA-4197-919A-C36E73647A2C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39140"; mail-complaints-to="usenet@ciao.gmane.io" To: 63600@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 10:13:31 2023 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 1q0HiU-000A2D-LZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 10:13:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0Hi7-0002Bc-I4; Sat, 20 May 2023 04:13:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0Hi3-00028P-I0 for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 04:13:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0Hi3-0000JC-Ad for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 04:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0Hi2-0001Ka-In for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Olav Fosse Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 May 2023 08:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63600 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16845703695081 (code B ref -1); Sat, 20 May 2023 08:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2023 08:12:49 +0000 Original-Received: from localhost ([127.0.0.1]:57802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0Hho-0001Js-Jz for submit@debbugs.gnu.org; Sat, 20 May 2023 04:12:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q06jd-0006FW-W6 for submit@debbugs.gnu.org; Fri, 19 May 2023 16:29:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q06jd-0006o8-My for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 16:29:57 -0400 Original-Received: from st43p00im-zteg10063401.me.com ([17.58.63.175]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q06ja-0007IF-IK for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 16:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=olavfosse.no; s=sig1; t=1684528187; bh=9tgdtLU3NYGqW+sWoKmPnjHBw5nDzjsvbP1EnEu54hE=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=mEZHsfBwnnI6+MT4wECBKEi0PRS44j9LcYyBA8z2/pVFBdGh8UC/OKvKCVeOVM/PQ +N/ban1v5NkdXWNM8zmtfHdytk6BRACtM2h6/Qmii/W3nd4Cl0APerMsDoRTaxin0P gbjGzlIdQKzDUrXUwygp6cfvSubt385dXg+oJRugN1Joyr1n3/F/nqWcvYScm6voYB W7ER99T9CFXjVuhRnhfoL1iWgF/HsMS0guuQny+SwgFdrYzr3gRG1zoEr4Fyyw0lyc 7moxFltPmKsMEAns21XacLUGQWZ0vz1FRyZN4tl027obOkS1JcYyfuxOLm0qAnHQVv tzCNAUl+06q9g== Original-Received: from smtpclient.apple (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-zteg10063401.me.com (Postfix) with ESMTPSA id 71EAAC61150 for ; Fri, 19 May 2023 20:29:47 +0000 (UTC) X-Mailer: Apple Mail (2.3731.500.231) X-Proofpoint-ORIG-GUID: D55JmFeDV71a60cK68algcFyw4F_PJu6 X-Proofpoint-GUID: D55JmFeDV71a60cK68algcFyw4F_PJu6 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.1.170-22c6f66c430a71ce266a39bfe25bc2903e8d5c8f:6.0.573, 18.0.572, 17.11.170.22.0000000 definitions=2023-05-17_02:2023-05-17_02, 2020-02-14_11, 2023-02-09_01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 clxscore=1030 suspectscore=0 mlxlogscore=483 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2305190176 Received-SPF: pass client-ip=17.58.63.175; envelope-from=post@olavfosse.no; helo=st43p00im-zteg10063401.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 20 May 2023 04:12:47 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262035 Archived-At: --Apple-Mail=_62FF12EB-DCFA-4197-919A-C36E73647A2C Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii This patch prevents python-inferior-mode from using $PAGER. $PAGER is typically set to an interactive program, such as less(1) which causes problems when ran inside of a comint buffer. --Apple-Mail=_62FF12EB-DCFA-4197-919A-C36E73647A2C Content-Disposition: attachment; filename=0001-Prevent-python-inferior-mode-from-using-PAGER.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Prevent-python-inferior-mode-from-using-PAGER.patch" Content-Transfer-Encoding: quoted-printable =46rom=20d58c04d661ca415da41bc09c52bbce2bdae93cc1=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Olav=20Fosse=20=0ADate:=20= Fri,=2019=20May=202023=2020:33:28=20+0200=0ASubject:=20[PATCH]=20Prevent=20= python-inferior-mode=20from=20using=20$PAGER=0A=0A---=0A=20= lisp/progmodes/python.el=20|=2011=20+++++++++--=0A=201=20file=20changed,=20= 9=20insertions(+),=202=20deletions(-)=0A=0Adiff=20--git=20= a/lisp/progmodes/python.el=20b/lisp/progmodes/python.el=0Aindex=20= 4f57eda3cfc..9304479094e=20100644=0A---=20a/lisp/progmodes/python.el=0A= +++=20b/lisp/progmodes/python.el=0A@@=20-2563,8=20+2563,15=20@@=20= python-shell-internal-buffer-name=0A=20=20=20:type=20'string=0A=20=20=20= :safe=20'stringp)=0A=20=0A-(defcustom=20python-shell-interpreter-args=20= "-i"=0A-=20=20"Default=20arguments=20for=20the=20Python=20interpreter."=0A= +(defcustom=20python-shell-interpreter-args=20"-i=20-c=20\"import=20= pydoc;pydoc.pager=20=3D=20pydoc.plainpager;del=20pydoc\""=0A+=20=20= "Default=20arguments=20for=20the=20Python=20interpreter.=0A+=0A+-c=20= \"import=20pydoc;pydoc.pager=20=3D=20pydoc.plainpager;del=20pydoc\"=0A= +makes=20it=20so=20that=20Python=20will=20print=20large=20messages=20= directly=20to=20the=0A+buffer,=20as=20opposed=20to=20using=20$PAGER.=20= This=20is=20useful=20because=20$PAGER=0A+is=20typically=20set=20to=20an=20= interative=20program,=20such=20as=20less(1),=20which=0A+will=20not=20= work=20properly=20when=20ran=20inside=20`inferior-python-mode'.=0A+"=0A=20= =20=20:type=20'string)=0A=20=0A=20(defcustom=20= python-shell-interpreter-interactive-arg=20"-i"=0A--=20=0A2.39.2=0A=0A= --Apple-Mail=_62FF12EB-DCFA-4197-919A-C36E73647A2C--