From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#68559: [PATCH] Improve Python shell completion Date: Fri, 16 Feb 2024 12:45:05 +0100 Message-ID: <8B4172D0-FC31-4437-99C4-683C892C5F86@gmail.com> References: <6BAFD8BF-8F18-4D9F-9DB3-A185AEF2EBCA@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4089"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Liu Hui , Eli Zaretskii , 68559@debbugs.gnu.org To: kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 16 12:47:16 2024 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 1rawgT-0000rC-VA for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Feb 2024 12:47:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rawg1-0000DU-UF; Fri, 16 Feb 2024 06:46:45 -0500 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 1rawg0-0000CK-2g for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 06:46:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rawfz-00016J-R4 for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 06:46:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rawgI-0001CO-6F for bug-gnu-emacs@gnu.org; Fri, 16 Feb 2024 06:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Feb 2024 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68559 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68559-submit@debbugs.gnu.org id=B68559.17080839964566 (code B ref 68559); Fri, 16 Feb 2024 11:47:02 +0000 Original-Received: (at 68559) by debbugs.gnu.org; 16 Feb 2024 11:46:36 +0000 Original-Received: from localhost ([127.0.0.1]:57948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rawfr-0001BZ-P0 for submit@debbugs.gnu.org; Fri, 16 Feb 2024 06:46:36 -0500 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:52545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rawfo-0001BK-4S for 68559@debbugs.gnu.org; Fri, 16 Feb 2024 06:46:34 -0500 Original-Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d0d95e8133so23150231fa.1 for <68559@debbugs.gnu.org>; Fri, 16 Feb 2024 03:46:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708083907; x=1708688707; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=OOJc8nHT6u848VoFH6Rh38N19DeVnzfuTCNHhroT7Os=; b=WnuQToV1bWIah6Afd+xlqG+8Jdt9/sEzK5QLkW+aBpNdEAkCjzvwkS8JoN3qiDzEaY 74puhHbAPpuXN5e48rcXxeory9k7hj2qb0qJ7o4G8pj1xDjn9GBczC0NUyXQiPSRGuAU 8m6CfL7G41kcL0jOnXr9IErmJorsnCcOCkBVUrLiJaeGkoN40zv/CWnzV7uu2R7XfKCe WnUHk8V0rKsGoPQfzzIbNT2TKU1icSZ9rvL4scdU5Gx/kMYVGKJqzPMSVZP02P98ZMgu MYapK8JbzK/+Vq4U2JsEE97rNjdZRQOdeV27nkxMj/TG8PdKxnDxukJ6SzmQyZ67lJjD YkgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708083907; x=1708688707; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OOJc8nHT6u848VoFH6Rh38N19DeVnzfuTCNHhroT7Os=; b=rcMadLXAl0MSNIcD6gPAO+NS0UI64dj1NANMMVpqi9AyZ3pLz+RWMd+YC964da++EJ RVCC2z6CacmIei2wm3xuufQqV1wmHiNPntIPDdY7H9HDU94VrD+C86b7QI4ZKak4HEB7 TKEuk6UfoPBJU/pwH8UWqFM5k8sBLHKvxS+Rn+gbAsQoF7snX7/DWDmOYh3j6wnxsSWt uAR5Ve5i2mEg888f3qStkkfZ6z1j11mihOf8U6DyKktBxs/oQ1qumhOBduIgdepQGj8D ceU6jd3CdaAqxrTDxf4PZexarZXjd0rdH8L7Ml9MhydTxZX46kWUQyK4vI3EpdttzfwF 3bXg== X-Forwarded-Encrypted: i=1; AJvYcCX6G0Pc77IYtOZAnaVEgr9uye7dkKoSshDwUK4POY6eenkYHG7P9MyYhAG+K3LQXK7EZZsI0TfRKz9FV3Cci820MAL/yy0= X-Gm-Message-State: AOJu0YxfrhjDn6g0Xooa4xA5AM9zlAOzcG4s/zamgx0yPEDxVBeDmvR2 RunzTEKiHiYYqucIh5vqIibbyNMt8Yvy+LMgJEeQ8/WDyxcE8zD/ X-Google-Smtp-Source: AGHT+IHT5kwZ3DL4rwSP0icyXWsvbaRQT9cgq9+Cxd44+JHdzymEz8Y6DxgyWUupXse/v+2mslvTkw== X-Received: by 2002:a19:9101:0:b0:511:4683:d537 with SMTP id t1-20020a199101000000b005114683d537mr2880331lfd.55.1708083906416; Fri, 16 Feb 2024 03:45:06 -0800 (PST) Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id f15-20020ac2532f000000b005119ca65e29sm577973lfh.139.2024.02.16.03.45.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2024 03:45:06 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:280099 Archived-At: 16 feb. 2024 kl. 10.34 skrev kobarity : > This is caused by the fact that the input is echoed back on MacOS > Python. Right, that bug needs to be fixed as well, but the echo problem existed = prior to the change that broke the tests. An alternative might be to disable the tty echo altogether. If I do it = right after process creation then it has no effect; presumably Python or = its readline module turns on echo just a bit later on. Anyway, running import tty tty.setraw(0) in the python shell seems to put it right, with working completion and = the annoying echo gone. > So one workaround would be to remove the echoed back string before > parsing as JSON. Yes, either that or turning off echo in the tty.