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:01:42 +0100 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12131"; 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:04:09 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 1kkCoj-00033m-Fa for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 22:04:09 +0100 Original-Received: from localhost ([::1]:48758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkCoi-00036N-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Dec 2020 16:04:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkCmg-0001Qu-7i for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkCmf-0006Ip-UK for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkCmf-00042p-QP for bug-gnu-emacs@gnu.org; Tue, 01 Dec 2020 16:02:01 -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:02:01 +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.160685651515535 (code B ref 40563); Tue, 01 Dec 2020 21:02:01 +0000 Original-Received: (at 40563) by debbugs.gnu.org; 1 Dec 2020 21:01:55 +0000 Original-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 Original-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 Original-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== Original-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) In-Reply-To: <87pn55145g.fsf@gnus.org> 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:194762 Archived-At: 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