From unknown Thu Aug 14 21:45:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37828 <37828@debbugs.gnu.org> To: bug#37828 <37828@debbugs.gnu.org> Subject: Status: 26.3; python-shell-send-defun doesn't find the (whole) definition Reply-To: bug#37828 <37828@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:45:34 +0000 retitle 37828 26.3; python-shell-send-defun doesn't find the (whole) defini= tion reassign 37828 emacs submitter 37828 per@starback.se (Per Starb=C3=A4ck) severity 37828 normal tag 37828 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 20 02:38:17 2019 Received: (at submit) by debbugs.gnu.org; 20 Oct 2019 06:38:17 +0000 Received: from localhost ([127.0.0.1]:53713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iM4r3-0000rg-3i for submit@debbugs.gnu.org; Sun, 20 Oct 2019 02:38:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:44761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iM4qy-0000rV-Tr for submit@debbugs.gnu.org; Sun, 20 Oct 2019 02:38:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50097) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iM4qx-0008B2-IH for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 02:38:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iM4qw-00064L-5t for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 02:38:11 -0400 Received: from numerus.lingfil.uu.se ([130.238.78.148]:57638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iM4qv-000627-Rb for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2019 02:38:10 -0400 Received: from localhost (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 1870BA1E6003; Sun, 20 Oct 2019 08:38:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at lingfil.uu.se Received: from numerus.lingfil.uu.se ([127.0.0.1]) by localhost (numerus.lingfil.uu.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g35vc02FQ7M8; Sun, 20 Oct 2019 08:38:04 +0200 (CEST) Received: from numerus.lingfil.uu.se (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 66A9DA1E6002; Sun, 20 Oct 2019 08:38:04 +0200 (CEST) Received: (from starback@localhost) by numerus.lingfil.uu.se (8.14.7/8.14.7/Submit) id x9K6c48f000430; Sun, 20 Oct 2019 08:38:04 +0200 From: per@starback.se (Per =?iso-8859-1?Q?Starb=E4ck?=) To: bug-gnu-emacs@gnu.org Subject: 26.3; python-shell-send-defun doesn't find the (whole) definition Date: Sun, 20 Oct 2019 08:38:04 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 130.238.78.148 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: submit 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.0 (---) With emacs 26.3. There are two related bugs which makes python-shell-send-defun sometimes not send the right contents. == reproduce the first one == $ emacs -Q /tmp/newfile.py C-c C-p [start python process] def foo(): RET [define a ...] pass RET [... python function] C-M-x [python-shell-send-defun] In the echo area it says "Sent: pass..." because only that line was sent. Not the whole definition, and the function is not defined in the inferior python. A variant is to have a line "@property" before the "def foo():" line. Then python-shell-send-defun will enter an infinite loop instead. == reason == python-shell-send-defun moves lines backwards one at a time until it is out of the defun, and then (forward-line 1) to go back into it. When the file begins immediately with the first defun (which isn't that common, since normally there'd be a shebang or other comment there) it never goes outside of the defun so then (forward-line 1) is wrong. == fix == ====================================================================== $ diff -u python.el python-fixed.el --- python.el 2019-07-25 21:41:28.000000000 +0200 +++ python-fixed.el 2019-10-20 08:17:46.871142868 +0200 @@ -3151,9 +3151,10 @@ (beginning-of-line 1)) (> (current-indentation) 0))) (when (not arg) - (while (and (forward-line -1) - (looking-at (python-rx decorator)))) - (forward-line 1)) + (let ((remains-to-move 0)) + (while (and (zerop (setq remains-to-move (forward-line -1))) + (looking-at (python-rx decorator)))) + (forward-line (1+ remains-to-move)))) (point-marker)) (progn (or (python-nav-end-of-defun) ====================================================================== === reproduce the second one == $ emacs -Q testfile.py where testfile.py contains ---------------------- def foo(): pass @property def bar(): pass ---------------------- C-c C-p [run-python] M-> [end-of-buffer] C-M-x [python-shell-send-defun] In the echo area it echoes "Sent: ..." and "bar" is not defined in the inferior python which it should be. == reason == When python-shell-send-defun goes to the beginning of the defun it goes to the line with "@property", but from there python-nav-end-of-defun doesn't find the end of that defun. == fix == This could be seen as a bug in python-nav-end-of-defun and be fixed only there instead. I haven't done that. This patches this for python-shell-send-defun (including the patch one above), which might be a good idea anyway, making python-shell-send-defun more robust by going to the end-of-defun from the original position and not from where it ended up looking for the beginning. (The fix is really small except for the indentation changes.) ====================================================================== $ diff -u python.el python-fixed-more.el --- python.el 2019-07-25 21:41:28.000000000 +0200 +++ python-fixed-more.el 2019-10-20 08:16:20.799758867 +0200 @@ -3143,24 +3143,27 @@ user-friendly message if there's no process running; defaults to t when called interactively." (interactive (list current-prefix-arg t)) - (save-excursion - (python-shell-send-region - (progn - (end-of-line 1) - (while (and (or (python-nav-beginning-of-defun) - (beginning-of-line 1)) - (> (current-indentation) 0))) - (when (not arg) - (while (and (forward-line -1) - (looking-at (python-rx decorator)))) - (forward-line 1)) - (point-marker)) - (progn - (or (python-nav-end-of-defun) - (end-of-line 1)) - (point-marker)) - nil ;; noop - msg))) + (let ((starting-pos (point))) + (save-excursion + (python-shell-send-region + (progn + (end-of-line 1) + (while (and (or (python-nav-beginning-of-defun) + (beginning-of-line 1)) + (> (current-indentation) 0))) + (when (not arg) + (let ((remains-to-move 0)) + (while (and (zerop (setq remains-to-move (forward-line -1))) + (looking-at (python-rx decorator)))) + (forward-line (1+ remains-to-move)))) + (point-marker)) + (progn + (goto-char starting-pos) + (or (python-nav-end-of-defun) + (end-of-line 1)) + (point-marker)) + nil ;; noop + msg)))) (defun python-shell-send-file (file-name &optional process temp-file-name delete msg) ====================================================================== From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 24 15:22:04 2019 Received: (at 37828) by debbugs.gnu.org; 24 Oct 2019 19:22:04 +0000 Received: from localhost ([127.0.0.1]:36951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNigO-0001ZN-0S for submit@debbugs.gnu.org; Thu, 24 Oct 2019 15:22:04 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42371) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNigI-0001Xy-Q6 for 37828@debbugs.gnu.org; Thu, 24 Oct 2019 15:21:59 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 28BE42400E5 for <37828@debbugs.gnu.org>; Thu, 24 Oct 2019 21:21:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1571944912; bh=BRoqCm63mHtM8SExxutDcjdz40VDf+9ON2UAwcmLBYg=; h=From:To:Subject:Date:From; b=E81U9tJKXpQpP8YvShTB7Q4tTbMyIkjoXhN4S1gY500hj3+P927omK5//5AG/OmOV gfiv2i2DBBni2R7LVn8R2tRHbb91wjzIkhNjno/3oTjnNT94ccwJUyI4rFeZAU7kv4 +LjT8tPj47MP3amZpyuSk9zKptHAxH8F2aM4nFJpxfwkiJNeXSHakOkKm81B7hUS4R bxfZhdvmmsHRiIBem77p8PHhb0etPfrH2brXbJRLFsbtPSGkH+ajCO602Xp8U2mhPn 3LoOAXmotEVOOta3IQq8VknwbtY59syJydLSZekANlUrAibvlzARZiVkawjfBgPFO0 dpW9Y+9KmjOwQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 46zcYp3vVbz9rxL; Thu, 24 Oct 2019 21:21:50 +0200 (CEST) From: Tomas Nordin To: Per =?utf-8?Q?Starb=C3=A4ck?= , 37828@debbugs.gnu.org Subject: Re: bug#37828: 26.3; python-shell-send-defun doesn't find the (whole) definition In-Reply-To: References: Date: Thu, 24 Oct 2019 21:21:48 +0200 Message-ID: <87imoene43.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37828 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 (---) Hello Per Per Starb=C3=A4ck writes: > With emacs 26.3. > > There are two related bugs which makes python-shell-send-defun > sometimes not send the right contents. > > =3D=3D reproduce the first one =3D=3D > > $ emacs -Q /tmp/newfile.py > C-c C-p [start python process] > def foo(): RET [define a ...] > pass RET [... python function] > C-M-x [python-shell-send-defun] > > In the echo area it says "Sent: pass..." > because only that line was sent. Not the whole definition, and the > function is not defined in the inferior python. I think this is reported by Bug#30822 and fixed in master. Best regards -- Tomas From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 02:32:27 2019 Received: (at 37828) by debbugs.gnu.org; 31 Oct 2019 06:32:27 +0000 Received: from localhost ([127.0.0.1]:52047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQ40R-0004e0-3l for submit@debbugs.gnu.org; Thu, 31 Oct 2019 02:32:27 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:43183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQ40O-0004dm-N0 for 37828@debbugs.gnu.org; Thu, 31 Oct 2019 02:32:25 -0400 Received: by mail-wr1-f41.google.com with SMTP id n1so4887861wra.10 for <37828@debbugs.gnu.org>; Wed, 30 Oct 2019 23:32:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fSDF8hCkDYTcTZbMZubHS98Eor4Zn9YkxVReSowSdlk=; b=X4xWa/t1/FbwZ2DfJ8eTW4DPXQHlOCjbsNGMoCxWg8UbnksF0c+70q5Nrx1TCQmeD5 cDUmJXaz1DWCHX04rN/9C+v/YnP+5e4yczLLcH036L+x7F0By+ThsGYZLjlwnyP6q3a9 UWnyt1iTwMopwS74qaxP3FhVRrzPQvB/CRJIAiAZVDnnuq9Bxky/eg6ewr667R4HtX0A nI+EWKr0smcxh/yKb+Ni1HGplDZUcRIEyaGP48ex1VaSKAraSmX4+NQLXK1wH0J/6lsi y2rKzHDv+vfciFOZls5IJoGXpc6QWIDAOuoJePQ/7ylSr1u9GCnOYQ0IsVM4p5G55rSA 781g== X-Gm-Message-State: APjAAAUAyj3k58lcGMwPKdX82bi7AzajqBBUOPE86s1d9HhnyzD9sS9y zfdgmOF827P5ZdZztLz93xsAbSRJGDcG4QAPP9U= X-Google-Smtp-Source: APXvYqwPm/Gz2MSe/PKCdaCaSgYv/jIpbBBpBDETx2l1k9M1icGkmWvHw0/C+SdCgXGDL9ENeOinCRs30KPDRzj9CqY= X-Received: by 2002:a5d:4112:: with SMTP id l18mr3771872wrp.123.1572503538994; Wed, 30 Oct 2019 23:32:18 -0700 (PDT) MIME-Version: 1.0 References: <87imoene43.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87imoene43.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> From: =?UTF-8?Q?Per_Starb=C3=A4ck?= Date: Thu, 31 Oct 2019 07:32:06 +0100 Message-ID: Subject: Re: bug#37828: 26.3; python-shell-send-defun doesn't find the (whole) definition To: Tomas Nordin Content-Type: multipart/mixed; boundary="000000000000d9c1f805962f02bc" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 37828 Cc: 37828@debbugs.gnu.org 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: -0.7 (/) --000000000000d9c1f805962f02bc Content-Type: text/plain; charset="UTF-8" > I think this is reported by Bug#30822 and fixed in master. Thanks! Now I have had time to compare with the trunk. The first part of the bug is indeed fixed, but not the second part: Here is an updated patch made against the trunk. (There are only two new lines.) --000000000000d9c1f805962f02bc Content-Type: text/plain; charset="US-ASCII"; name="patch.txt" Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k2ebzduv0 JCBkaWZmIC11IHB5dGhvbi5lbCBweXRob24tZml4ZWQuZWwKLS0tIHB5dGhvbi5lbAkyMDE5LTEw LTMwIDIxOjQyOjE3LjU2OTkyODkzNiArMDEwMAorKysgcHl0aG9uLWZpeGVkLmVsCTIwMTktMTAt MzEgMDc6MjM6NTAuMDg3OTczMTU4ICswMTAwCkBAIC0zMTc4LDI3ICszMTc4LDI5IEBACiB1c2Vy LWZyaWVuZGx5IG1lc3NhZ2UgaWYgdGhlcmUncyBubyBwcm9jZXNzIHJ1bm5pbmc7IGRlZmF1bHRz IHRvCiB0IHdoZW4gY2FsbGVkIGludGVyYWN0aXZlbHkuIgogICAoaW50ZXJhY3RpdmUgKGxpc3Qg Y3VycmVudC1wcmVmaXgtYXJnIHQpKQotICAoc2F2ZS1leGN1cnNpb24KLSAgICAocHl0aG9uLXNo ZWxsLXNlbmQtcmVnaW9uCi0gICAgIChwcm9nbgotICAgICAgIChlbmQtb2YtbGluZSAxKQotICAg ICAgICh3aGlsZSAoYW5kIChvciAocHl0aG9uLW5hdi1iZWdpbm5pbmctb2YtZGVmdW4pCi0gICAg ICAgICAgICAgICAgICAgICAgIChiZWdpbm5pbmctb2YtbGluZSAxKSkKLSAgICAgICAgICAgICAg ICAgICAoPiAoY3VycmVudC1pbmRlbnRhdGlvbikgMCkpKQotICAgICAgICh3aGVuIChub3QgYXJn KQotICAgICAgICAgKHdoaWxlIChhbmQKLSAgICAgICAgICAgICAgICAgKGVxIChmb3J3YXJkLWxp bmUgLTEpIDApCi0gICAgICAgICAgICAgICAgIChpZiAobG9va2luZy1hdCAocHl0aG9uLXJ4IGRl Y29yYXRvcikpCi0gICAgICAgICAgICAgICAgICAgICB0Ci0gICAgICAgICAgICAgICAgICAgKGZv cndhcmQtbGluZSAxKQotICAgICAgICAgICAgICAgICAgIG5pbCkpKSkKLSAgICAgICAocG9pbnQt bWFya2VyKSkKLSAgICAgKHByb2duCi0gICAgICAgKG9yIChweXRob24tbmF2LWVuZC1vZi1kZWZ1 bikKLSAgICAgICAgICAgKGVuZC1vZi1saW5lIDEpKQotICAgICAgIChwb2ludC1tYXJrZXIpKQot ICAgICBuaWwgIDs7IG5vb3AKLSAgICAgbXNnKSkpCisgIChsZXQgKChzdGFydGluZy1wb3MgKHBv aW50KSkpCisgICAgKHNhdmUtZXhjdXJzaW9uCisgICAgICAocHl0aG9uLXNoZWxsLXNlbmQtcmVn aW9uCisgICAgICAgKHByb2duCisgICAgICAgICAoZW5kLW9mLWxpbmUgMSkKKyAgICAgICAgICh3 aGlsZSAoYW5kIChvciAocHl0aG9uLW5hdi1iZWdpbm5pbmctb2YtZGVmdW4pCisgICAgICAgICAg ICAgICAgICAgICAgICAgKGJlZ2lubmluZy1vZi1saW5lIDEpKQorICAgICAgICAgICAgICAgICAg ICAgKD4gKGN1cnJlbnQtaW5kZW50YXRpb24pIDApKSkKKyAgICAgICAgICh3aGVuIChub3QgYXJn KQorICAgICAgICAgICAod2hpbGUgKGFuZAorICAgICAgICAgICAgICAgICAgIChlcSAoZm9yd2Fy ZC1saW5lIC0xKSAwKQorICAgICAgICAgICAgICAgICAgIChpZiAobG9va2luZy1hdCAocHl0aG9u LXJ4IGRlY29yYXRvcikpCisgICAgICAgICAgICAgICAgICAgICAgIHQKKyAgICAgICAgICAgICAg ICAgICAgIChmb3J3YXJkLWxpbmUgMSkKKyAgICAgICAgICAgICAgICAgICAgIG5pbCkpKSkKKyAg ICAgICAgIChwb2ludC1tYXJrZXIpKQorICAgICAgIChwcm9nbgorICAgICAgICAgKGdvdG8tY2hh ciBzdGFydGluZy1wb3MpCisgICAgICAgICAob3IgKHB5dGhvbi1uYXYtZW5kLW9mLWRlZnVuKQor ICAgICAgICAgICAgIChlbmQtb2YtbGluZSAxKSkKKyAgICAgICAgIChwb2ludC1tYXJrZXIpKQor ICAgICAgIG5pbCA7OyBub29wCisgICAgICAgbXNnKSkpKQogCiAoZGVmdW4gcHl0aG9uLXNoZWxs LXNlbmQtZmlsZSAoZmlsZS1uYW1lICZvcHRpb25hbCBwcm9jZXNzIHRlbXAtZmlsZS1uYW1lCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGV0ZSBtc2cpCg== --000000000000d9c1f805962f02bc-- From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 27 07:42:13 2020 Received: (at control) by debbugs.gnu.org; 27 Aug 2020 11:42:13 +0000 Received: from localhost ([127.0.0.1]:41930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBGIH-0005TQ-Jn for submit@debbugs.gnu.org; Thu, 27 Aug 2020 07:42:13 -0400 Received: from mail-yb1-f171.google.com ([209.85.219.171]:42295) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBGIB-0005Sy-S0 for control@debbugs.gnu.org; Thu, 27 Aug 2020 07:42:08 -0400 Received: by mail-yb1-f171.google.com with SMTP id a34so2764372ybj.9 for ; Thu, 27 Aug 2020 04:42:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=PKsvwiA8fj2ye4Efy5EuWAJYnYmnWCxhrlTlUsqf42A=; b=IPHbVBwsBF0TF+3YaS79Cqy+FAYjcELHNMdwKUVw9A9FtQI1heJzHwn8ibxbaQfwGn WY65JQeYHD1Muveay+Y75eZ3hxNibV6+dYkJASSazMhvMG8IozSUvXn9KZG92CVghqJn sABO+dd0zNeWKe6fdrXEKDTrA+eeWcR+Vgg5/4Xiohr0xfCz1DjamIrmB9J/YdgxMfgK 3bEKee7Fs0WVM6uBLdzsz8A33K4s2Nnvp9GrL2V+zpImUxH7wMi/PVzq59AvNNb4keHc 5CzjxAMEIWl83CMqJt1X8jMSkNax2gj/lXTDPEL5otzrm86FCY+Xie1O5tdipzgb/M1U fCBg== X-Gm-Message-State: AOAM53350DXQI0OeibA+nnh6+NPnAJQ0PS5og4sEz0P+/TXBZwZ63Xtz z0f3PZLKVAlNPnd/N85FW74Mmf7o0zIaDiRuJlvN+pu+hTU= X-Google-Smtp-Source: ABdhPJzdd4lV5SksGoNrq0cH9rmoJq/omO2HXGpRr+qrnsi9GR33HahyhvEWWXTeNtbLj7vHYFLjrRCMygmlIOmGHuY= X-Received: by 2002:a5b:508:: with SMTP id o8mr30502799ybp.43.1598528522283; Thu, 27 Aug 2020 04:42:02 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 27 Aug 2020 04:42:01 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 27 Aug 2020 04:42:01 -0700 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" 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: tags 37828 + patch thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.171 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 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: 1.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: tags 37828 + patch thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.171 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.171 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines tags 37828 + patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 23:11:59 2020 Received: (at 37828) by debbugs.gnu.org; 2 Oct 2020 03:11:59 +0000 Received: from localhost ([127.0.0.1]:38932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOBUF-0005yy-9o for submit@debbugs.gnu.org; Thu, 01 Oct 2020 23:11:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOBUA-0005ya-A9 for 37828@debbugs.gnu.org; Thu, 01 Oct 2020 23:11:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=Zmew2QlDqs61eqdv9uAyMhLGpgh5Sz4AdyhGu8mR2jk=; b=RFw5MqdD3OMB6c+BfMe6NauWTJ /BIfAKgw3sYtEVwX19XyhQQKpdLtD/eg6HbxgRpCevQjnmxaSb+GXxteHtmdZcTLuQzYv5F1aLlHI FVlBWa0F1ogCeIFucKdxGXBplJ9b9C1PMkZo6JN09OwCyMrlE9b3AMfV+9ohA28SgmRw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOBU1-0006q7-4U; Fri, 02 Oct 2020 05:11:47 +0200 From: Lars Ingebrigtsen To: Per =?utf-8?Q?Starb=C3=A4ck?= Subject: Re: bug#37828: 26.3; python-shell-send-defun doesn't find the (whole) definition References: <87imoene43.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> X-Now-Playing: Robert Wyatt's _Solar Flares Burn For You_: "God Song" Date: Fri, 02 Oct 2020 05:11:43 +0200 In-Reply-To: ("Per =?utf-8?Q?Starb=C3=A4ck=22's?= message of "Thu, 31 Oct 2019 07:32:06 +0100") Message-ID: <87wo09z5hs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Per Starbäck writes: > Thanks! Now I have had time to compare with the trunk. The first part > of the bug is indeed fixed, but not the second part: > > Here is an updated patch made against the trunk. (There are only two [...] 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.0 (/) X-Debbugs-Envelope-To: 37828 Cc: Tomas Nordin , 37828@debbugs.gnu.org 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.0 (-) Per Starb=C3=A4ck writes: > Thanks! Now I have had time to compare with the trunk. The first part > of the bug is indeed fixed, but not the second part: > > Here is an updated patch made against the trunk. (There are only two > new lines.) Thanks; I tried the patch, and it did indeed fix the problem, so I've now applied it to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 23:11:59 2020 Received: (at control) by debbugs.gnu.org; 2 Oct 2020 03:11:59 +0000 Received: from localhost ([127.0.0.1]:38934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOBUF-0005z0-JU for submit@debbugs.gnu.org; Thu, 01 Oct 2020 23:11:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOBUE-0005yh-Nh for control@debbugs.gnu.org; Thu, 01 Oct 2020 23:11:59 -0400 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=W0yUdEYxVTA19Z7TZ93Fd9At3MaNJYJ6XcO/aoNTVnY=; b=kIBzeJJoaWZzcvbfYikEuKgnuT 98EmviTNK19S2MX+ilxdn5jjEnnvtwafkok7cw/NeLS8gPJLTI+y6ATJmIF5zw7WMlJo6Jqlo0wmb UIV1ZWZkFd/sxj7zGxdG4mDwZheChZv+sHvp1BsmNAsSkK5yI8DN54IAFH+dDRJQ+FEw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOBU7-0006qI-2Z for control@debbugs.gnu.org; Fri, 02 Oct 2020 05:11:53 +0200 Date: Fri, 02 Oct 2020 05:11:49 +0200 Message-Id: <87v9ftz5hm.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37828 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: tags 37828 fixed close 37828 28.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: 0.0 (/) 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: -1.0 (-) tags 37828 fixed close 37828 28.1 quit From unknown Thu Aug 14 21:45:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Oct 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator