From unknown Sat Jun 21 05:16:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53219: 27.2; shell-mode output is stolen by python-eldoc Resent-From: awrhygty@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2022 18:03:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 53219@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164201056529370 (code B ref -1); Wed, 12 Jan 2022 18:03:04 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jan 2022 18:02:45 +0000 Received: from localhost ([127.0.0.1]:59021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7hxN-0007dY-3w for submit@debbugs.gnu.org; Wed, 12 Jan 2022 13:02:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:32988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7hqg-0005CG-IU for submit@debbugs.gnu.org; Wed, 12 Jan 2022 12:55:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7hqc-0000iR-HD for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 12:55:50 -0500 Received: from mail-sgaapc01olkn2094.outbound.protection.outlook.com ([40.92.53.94]:39649 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7hq2-0004gE-3P for bug-gnu-emacs@gnu.org; Wed, 12 Jan 2022 12:55:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nhYOk+nf6onGRJlMvnHBQHZhe0QeNTOhDtDEbdDaFSCrTl/1WueS6qjmd5p1YPUntDPlKgx1/JxuKcR59rhh0kEAijNRSMtnE1iABVvoXYmROtooBzKCTxksafxg4eDU8oaug2b0VAzI2BX2PZK9i3QhteM85D1i+qGw2TzzBXNfgAJDvraiviiv+rjnbaO4n8XAc3Gup6b/2Lzjv/XG5apNfhqeAf/BmLFSW9U4hIfUOA7737Y4LibAAVmdl07sYKf2ndA8mzH5bCTP4++h0t0iWudc06aaoPxWPllOfYEfM1JRoxPqNXMzwjN4KaDuAkDdABAfVPKWg2NJXQ9g3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RUn4BCyvOd6U5J+IyhxmqdPHGF9L7w2+FKbwcBCqbiY=; b=jCcx+4mx0P7/x9IWiKQgmf6E7EdRXWRFwYQomXcwEaEwcqRsnzNT3w3Nu5yep/0MoCQ0eIWD/PTtlC+ZotyGEA6LCVpQF4PzNjwOSVZre2I8z/UX/Wkz8cjHSldgKPYLKGZ1JWS7daO8Dv8Vk5KVRBHTiTynAVjl4inLkRA3ZHrtRk6r+kcJt7bt5tzfSLa7Xqiw9p+PZsQLtFSDy3DjrBoRFgZ3fMhCXxFRPmaMD7axUn0Wh6zXlcI/YZmOQX8AsTwl3XWy0FzXJsspRb//FsjolIPcKlIa6GiaS0jRdv7GOVvDJZgvuKhWLiT2tEBIdCmxErGf52FoOb4rE4OFGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RUn4BCyvOd6U5J+IyhxmqdPHGF9L7w2+FKbwcBCqbiY=; b=X+Du3vt763CUgBatuWzq6gzdm+x4DXpH4pJhHdYCAQzHWjpuuneAPKsXm8qFhoWhwkuVZdRF3RYxwcHBZ3DpqdgsSYYaRYTtzWwWUsUSKrBsn2mC/PKn6Fuv4GgrsXr9eZDkDsQAP2bZ91Ta9tCAnrck7D9jU5Y5RnaBavdu4mF3AhLNOl9ePbYQHUXAKxQlxI9e4xtp95IqrVKLz5FMMIn/+2BVmCNooonOJUt4Rszw+ftSvhaw5Yku3dbhJqzwjaolslKJH/Hnx5TgwaSAwUcfzzjIc9Wfd2aE90XvO0Ptgh9OLmZDLn99JKsifxB63cLUaXAo0FVyJnTQDRJS5Q== Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) by TY0PR0101MB4118.apcprd01.prod.exchangelabs.com (2603:1096:400:1be::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.10; Wed, 12 Jan 2022 17:55:05 +0000 Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::2921:5b0e:52e8:65c0]) by TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::2921:5b0e:52e8:65c0%3]) with mapi id 15.20.4867.012; Wed, 12 Jan 2022 17:55:05 +0000 From: awrhygty@outlook.com Date: Thu, 13 Jan 2022 02:54:59 +0900 Message-ID: Content-Type: text/plain; charset=iso-2022-jp X-TMN: [MXi0n+3d38mkwrxKQ53aQxqj3B/cLIvc] X-ClientProxiedBy: OSAPR01CA0339.jpnprd01.prod.outlook.com (2603:1096:604:51::15) To TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) X-Microsoft-Original-Message-ID: <86fsps4z64.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3087678c-6c8e-43f8-a28c-08d9d5f4a9ec X-MS-TrafficTypeDiagnostic: TY0PR0101MB4118:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 32d3V5J7CP01V5mrQ0okkAwm63iEkJyYsJr7hILwZW9gPSL4DV2+JN46ribfI1b1QtMppCqc5pAsT07CEch5/ZZiAUpvrBIofS1T+RgY8DYr0VZ6SxQT44a+85tP4TzfNt8wfWyGCvqDq9APDv/MAV9ExPBBYUtz2fHYUjWYRHNiyn6vP5v3+zfGWkfXo0conrDu+j3mI4Pl7WYJQpiwxgEG3hST+O7waoRSWF9z1omSileXJNNteFQ1LJHXm+7lJPKhcV5HVMj64TiB6v2ljGQehlD6vChSLDdVdcyK7ya2jiZjZhxwqvNJ7dxpPXwYERXFFNudGuPD9xLm2yNg4ZjROu7i37OAZrzIdULvi7OF3X/hMTS/mmslxIHcnDsbodCpayR3rtMG1bzehyLQgk4lKPmNC413PdiTTXw9RkmfmSlX8BIss+SfIMiMZ5IAP456q9sw1VNRiAPkNCC0xw1OTaw67+KWTDdSlBh1tz+q9x4OLMKgBmlT+8iqdgj8wFd+Hjei2Gt/ziMc2oCtwk+r3x257IXcwEF3F6SOe/9b2gd2ojZpryXtMjEREBRmVytlP0kkIphWVR6SEChwlg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jUKcCsj7pvdm3udL4soEJy5BBPY0qzQeUxNE6MNqqPHPhwA5td/77QqIzOyAT8eP1ps1MrN/vQs0U0QWHy2FHpwaVlLc0vmjRVOOFA9XYyEiyJ0EJV7LYE16IWaamQhs46oHwmZ61t/hA6j7IkM9TuKScpjYPa2fjRvhWdW7W6l7nC/uNWyAyKzNGv62jGEaru1Sn4c6fIAEQ8Q7SGS4amFuqbpEs6hjjnjDD2x2AUBLBHZzLpNQb7pmctCcJPCbcGpYoWFweQuS2mhMgRnbzzYFRSQ3PhBr3F/KWrrc3XvHPgBs1v0Zyebwe9W8l7jhqhhjHXO5r/86OApEd6wLZX8t7SMtz0ryAH8JGZ9sNRUC/8PWbaJ+x4vSAg30e4ml1Licycde/cnHAwkjD0cR65soO3/oOyk8YfI6ozi8Hl/o2iQWn1H2IP6UCu7NqF2ytfBebzD0kH+pRvGqxRUmfpC45vVDtKedIA/C7e+24s7/mE2o4YN7XydVQGVUSfU9iJzYUOiXCZC69WY5pE2AU7dQuOeOVfyB9MzZtH5dKD2xd4KJf2jCMrDd8UEdmFM80ZQAEREsavccl4CBcFSVyqC0qwo75sErk37HKCMtOOdqFCPpwUFF2Um73HrM4nSu7IKRdUNmML2ZXLZUasuBeOwacqpxLtbzzmSkeh+J/+Cl/WVzi2V9NRJocxwRKC8KQAvn6QydHGnUGdwNEez3aIlq4Yp/iOhuC0snq5WGX6Q34hh3as2NJQBVjDeT+vAndwvmpq1siUuXw/ma32t6xYobRa9jbQpIN+QArK3PJc5U9B/QMdoWcpOES+rdg7iMOUuekJtKJDdrTvBJRsOG90MgydkTuBWluzucHEEaMLqIhtk84rAbkMf9o26X6PsyDJ/la8xPTTVphnfa1TL+0bpsKK9tcJ54Dg/evlPv4oTRgc1k5nAL5FgGBT0voiGPWkGRbLe/Gfd6sdQkcse9uw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3087678c-6c8e-43f8-a28c-08d9d5f4a9ec X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB3920.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2022 17:55:05.4853 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR0101MB4118 Received-SPF: pass client-ip=40.92.53.94; envelope-from=awrhygty@outlook.com; helo=APC01-SG2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Mailman-Approved-At: Wed, 12 Jan 2022 13:02:40 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display python eldoc messages. After 20-30 key input, an error occurs. Then look at the *shell* buffer, some numbers in output lines are absent. If setting debug-on-error to 't, *Backtrace* buffer popups, but the buffer and its window is deleted with any key input and I cannot copy text in the buffer. The command in the shell-mode buffer need not be python command. 'ping -n 200 localhost' will be alternative, but its output lines are perhaps identical and difficult to know about absent lines. (let ((buf (generate-new-buffer "tmp"))) (shell) (insert "python -c \"import time;[(print('output',i,flush=True),time.sleep(1)) for i in range(200)]\"") (comint-send-input) (run-python) (switch-to-buffer buf) (insert "len\nstr") (python-mode)) Here is a copied text from *Message* buffer. error in process filter: replace-regexp-in-string: Wrong type argument: arrayp, nil error in process filter: Wrong type argument: arrayp, nil error in process filter: replace-regexp-in-string: Wrong type argument: arrayp, nil error in process filter: Wrong type argument: arrayp, nil ElDoc echo-area display muted in this buffer, see ‘python-eldoc-function’ error in process filter: replace-regexp-in-string: Wrong type argument: arrayp, nil error in process filter: Wrong type argument: arrayp, nil error in process filter: replace-regexp-in-string: Wrong type argument: arrayp, nil error in process filter: Wrong type argument: arrayp, nil ElDoc echo-area display muted in this buffer, see ‘python-eldoc-function’ In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19043 System Description: Microsoft Windows 10 Pro (v10.0.2009.19043.1415) Recent messages: Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (thingatpt compile cl-extra python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 shell pcomplete comint ansi-color ring misearch multi-isearch gnutls network-stream nsm mailalias smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs json map tabify help-mode pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 91541 12697) (symbols 48 9330 0) (strings 32 29585 1136) (string-bytes 1 1056848) (vectors 16 16818) (vector-slots 8 280556 15602) (floats 8 50 279) (intervals 56 1609 0) (buffers 1000 21)) From unknown Sat Jun 21 05:16:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53219: 27.2; shell-mode output is stolen by python-eldoc Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jan 2022 06:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: awrhygty@outlook.com Cc: 53219@debbugs.gnu.org Received: via spool by 53219-submit@debbugs.gnu.org id=B53219.16420543954192 (code B ref 53219); Thu, 13 Jan 2022 06:14:02 +0000 Received: (at 53219) by debbugs.gnu.org; 13 Jan 2022 06:13:15 +0000 Received: from localhost ([127.0.0.1]:59766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7tMJ-00015Y-Gf for submit@debbugs.gnu.org; Thu, 13 Jan 2022 01:13:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7tMI-00015I-8p for 53219@debbugs.gnu.org; Thu, 13 Jan 2022 01:13:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5178aQhyD6ixO2A+IcGcMNT0DzwNOlh3vkItoRkRJI8=; b=FffZIVKpGWqxQJbJj+JohmOCyH WtyGQ7vEGuPx+5AyUGfGHxu81/CihjNlxeW6nHByW/HZLFcCLTjyj+izsUUrPt/ECRabTwYEjtKGj 1DFS0Mp5U/EBFgzruy+MZYsXXOd8ZptHlUfnfG1M7aHf8FeqPxqyQtY0duc74x0WznhQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7tM9-00083e-LB; Thu, 13 Jan 2022 07:13:08 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: James White & The Blacks's _Second Chance_: "Tropical Heatwave" Date: Thu, 13 Jan 2022 07:13:05 +0100 In-Reply-To: (awrhygty@outlook.com's message of "Thu, 13 Jan 2022 02:54:59 +0900") Message-ID: <87iluo9n9q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: awrhygty@outlook.com writes: > Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display > python eldoc messages. > After 20-30 key input, an error occurs. > Then look at the *shell* buffer, some numbers in output lin [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) awrhygty@outlook.com writes: > Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display > python eldoc messages. > After 20-30 key input, an error occurs. > Then look at the *shell* buffer, some numbers in output lines are > absent. > If setting debug-on-error to 't, *Backtrace* buffer popups, That sounds familiar -- I think I recall something like this being fixed in eldoc... Yes, I can reproduce this problem in Emacs 27.2, but not in Emacs 29. So I guess this has been fixed by now, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 01:13:19 2022 Received: (at control) by debbugs.gnu.org; 13 Jan 2022 06:13:19 +0000 Received: from localhost ([127.0.0.1]:59769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7tMN-00015q-NV for submit@debbugs.gnu.org; Thu, 13 Jan 2022 01:13:19 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7tMM-00015Q-Ve for control@debbugs.gnu.org; Thu, 13 Jan 2022 01:13:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=++mU+qOQ2EPGT/PJ63JU4x2U4EnsEdMryuGDbMjkexY=; b=j6Wa8p0tPBK3R7j3Tv5TltP4sN 9vH00XFCqjc++RIn3r4uv+SJg9eF9+gBYfWVjnFEicNjB92/Zp0E0RLa6F9pBjjNbQPfM8Rs7YBbI hLCLWlPAyBnRrT5y+TA/pIJfqHjWgF1ZVa42kXkc6UumhQ2/VedIIEl7n6QsKwMjzwYE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7tMF-00083l-7e for control@debbugs.gnu.org; Thu, 13 Jan 2022 07:13:13 +0100 Date: Thu, 13 Jan 2022 07:13:10 +0100 Message-Id: <87h7a89n9l.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53219 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 53219 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) close 53219 29.1 quit From unknown Sat Jun 21 05:16:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53219: 27.2; shell-mode output is stolen by python-eldoc Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jan 2022 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen , awrhygty@outlook.com Cc: 53219@debbugs.gnu.org Received: via spool by 53219-submit@debbugs.gnu.org id=B53219.16420944208417 (code B ref 53219); Thu, 13 Jan 2022 17:21:01 +0000 Received: (at 53219) by debbugs.gnu.org; 13 Jan 2022 17:20:20 +0000 Received: from localhost ([127.0.0.1]:34419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83ls-0002Bh-G6 for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:20:20 -0500 Received: from kamnitnik.top ([209.250.245.214]:34990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83lq-0002BY-6N for 53219@debbugs.gnu.org; Thu, 13 Jan 2022 12:20:19 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id E7AE39C71A; Thu, 13 Jan 2022 17:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1642094417; bh=JedR2GjFHbP0QDYGu6Pkrcqh71Ret1BNR+UnL+tqMRw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ID5c+WWLveZTFZNBgpKmydq5hJ+ojV1C7YrIcBZ2lwzIeEOjUnxIODcZwvQHEWEg8 Ggrj1aMXIJ/5xGuc+ys5xVGpV73fn2FAHd3GEnskLHXJmq/rMbwq2MkaelkQPyp1lJ wxYP/tF2HhrEsTWOrEJ5I9AQSmHGjoP+kJyRSycWUTkyT9IwtEN6fpmx0nwNnxdjnP G53HiAVPB20WHCD/iNXMTlnoVdz/yXdE8MVJwHcwBZ2UynfCLWw20HI9Hv5rnyMc5l 3JaJPxjWs2g4JY/iQUTJ/w6/VgKHfbtzMOYW7ulokDiOhJck9sUgd6fElecBKV8Buf 6XHRwk1mdPGAA== From: miha@kamnitnik.top In-Reply-To: <87iluo9n9q.fsf@gnus.org> References: <87iluo9n9q.fsf@gnus.org> Date: Thu, 13 Jan 2022 18:26:23 +0100 Message-ID: <87a6fzmts0.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > awrhygty@outlook.com writes: > >> Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display >> python eldoc messages. >> After 20-30 key input, an error occurs. >> Then look at the *shel [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Lars Ingebrigtsen writes: > awrhygty@outlook.com writes: > >> Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display >> python eldoc messages. >> After 20-30 key input, an error occurs. >> Then look at the *shel [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_PASS SPF: sender matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Lars Ingebrigtsen writes: > awrhygty@outlook.com writes: > >> Evaluate the form below and type 'C-p' or 'C-n' repeatedly to display >> python eldoc messages. >> After 20-30 key input, an error occurs. >> Then look at the *shell* buffer, some numbers in output lines are >> absent. >> If setting debug-on-error to 't, *Backtrace* buffer popups, > > That sounds familiar -- I think I recall something like this being fixed > in eldoc... > > Yes, I can reproduce this problem in Emacs 27.2, but not in Emacs 29. > So I guess this has been fixed by now, and I'm closing this bug report. Not quite yet. I found a more reliable reproducer for Emacs 29, which could reproduce the bug on my machine with emacs -q. (progn (setq debug-on-error t) (shell) (insert " i=0; while sleep 0.05; do i=$((i + 1)); echo $i; done") (comint-send-input) (run-python) (switch-to-buffer (generate-new-buffer "tmp")) (insert "len\nstr") (python-mode)) If it doesn't work bug immediately, try lowering the "0.05" number. Please consider applying the following patch to fix this. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Fix-python-eldoc-affecting-unrelated-comint-processe.patch Content-Transfer-Encoding: quoted-printable From=2045c345f0b170c3ffc41f186b3c2b70dbccaa23fd Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Miha=3D20Rihtar=3DC5=3DA1i=3DC4=3D8D?=3D Date: Thu, 13 Jan 2022 18:20:13 +0100 Subject: [PATCH] Fix python-eldoc affecting unrelated comint processes * lisp/progmodes/python.el (python-shell-send-string-no-output): Don't let-bind comint-preoutput-filter-functions globally for all comint processes. Modify the behaviour of only the current python process (bug#53219). =2D-- lisp/progmodes/python.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index edd3139a7a..5889f2ab67 100644 =2D-- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -3216,11 +3216,13 @@ python-shell-output-filter (defun python-shell-send-string-no-output (string &optional process) "Send STRING to PROCESS and inhibit output. Return the output." =2D (let ((process (or process (python-shell-get-process-or-error))) =2D (comint-preoutput-filter-functions =2D '(python-shell-output-filter)) =2D (python-shell-output-filter-in-progress t) =2D (inhibit-quit t)) + (or process (setq process (python-shell-get-process-or-error))) + (cl-letf (((process-filter process) + (lambda (_proc str) + (with-current-buffer (process-buffer process) + (python-shell-output-filter str)))) + (python-shell-output-filter-in-progress t) + (inhibit-quit t)) (or (with-local-quit (python-shell-send-string string process) =2D-=20 2.34.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmHgYL8THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP9TeEACw8Bfx8JgnaoY/VBFXtW4UdogWYGT0 cgIoohLX2r2AmDmczFJTvCgxxpz6jSECR8ApiBfZ8Hbwe1ogEp7D2c529+/AHUB0 IRxJ2cCyFruXGaEwoEmQ9scC2jVml8gfu+z9pJjvH0N8+ZaCdt832YJusCoopCRU YcgDQZTwJZ735WfjTJomK5MQPXZekRJUtmayj6K8c37vcrK1af8el27TITilwQ2i Jt8Juo3A9DlonPcxS/AKgsre9CFCZ3aUVEHikseuqM3025eSunEFEnzAsF/SnPFV b8IbtJgnt2rn8PCY4KHSPmuwc0Pl3HwUZMQDDouSlVaLFT3si3WnlE6WveTcofUD KNrb9qMUzA79qGoM2OUGhLMuatvGS25Fa6sy3IbkzuUpC7ym3JFGHqJjUjk9tV7N P7r7a+Bj4wg+D6/UCkJbyLm3SfsVZlPYATgUFUM2DDm94xA9XqRBiyOKYM+BWQap LI+gB5y0J2iEAenK8xP9mH0ud9JjRU7HU65p5MyQFrNnf8aRgCjC9dr8t7zfpvtL aQcCRfsTDfSuKuJfB+fthwSig4fJ+b/GlyJSpzPHDMjnI1EDeeyaETRlzKryaFHp xbsj/B4Feiyh0Yg2KTM+xhCdfl10YF/5Vz3zriMJaIxVIjjc3+OOR8m2Ex+pL8ob jhhkNxJeA3OoHw== =fzkL -----END PGP SIGNATURE----- --==-=-=-- From unknown Sat Jun 21 05:16:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53219: 27.2; shell-mode output is stolen by python-eldoc Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jan 2022 07:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53219 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miha@kamnitnik.top Cc: 53219@debbugs.gnu.org, awrhygty@outlook.com Received: via spool by 53219-submit@debbugs.gnu.org id=B53219.16421456652993 (code B ref 53219); Fri, 14 Jan 2022 07:35:01 +0000 Received: (at 53219) by debbugs.gnu.org; 14 Jan 2022 07:34:25 +0000 Received: from localhost ([127.0.0.1]:35314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8H6P-0000m8-1Y for submit@debbugs.gnu.org; Fri, 14 Jan 2022 02:34:25 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8H6M-0000lp-Bh for 53219@debbugs.gnu.org; Fri, 14 Jan 2022 02:34:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YOTXDB0FlsZEARWqR8mciI5B3JQ0HbhqMh6MV80N+KM=; b=Lxeo2rxYuZhNGOOJc9vdnQDEK2 x7al7E47aIs6pFGrLl6LJCuCRnMzBScqJKcOR7LyJjiCxZVcrJbda1IoxeHi5/I/XD1tTOssoSH+B 4i+VtkhmoXh7Bu2BqMN2jWf8/3R2AROuRuIAw7M3hU37IevlKoFP2ztz3JxHKFvMGZLE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8H6C-0001Jh-AP; Fri, 14 Jan 2022 08:34:14 +0100 From: Lars Ingebrigtsen References: <87iluo9n9q.fsf@gnus.org> <87a6fzmts0.fsf@miha-pc> X-Now-Playing: Various's _I Wanna Be Kate: The Songs of Kate Bush_: "Home For Christmas (2020 Remaster)" Date: Fri, 14 Jan 2022 08:34:11 +0100 In-Reply-To: <87a6fzmts0.fsf@miha-pc> (miha@kamnitnik.top's message of "Thu, 13 Jan 2022 18:26:23 +0100") Message-ID: <87y23iu5xo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: miha@kamnitnik.top writes: > Please consider applying the following patch to fix this. Thanks; applied to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.3 (-) miha@kamnitnik.top writes: > Please consider applying the following patch to fix this. Thanks; applied to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no