From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#40563: 28.0.50; Narrow to defun in python buffer Date: Tue, 01 Dec 2020 22:05:14 +0100 Message-ID: <87k0u1w839.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22670"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40563@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 01 22:06:10 2020 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 1kkCqg-0005mp-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 22:06:10 +0100 Original-Received: from localhost ([::1]:51660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkCqf-0004Ri-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 16:06:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkCqY-0004Qs-Ja for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:06:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkCqY-0007l4-C0 for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkCqY-00048R-6v for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Dec 2020 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40563 X-GNU-PR-Package: emacs Original-Received: via spool by 40563-submit@debbugs.gnu.org id=B40563.160685672415847 (code B ref 40563); Tue, 01 Dec 2020 21:06:02 +0000 Original-Received: (at 40563) by debbugs.gnu.org; 1 Dec 2020 21:05:24 +0000 Original-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 Original-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 Original-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== Original-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) In-Reply-To: <87mtyxw895.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> 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:194763 Archived-At: 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.