From unknown Fri Jun 20 07:12:01 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#40563 <40563@debbugs.gnu.org> To: bug#40563 <40563@debbugs.gnu.org> Subject: Status: 28.0.50; Narrow to defun in python buffer Reply-To: bug#40563 <40563@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:12:01 +0000 retitle 40563 28.0.50; Narrow to defun in python buffer reassign 40563 emacs submitter 40563 Tomas Nordin severity 40563 normal tag 40563 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 18:52:24 2020 Received: (at submit) by debbugs.gnu.org; 11 Apr 2020 22:52:24 +0000 Received: from localhost ([127.0.0.1]:57173 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNOz9-00084x-PZ for submit@debbugs.gnu.org; Sat, 11 Apr 2020 18:52:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:58601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNOz8-00084q-8Z for submit@debbugs.gnu.org; Sat, 11 Apr 2020 18:52:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59242) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNOz6-0006h4-KY for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2020 18:52:22 -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 1jNOz5-00016F-8F for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2020 18:52:20 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37899) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNOz4-00015A-M6 for bug-gnu-emacs@gnu.org; Sat, 11 Apr 2020 18:52:19 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 210E716005C for ; Sun, 12 Apr 2020 00:52:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1586645535; bh=Sxy+wFdqj+8+9SzKZbAMoDLDBCjc0h4y9HChy2va/KQ=; h=From:To:Subject:Date:From; b=W2C5mUhKcqhgaGLAcv1kKEa4z8bggJ9b17eW6u732iqPIBWLuOzrOIFaE1TKo2v7J qfQJJd9TOjD8DtvQZYUWhSG73bENL2s2yWO/aOJeI+tgKf1Ev5tSwZ3eNc1GyoC4bR fNN5sxi/J/Mu+W1MA88YsUcg2ZJVVCi+zkMPwvHHgV5JnPcORAK8CnlNcCTXw0aWYR NFOQNBdD75bS/PYLw4vIHGwSVgbZnj6EA0Hh+sc4+JdZgzUbGQIYtTj0A3UwQhXzIV El6dnhYHfY8/2xUaM5NAboPTFuABXrs1INKFxt+bxknSg8biiGzWJB9fFzuzitraAb GC75lMcHBLDJA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4909B62zHHz6tmG for ; Sun, 12 Apr 2020 00:52:14 +0200 (CEST) From: Tomas Nordin To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Narrow to defun in python buffer Date: Sun, 12 Apr 2020 00:52:13 +0200 Message-ID: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> 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: 185.67.36.65 X-Spam-Score: 0.3 (/) 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: -0.7 (/) Hello Buglist emacs Q Find file class.py with this content ----------------------------------8<---------------------------------- """Try narrow to defun on class""" class A(): def a1(self): pass def a2(self): pass class B(): def b1(self): pass def b2(self): pass ---------------------------------->8---------------------------------- Move point to bol on class A C-x n d result: ----------------------------------8<---------------------------------- lass A(): def a1(self): pass def a2(self): pass ---------------------------------->8---------------------------------- notice the 'c' is gone C-x n w Move point to bol on class B C-x n d result: ----------------------------------8<---------------------------------- def b2(self): pass ---------------------------------->8---------------------------------- I then noticed that placing point just below the class definition and then narrow works as expected. But I think the recipe way should work as well. And even if not, this behavior is confusing. Best regards -- Tomas In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2020-04-01 built on fliptop Repository revision: 1276c8e10b000b571a12227ebe9216cc6305ef7f Repository branch: tomnor Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Dired-Hide-Details mode enabled in current buffer Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS2 GMP Important settings: value of $LC_TIME: sv_SE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: dired-hide-details-mode: t tooltip-mode: t global-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 buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny 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 dired dired-loaddefs 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 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 44956 6005) (symbols 48 5991 1) (strings 32 15464 1586) (string-bytes 1 508063) (vectors 16 9265) (vector-slots 8 124796 8898) (floats 8 19 43) (intervals 56 325 4) (buffers 1000 12)) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 26 09:57:29 2020 Received: (at 40563) by debbugs.gnu.org; 26 Oct 2020 13:57:29 +0000 Received: from localhost ([127.0.0.1]:40651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX304-0003ME-V4 for submit@debbugs.gnu.org; Mon, 26 Oct 2020 09:57:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX302-0003M1-Uy for 40563@debbugs.gnu.org; Mon, 26 Oct 2020 09:57:28 -0400 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=B3GZDoP/0relwixP5XZ0bxbocARsMIkJD3N8NUs55qM=; b=Q9C6imgr1zGz8xCWiak36Ic6zx mFGkglA6q3lDd0ORA+WjNuQc6oJay3a2sjxcyGAVyXog5yYCofScfTt+Z8qcygvBrsCvA2vE8/W3W 2LKwEjXSZabgliviGeGH2TU4eZzVFOrLYLKifQ9do9eGwgFQJ1msghqcydCNFMXyRrGI=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX2zs-0001WL-96; Mon, 26 Oct 2020 14:57:20 +0100 From: Lars Ingebrigtsen To: Tomas Nordin Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> X-Now-Playing: Contriva's _If you had stayed..._: "presentiment" Date: Mon, 26 Oct 2020 14:57:15 +0100 In-Reply-To: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> (Tomas Nordin's message of "Sun, 12 Apr 2020 00:52:13 +0200") Message-ID: <87pn55145g.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 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: Tomas Nordin writes: > I then noticed that placing point just below the class definition and > then narrow works as expected. But I think the recipe way should work as > well. And even if not, this behavior is confusing. 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: 40563 Cc: 40563@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 (-) Tomas Nordin writes: > I then noticed that placing point just below the class definition and > then narrow works as expected. But I think the recipe way should work as > well. And even if not, this behavior is confusing. This bug is still present on the trunk. The problem is most easily reproduced by calling the (python-nav--beginning-of-defun) function directly. If point is on the first line, then this function won't do the right thing: def a1(self): pass Because it starts off checking whether it is, indeed, on the first line before trying to get to the start of the first line in the function. This seems like such a basic problem that I wondered whether it's a newly introduced bug, but it's been there for... at least a decade, apparently? Doesn't anybody use python-mode? It looks easy enough to fix, but I'm just wondering whether there's something obvious here I'm not seeing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 01 16:01:55 2020 Received: (at 40563) by debbugs.gnu.org; 1 Dec 2020 21:01:55 +0000 Received: from localhost ([127.0.0.1]:33358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCmZ-00042U-Ix for submit@debbugs.gnu.org; Tue, 01 Dec 2020 16:01:55 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCmU-00042D-ML for 40563@debbugs.gnu.org; Tue, 01 Dec 2020 16:01:53 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A9A8916005F for <40563@debbugs.gnu.org>; Tue, 1 Dec 2020 22:01:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1606856503; bh=p9PZgd879PR0Vdxnngc4tKjHNB19KpPGmqzojtI1PFQ=; h=From:To:Cc:Subject:Date:From; b=isZn1rrdFRsJ7ih+h1HeKCCywIkmBDk344xfugQ/T9I8JJ9MgMHFcnfOtRvDJ3Ul6 OnW+wYEgCMqc3kciCn0FIl0GdteEVFChRwSoT+RAnwG3plgrHr931OT/oghirmpDjO 1rZHtk/Vfeo8maCE6fBH450IqncYFXZvi4MQ4eOS2pStDaS15qrbTb98IbR6BRxN3a bnne7aNvtaerWB4iMVDvdH6YDRhHvVTNk3ka4mopZ96Jxqw/mqju0pPJA6fZtO1Jrc gLmNVn3UggeLypPUGSxpzgDBDE+Z7PIGbXQ7NM9tViwsnjDaQyWkA6SBwD5lVrrhai jy1XRpStF3VpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ClvfZ70gzz6tmD; Tue, 1 Dec 2020 22:01:42 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer In-Reply-To: <87pn55145g.fsf@gnus.org> References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> Date: Tue, 01 Dec 2020 22:01:42 +0100 Message-ID: <87mtyxw895.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40563 Cc: 40563@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: -3.3 (---) Lars Ingebrigtsen writes: > Tomas Nordin writes: > >> I then noticed that placing point just below the class definition and >> then narrow works as expected. But I think the recipe way should work as >> well. And even if not, this behavior is confusing. > > This bug is still present on the trunk. > > The problem is most easily reproduced by calling the > > (python-nav--beginning-of-defun) > > function directly. If point is on the first line, then this function > won't do the right thing: > > def a1(self): > pass > It does the right thing here (still on the same build) when point is at column > 4, and the wrong thing when at 4 or less. Indentation? -- Tomas From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 01 16:05:24 2020 Received: (at 40563) by debbugs.gnu.org; 1 Dec 2020 21:05:24 +0000 Received: from localhost ([127.0.0.1]:33362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCpv-00047W-4v for submit@debbugs.gnu.org; Tue, 01 Dec 2020 16:05:24 -0500 Received: from mout02.posteo.de ([185.67.36.66]:39249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkCpu-00047I-90 for 40563@debbugs.gnu.org; Tue, 01 Dec 2020 16:05:22 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DA83D2400FB for <40563@debbugs.gnu.org>; Tue, 1 Dec 2020 22:05:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1606856715; bh=2qRO39nO17EU3NDKqEiqugC7C2U2T5/KlIEfaWqpWfE=; h=From:To:Cc:Subject:Date:From; b=W2mnTTCgndAippXm/PK5UlxuCScnun7uyml5430nlcMpLxPvdDIchRlXWq5gW2qSd YWOWANZy4jxApr8eAYZDw9hwVtxkOjX7q1lRM0nT44mrAPnKdH0XpZIvtMagViit/H DO/rf+QvLu/865eLI1mHCUR8QMsF48093UQ6xbrblJFNCJk8xTZl5RalkRMSFYTqIF GhRyGaKIzdI+rvK8jWaI/Xo2wxioOE1TwXwZmFGueTAwwLrcEjbrs6a8QMjoW3Llv/ dseUnES6+j1+DEyU3D4EmSLDh3+hlk2FyKdkYbTZaLwwjMKD9utiv28we7Rd/1vpi0 imHPiEvI8nxSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Clvkg2Nfzz6tmR; Tue, 1 Dec 2020 22:05:15 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer In-Reply-To: <87mtyxw895.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87mtyxw895.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 01 Dec 2020 22:05:14 +0100 Message-ID: <87k0u1w839.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40563 Cc: 40563@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: -3.3 (---) Tomas Nordin writes: > Lars Ingebrigtsen writes: > >> Tomas Nordin writes: >> >>> I then noticed that placing point just below the class definition and >>> then narrow works as expected. But I think the recipe way should work as >>> well. And even if not, this behavior is confusing. >> >> This bug is still present on the trunk. >> >> The problem is most easily reproduced by calling the >> >> (python-nav--beginning-of-defun) >> >> function directly. If point is on the first line, then this function >> won't do the right thing: >> >> def a1(self): >> pass >> > > It does the right thing here (still on the same build) when point is at > column > 4, and the wrong thing when at 4 or less. Indentation? Or I said wrong, now my version is 28.0.50 2020-06-07. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 04 02:48:10 2020 Received: (at submit) by debbugs.gnu.org; 4 Dec 2020 07:48:10 +0000 Received: from localhost ([127.0.0.1]:42464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5p3-0007Ka-M3 for submit@debbugs.gnu.org; Fri, 04 Dec 2020 02:48:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:52288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5p1-0007KT-Lv for submit@debbugs.gnu.org; Fri, 04 Dec 2020 02:48:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl5p1-0006f1-DA for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 02:48:07 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:48729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl5oz-0006vD-Lh for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2020 02:48:07 -0500 Received: from [192.168.178.39] ([94.134.177.97]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MKbc4-1kSJzC2Cbs-00KtnQ for ; Fri, 04 Dec 2020 08:48:02 +0100 Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer To: bug-gnu-emacs@gnu.org References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87mtyxw895.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87k0u1w839.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Message-ID: Date: Fri, 4 Dec 2020 08:48:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <87k0u1w839.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:JcHEbiNvo4Bf1HxNDs+JSeadahviCv1M97nZaByEe2PEevXBlUF 1Ldgvw71+9P7iNVi7LyZqVqYpA2EFVdvJtS05kySIpSxHN6jK1r7bwYnRKEQuZVDxOVGdVf KUToARDezty29fpSEYmvNdrBQngRI3YOSHYx1xB9Bd0E8nJLafc/NstjwMnbNYNqWAShKez dCIbI6Me1MkwDiCrsmEAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:c1gRDIpZeUc=:JeLJNUngq19dsJ8c74VAMN yPC4v+pGtv2kADkVzO/lM+0tphZrJ4FDVeYGJba0pnYcsnXCbusru1OLU55NYbMyCzswFRWfW 8a5gEsHvZagCJ7jVWqT6pupNN+zZd0PKfJcsjs4bixB1k/m5+1iFFXS7czoLgDuPaTti1X08R sQElY4Eq6i/4TuF10KVw5laKi8khb/ig/lfcSqJbzSxpGOiZejHq97XxOvNNxtXdtr1p8w6qa bK6+W2iHnelTc6gv0IyrgxpU/IivfLm/pVYUEKklN9oVsiHfbiJwg1ONrfZrEkurFp0hBevQU Jn3JXLVPED7afC/wDlhlV+c7s/OQdTN/Nw4tiK4Hr9m/Hs0+6Va7/Rtif+WOLbXeUFU1kYaJ8 7eVLDM6C1Q049Kkm7Bh3Qrsxf6JoTmPixta23LG7YN769EStyt2/b81GeglvIchrFbZ05w42d Nj97/Tohuh8kog9+lgebsnZSL9Wg+jI= Received-SPF: none client-ip=212.227.126.130; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.3 (+) 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: On 01.12.20 22:05, Tomas Nordin wrote: > Tomas Nordin writes: > >> Lars Ingebrigtsen writes: >> >>> Tomas Nordin writes: >>> >>>> I then notice [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [94.134.177.97 listed in zen.spamhaus.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 NICE_REPLY_A Looks like a legit reply (A) 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: 0.3 (/) On 01.12.20 22:05, Tomas Nordin wrote: > Tomas Nordin writes: > >> Lars Ingebrigtsen writes: >> >>> Tomas Nordin writes: >>> >>>> I then noticed that placing point just below the class definition and >>>> then narrow works as expected. But I think the recipe way should work as >>>> well. And even if not, this behavior is confusing. >>> This bug is still present on the trunk. >>> >>> The problem is most easily reproduced by calling the >>> >>> (python-nav--beginning-of-defun) >>> >>> function directly. If point is on the first line, then this function >>> won't do the right thing: >>> >>> def a1(self): >>> pass >>> >> It does the right thing here (still on the same build) when point is at >> column > 4, and the wrong thing when at 4 or less. Indentation? > Or I said wrong, now my version is 28.0.50 2020-06-07. > > May reproduce this with GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5, cairo version 1.14.0) of 2020-11-19 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 13 08:32:48 2020 Received: (at 40563) by debbugs.gnu.org; 13 Dec 2020 13:32:48 +0000 Received: from localhost ([127.0.0.1]:47763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRUW-0000X3-Dq for submit@debbugs.gnu.org; Sun, 13 Dec 2020 08:32:48 -0500 Received: from mout02.posteo.de ([185.67.36.66]:48421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koRUT-0000Wb-RE for 40563@debbugs.gnu.org; Sun, 13 Dec 2020 08:32:46 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1744F2400FE for <40563@debbugs.gnu.org>; Sun, 13 Dec 2020 14:32:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607866360; bh=pNoipxsZ3d4ni8tg/luHVjE8WLyU1KdABuRAqky6mZM=; h=From:To:Cc:Subject:Date:From; b=EipC9DmfWuXFxkzvTjpdu6XEFz6tjLx9aHIcig7CUFVAGoDXwQyD3SPkNa8II2rk2 dh51qRsEBPjyrE8Nrtlov4xZZpfM+H5wu4+VfUU1XcFd2fAWSurU8qYX/pzNcc16T3 eZSPnX/S78CiAVC4KqJADEPov3Yav1zub30lgcHX43pEO7sB8KLx47eXwM5e0+vBqt 9TeuG8YEX6WY4F/rVjxylTob8O4VB0DZbozwWLpVKeA9uTmm/4j0upQXdgeqU2P5z7 1Apqbt2VfhwCb6RwCQslULwtSfTSn93D+zTBS1A7Kr/cqkoAe/2emxlmFhfB2HD8vm k/tSgUR0NeWuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cv56v4Z7fz6tmX; Sun, 13 Dec 2020 14:32:39 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer In-Reply-To: <87pn55145g.fsf@gnus.org> References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> Date: Sun, 13 Dec 2020 14:32:38 +0100 Message-ID: <87y2i1x24p.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40563 Cc: 40563@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: -3.3 (---) --=-=-= Content-Type: text/plain Hello Lars Ingebrigtsen writes: > Tomas Nordin writes: > >> I then noticed that placing point just below the class definition and >> then narrow works as expected. But I think the recipe way should work as >> well. And even if not, this behavior is confusing. > > This bug is still present on the trunk. > > The problem is most easily reproduced by calling the > > (python-nav--beginning-of-defun) > > function directly. If point is on the first line, then this function > won't do the right thing: > > def a1(self): > pass Attached is a patch that fix the problems described in this report. The change of variable name 'beg-indentation' to 'body-indentation' is not part of the fix, but something I did during study making it easier for me to understand the meaning of it. Feel free to disagree on that change. The naming beg-indentation does not re-occur in python.el The patch mean to say it might be necessary to move forward on the line before search if point start off at the beginning of the defun, to allow re-search-backward to succeed on the intended place. The patch fixes this report, but it doesn't allow narrowing nested python defuns (like a def in a class). For that I think it is necassary to look at narrow-to-defun. I intend to suggest something about that in another report. What do you think? Best regards -- Tomas --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=beginning-of-defun.patch diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index e9c3b3986a..32ffc5a9d6 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1404,7 +1404,7 @@ python-nav--beginning-of-defun (line-beg-pos (line-beginning-position)) (line-content-start (+ line-beg-pos (current-indentation))) (pos (point-marker)) - (beg-indentation + (body-indentation (and (> arg 0) (save-excursion (while (and @@ -1415,9 +1415,16 @@ python-nav--beginning-of-defun 0)))) (found (progn - (when (and (< arg 0) - (python-info-looking-at-beginning-of-defun)) + (when (and (python-info-looking-at-beginning-of-defun) + (or (< arg 0) + ;; If looking at beginning of defun, and if + ;; pos is > line-content-start, ensure a + ;; backward re search match this defun by + ;; going to end of line before calling + ;; re-search-fn bug#40563 + (and (> arg 0) (> pos line-content-start)))) (end-of-line 1)) + (while (and (funcall re-search-fn python-nav-beginning-of-defun-regexp nil t) (or (python-syntax-context-type) @@ -1425,7 +1432,7 @@ python-nav--beginning-of-defun ;; backwards by checking indentation. (and (> arg 0) (not (= (current-indentation) 0)) - (>= (current-indentation) beg-indentation))))) + (>= (current-indentation) body-indentation))))) (and (python-info-looking-at-beginning-of-defun) (or (not (= (line-number-at-pos pos) (line-number-at-pos))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 11:00:44 2020 Received: (at 40563) by debbugs.gnu.org; 14 Dec 2020 16:00:44 +0000 Received: from localhost ([127.0.0.1]:53906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqHD-0006dd-R9 for submit@debbugs.gnu.org; Mon, 14 Dec 2020 11:00:44 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqHC-0006X1-F9 for 40563@debbugs.gnu.org; Mon, 14 Dec 2020 11:00:43 -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=d16adJfg+MhkR5uFaBPMJES6gx8rGbqKe6AB18sPb6Y=; b=aE4tJY5JOwLizjGXkbA1LO9wtL NSlBJCudOZwhVcYr4vZPYeUT0yl1/fjeiMDz0dI6QcN/yO2e3FgcFm3OyZUbcqUy8vdWhxhvGnTL3 3SXTTWyoHnArBlz5gYLwRbGV40QxodJg5GV811aDwV5fsALXqCW6TtiL+hTPj/PV+P6w=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koqH3-00042u-I7; Mon, 14 Dec 2020 17:00:36 +0100 From: Lars Ingebrigtsen To: Tomas Nordin Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87y2i1x24p.fsf@posteo.net> X-Now-Playing: Laurie Freelove's _Songs From The Nineline_: "Arms Of A dream" Date: Mon, 14 Dec 2020 17:00:30 +0100 In-Reply-To: <87y2i1x24p.fsf@posteo.net> (Tomas Nordin's message of "Sun, 13 Dec 2020 14:32:38 +0100") Message-ID: <87sg881iox.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 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: Tomas Nordin writes: > The patch fixes this report, but it doesn't allow narrowing nested > python defuns (like a def in a class). For that I think it is necassary > to look at narrow-to-defun. I intend to suggest somethi [...] 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: 40563 Cc: 40563@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 (-) Tomas Nordin writes: > The patch fixes this report, but it doesn't allow narrowing nested > python defuns (like a def in a class). For that I think it is necassary > to look at narrow-to-defun. I intend to suggest something about that in > another report. > > What do you think? Looks good to me (and it fixes the bug described in this bug report), so I've now applied the patch to Emacs 28. This change was small enough to apply without assigning copyright to the FSF, but for future patches you want to submit, it might make sense to get the paperwork started now, so that subsequent patches can be applied speedily. Would you be willing to sign such paperwork? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 11:00:50 2020 Received: (at control) by debbugs.gnu.org; 14 Dec 2020 16:00:50 +0000 Received: from localhost ([127.0.0.1]:53909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqHK-0006kw-2R for submit@debbugs.gnu.org; Mon, 14 Dec 2020 11:00:50 -0500 Received: from quimby.gnus.org ([95.216.78.240]:44346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1koqHI-0006cx-CS for control@debbugs.gnu.org; Mon, 14 Dec 2020 11:00:48 -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=wQu4jVkzlGEywNfu8caGKcPM3dctR+z1BFUV85QEOBw=; b=JrjmY+vIGO0hauuHaVx8tKd69l 9eKlyJQBlxhuPvnP36ePFsNeoAulIl8nB8RdJUZ8MPWGPXhAF6ACBJHQ85niJHe5QNrZFafXxNKvg 2vL4Vy8Wc8b+444YUNGtiJGYJsBdh+rNEtthnPA91qrfn9k17DQ9v4xAes2eDxypvJOM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1koqHA-000433-Mq for control@debbugs.gnu.org; Mon, 14 Dec 2020 17:00:42 +0100 Date: Mon, 14 Dec 2020 17:00:39 +0100 Message-Id: <87r1ns1ioo.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #40563 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 40563 fixed close 40563 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 40563 fixed close 40563 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 14:38:38 2020 Received: (at 40563) by debbugs.gnu.org; 14 Dec 2020 19:38:38 +0000 Received: from localhost ([127.0.0.1]:54591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kotg6-0001Qe-Bw for submit@debbugs.gnu.org; Mon, 14 Dec 2020 14:38:38 -0500 Received: from mout02.posteo.de ([185.67.36.66]:36743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kotg5-0001QO-16 for 40563@debbugs.gnu.org; Mon, 14 Dec 2020 14:38:37 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1624A2400FC for <40563@debbugs.gnu.org>; Mon, 14 Dec 2020 20:38:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607974711; bh=+i3msndXg75VVztLAmQ8p5GF+4ZbdI0yGb1kqfrO9kY=; h=From:To:Cc:Subject:Date:From; b=LSOHXGRXQdpKEx2yyxIiGSJ8jU8YDMYWGFkRtdqqexiwJTlNKNctD5uW0m9nih4m6 NLMDtI4V1XPWJe2XE7UPxgokcE2W5+uAThHZwv1isinlAtyGLvRcDlu83uRTb9MqJY W83bSO+jpPBrRimJmDgcH7PfFQmmtKnw6KoDt7WYbAMpqr+ARxQdX7Csb8vqR2gctk gasI59VONPQGueTO0P7zcK3JwlUbyrsYC79g55QcU1jehTNleSRFk9NwmMFhxqzjlI gt9gvZHe1tL35IRQBF8WZlo2XbrICyJnMBK4Est81lD1V07uFWG4krBif7+9/5ZaEQ MCOjfI02qSejw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CvsBZ2N4cz6tmR; Mon, 14 Dec 2020 20:38:30 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer In-Reply-To: <87sg881iox.fsf@gnus.org> References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87y2i1x24p.fsf@posteo.net> <87sg881iox.fsf@gnus.org> Date: Mon, 14 Dec 2020 20:38:29 +0100 Message-ID: <873608w53e.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40563 Cc: 40563@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: -3.3 (---) Lars Ingebrigtsen writes: > Tomas Nordin writes: > >> The patch fixes this report, but it doesn't allow narrowing nested >> python defuns (like a def in a class). For that I think it is necassary >> to look at narrow-to-defun. I intend to suggest something about that in >> another report. >> >> What do you think? > > Looks good to me (and it fixes the bug described in this bug report), so > I've now applied the patch to Emacs 28. Thanks > > This change was small enough to apply without assigning copyright to the > FSF, but for future patches you want to submit, it might make sense to > get the paperwork started now, so that subsequent patches can be applied > speedily. Would you be willing to sign such paperwork? Yes, surely. Please paper me. -- Tomas From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 15:03:19 2020 Received: (at 40563) by debbugs.gnu.org; 14 Dec 2020 20:03:19 +0000 Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kou3y-00022o-Sl for submit@debbugs.gnu.org; Mon, 14 Dec 2020 15:03:19 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kou3w-00022b-UC for 40563@debbugs.gnu.org; Mon, 14 Dec 2020 15:03:17 -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=4MtAKwCrsFKgA9z77aVMIpaJFXuMFOzyZlfCGEw4iac=; b=nkXPujOtsuMxGE5TUBbMj0JiDq HbZfDpkYKmZDu0MHhS+LFfAy4pdWX3J72k/0z5Sdw4ShOxnBWiTWGXPGVP0egf7CNfkbkNmKiC9uy biKLyokFzOAEA9TDIMb6YpONiEpyqfKQnF612y+sxxYjLuUY7T6N2yxTwsnieJ0l0FH0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kou3m-0006Ty-Ir; Mon, 14 Dec 2020 21:03:10 +0100 From: Lars Ingebrigtsen To: Tomas Nordin Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87y2i1x24p.fsf@posteo.net> <87sg881iox.fsf@gnus.org> <873608w53e.fsf@posteo.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEU9NDWaa2B+fqvP vsb///8rt08fAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QMDhQCJp86hdUAAAFtSURBVDjLbZKBtcMg CEXBLABxgZQsUGX/3T6gJiT9tj2mXN4TiACxmJkYrmdb6XEF8DOB52YAaydGwgxwWfmWQZwIIwP/ swLsK1ongFUV3JJphRNEnJZ3LiIATutlhZHr+iEYDNIgzBMIkTUDdH/0rap+ARPwfDRTVW0JDDU2 jXWHKb5QdQJ8oBtQAlH7tkAW+CvcGmG1uijn2x/G5u1ChdeqjDt5gfgI+9zVlHQSPwCyd9G01cZ3 oQ7AC4rO6Qbo87A2WlX7JCv0ouyMxj6tlkjotuFV4Xn6ANUbf9SLDqLmV7r1vGmzQ9q7cTDgku8P gDPq/QFFDNgR/Sc/AGsXecWLhFU/HuS0xOZDVLGMa4IRl681os0ebiCxOhqgrCh9EB8kZYXKBH7j RY4FhqBYxEAJMO75Gem7/ezy7Et6AUv1FgWKKwKMA8oB5RzVSsTl7AuI8D6AD5t3nVY2i88Nrmo9 VDJAdKseYI5A/gCQLEVOypBvmgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0xNFQyMDowMjoz OCswMDowMBYjgZUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMTRUMjA6MDI6MzgrMDA6MDBn fjkpAAAAAElFTkSuQmCC X-Now-Playing: Ambitious Lovers's _Envy_: "Locus Coruleus" Date: Mon, 14 Dec 2020 21:03:05 +0100 In-Reply-To: <873608w53e.fsf@posteo.net> (Tomas Nordin's message of "Mon, 14 Dec 2020 20:38:29 +0100") Message-ID: <873608xiiu.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 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: Tomas Nordin writes: >> This change was small enough to apply without assigning copyright to > the >> FSF, but for future patches you want to submit, it might make sense to >> get the paperwork started now, so that subseq [...] 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: 40563 Cc: 40563@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 (-) Tomas Nordin writes: >> This change was small enough to apply without assigning copyright to > the >> FSF, but for future patches you want to submit, it might make sense to >> get the paperwork started now, so that subsequent patches can be applied >> speedily. Would you be willing to sign such paperwork? > > Yes, surely. Please paper me. Great; here's the form to get started: ---- Please email the following information to assign@gnu.org, and we will send you the assignment form for your past and future changes. Please use your full legal name (in ASCII characters) as the subject line of the message. ---------------------------------------------------------------------- REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES [What is the name of the program or package you're contributing to?] Emacs [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your postal address here.] [Which files have you changed so far, and which new files have you written so far?] From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 17:19:07 2020 Received: (at 40563) by debbugs.gnu.org; 14 Dec 2020 22:19:07 +0000 Received: from localhost ([127.0.0.1]:54815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kowBP-0007Vp-Dl for submit@debbugs.gnu.org; Mon, 14 Dec 2020 17:19:07 -0500 Received: from mout02.posteo.de ([185.67.36.66]:48357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kowBN-0007VK-3M for 40563@debbugs.gnu.org; Mon, 14 Dec 2020 17:19:05 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 038762400FB for <40563@debbugs.gnu.org>; Mon, 14 Dec 2020 23:18:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607984339; bh=roHgBa3m8MG3w04yfX1CVLErHQ8sQkDKd43Y5lT+Z4Q=; h=From:To:Cc:Subject:Date:From; b=dA5uYOT7FROBSCPmhpQr99uNkk3cVdYeEvKvY2OW0XzK+wrx6rNe72X7IcYAOCcSi Ze5lpbxmyVH6gvLDmwrePT9sAFjdjtdBFvYdcYS0hviCnhgOWitpl/Gd3WJctyD0Um q5kjeCX3GSwNhWltE2/WnrEhZrd+sO5wi53NIrT7Xc+DGO/8qxbmVVhJl1Py08Ib6a J4h4UVZMgOKyzJmYMNiUPH6odlfxtIaOjr4dg9i9RHzhbDvl8XZImHCOj+8LYfpNrL z9smLLgCCapPyKUGG6fvWWPD03loayyMqEQURn8qs23v7/F1c1n5PgPOFYO4qeoE3l DfqyVQMs4mu/g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Cvwlg61YMz6tn6; Mon, 14 Dec 2020 23:18:55 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen Subject: Re: bug#40563: 28.0.50; Narrow to defun in python buffer In-Reply-To: <873608xiiu.fsf@gnus.org> References: <87sgh9my8y.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <87pn55145g.fsf@gnus.org> <87y2i1x24p.fsf@posteo.net> <87sg881iox.fsf@gnus.org> <873608w53e.fsf@posteo.net> <873608xiiu.fsf@gnus.org> Date: Mon, 14 Dec 2020 23:18:55 +0100 Message-ID: <873608820g.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40563 Cc: 40563@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: -3.3 (---) Lars Ingebrigtsen writes: > Tomas Nordin writes: > >>> This change was small enough to apply without assigning copyright to >> the >>> FSF, but for future patches you want to submit, it might make sense to >>> get the paperwork started now, so that subsequent patches can be applied >>> speedily. Would you be willing to sign such paperwork? >> >> Yes, surely. Please paper me. > > Great; here's the form to get started: Sent From unknown Fri Jun 20 07:12:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 Jan 2021 12:24:07 +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