From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#49073: 28.0.50; python-send-to-repl functions misbehave Date: Thu, 17 Jun 2021 16:53:02 +0200 Message-ID: <1aed416d4a4c84b688a893c1832a7ae076f10ffb.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.40.2 (3.40.2-1.fc34) To: 49073@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 17 16:54:09 2021 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 1lttPE-0002wJ-SG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 16:54:08 +0200 Original-Received: from localhost ([::1]:44432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lttPD-0001dc-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 10:54:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lttP8-0001dS-5r for bug-gnu-emacs@gnu.org; Thu, 17 Jun 2021 10:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lttP7-00065D-UH for bug-gnu-emacs@gnu.org; Thu, 17 Jun 2021 10:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lttP7-00035f-Sc for bug-gnu-emacs@gnu.org; Thu, 17 Jun 2021 10:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Jun 2021 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49073 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.162394159311816 (code B ref -1); Thu, 17 Jun 2021 14:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jun 2021 14:53:13 +0000 Original-Received: from localhost ([127.0.0.1]:54997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lttOK-00034W-If for submit@debbugs.gnu.org; Thu, 17 Jun 2021 10:53:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lttOH-00034K-Kt for submit@debbugs.gnu.org; Thu, 17 Jun 2021 10:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lttOH-0001Zc-5R for bug-gnu-emacs@gnu.org; Thu, 17 Jun 2021 10:53:09 -0400 Original-Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:38548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lttOE-0005W0-Ps for bug-gnu-emacs@gnu.org; Thu, 17 Jun 2021 10:53:08 -0400 Original-Received: by mail-ed1-x535.google.com with SMTP id t7so4399589edd.5 for ; Thu, 17 Jun 2021 07:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=C6/CuAilbDycstBteogI4TXEKUZA/+BAdGebNzmWFXs=; b=SfdiX+o/9Ir1nAW06Rs+82bwORusKQwqQLnkNuaUWAlA9h2bETHKEJT+RQbNFVY6ky wr5p6eLVsZIo6cAPo3O+FvC6L+UOWDaGDmVlWZRnauT+KjxYYFIglKfLz2MoitWOovFt CLYGXM0jRYqzinqKLdb5UBAsch+lCM4W/rwoYXGgM+jhrRYdA2fE8iAbfWkWR90AudKz D8feiW8rzNJZ6yR5NlvasMOhOu1+BXQjWlW6v5QcdKNqY82Kb1D2asG5tQ3YsbEKN2mV 8qbgMRWow66DtwcVVPN5MBteaxufpDsJc52HyB8ZzcX79Z7DEpcAZDboZ2rryOfpHhyO HYkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=C6/CuAilbDycstBteogI4TXEKUZA/+BAdGebNzmWFXs=; b=BfZbrNFqKeFEaN3qCMkQjY+QkQSuNWFue1YP7JKiQmP5Jsf98lw4G1ks/6cSI9fc1t 26ZKwYG+UFHtHWWPmc9W4dp3izVtCkQJY4Szq3swEButM2JQul1g4j064xXqFAmCDCmw KpPEykvu+UO8FVFndCRIod6eTNEvfaCrSQs1YHXtbrVNfO6ptjm0lw3dfebC4cOFjCi6 /5ITeiI78t3gMgAF032zZxSDQeqPOyAA62OQacgl3jClX0jnXRDLHFipJgPqZhSE9YyB v16Sse3Qez7ybItkWrQ7JGVlWvfXNycz9O4vXc8Gii+hMX+lpoKOfpFxIzBhIkJeBu2i kG8w== X-Gm-Message-State: AOAM533fyH40dfb7uo0Wgobsoxg5gxcSy3yxlnHen6Kd+/K7QpJFObzI x7C2QsdhtVD6KJ8C0BfHl55BjUVGdNHInA== X-Google-Smtp-Source: ABdhPJwwC2HtW25qHYl8bGASc16cHwjW6M7mGfMhZGELfuXwj9uI4wjVP7ew2jYxBjiTX6DgShkNZA== X-Received: by 2002:a50:8e57:: with SMTP id 23mr7135447edx.354.1623941583491; Thu, 17 Jun 2021 07:53:03 -0700 (PDT) Original-Received: from ?IPv6:2a02:a45d:af56:1:a2f7:7b85:b4b4:d061? (2a02-a45d-af56-1-a2f7-7b85-b4b4-d061.fixed6.kpn.net. [2a02:a45d:af56:1:a2f7:7b85:b4b4:d061]) by smtp.gmail.com with ESMTPSA id df20sm3976850edb.76.2021.06.17.07.53.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jun 2021 07:53:02 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=dalanicolai@gmail.com; helo=mail-ed1-x535.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:208666 Archived-At: This is a combined bug report for two unrelated but still somewhat related bugs. - The first bug is that when using `python-send-to-repl` functions, the   input does not get printed in the REPL buffer. - The second bug is that for various setups, even the output does not   get printed properly. The reason for this bug report, which might arguably have the best description, is the Spacemacs issue at https://github.com/syl20bnr/spacemacs/issues/14845. Start emacs with -Q flag. Open a python buffer/.py file. Call `M-x run-python` type e.g. 2+2 now send to REPL with `M-x python-shell-send-buffer/statement` The input does not get printed in the REPL (as I would expect from sending to REPL).  This could be intentionally, but I would say that at least `python-shell-send-statement` should print also the input. Then secondly, often, even the output does not get printed (when not sending an explicit print statement). This seems to occur when sending more then two lines (e.g. when using `python-shell-send-buffer` in a buffer that starts with an empty line and has 2+2 on the second line). So then the 'interactivity` of using the repl got totally lost.This is a combined bug report for two unrelated but still somewhat related bugs. - The first bug is that when using `python-send-to-repl` functions, the input   does not get printed in the REPL buffer. - The second bug is that for various   setups, even the output does not get printed properly. The reason for this bug report is the Spacemacs issue at https://github.com/syl20bnr/spacemacs/issues/14845. To reproduce: - Start emacs with -Q flag. - Open a python buffer/.py file. - Call `M-x run-python` - type e.g. 2+2 and send to REPL with `M-x python-shell-send- buffer/statement` The INPUT does not get printed in the REPL (as I would expect from sending to REPL). This could be intentionally, but I would say that at least `python-shell-send-statement` should print also the input. Then secondly, often, even the output does not get printed (when not sending an explicit print statement). This seems to occur when sending more then two lines (e.g. when using `python-shell-send-buffer` in a buffer that starts with an empty line and has 2+2 on the second line). So then the 'interactivity` of using the REPL got totally lost. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0)  of 2021-02-18 built on daniel-fedora Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Fedora 34 (Workstation Edition) Configured using:  'configure --with-nativecomp' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings:   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=none   locale-coding-system: utf-8-unix 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 shell pcomplete parse-time iso8601 ls-lisp format-spec comint ring ansi-color help-mode pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core eieio-loaddefs password-cache json map cl-macs 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 iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 button loaddefs faces cus-face pcase macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 100433 12328)  (symbols 48 9063 1)  (strings 32 27932 1704)  (string-bytes 1 968685)  (vectors 16 16800)  (vector-slots 8 337783 21001)  (floats 8 47 279)  (intervals 56 252 0)  (buffers 992 14))