From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kobarity Newsgroups: gmane.emacs.bugs Subject: bug#55808: 29.0.50; If a Python class is on the first line, mark-defun does not mark the entire class Date: Sat, 25 Jun 2022 23:01:20 +0900 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5559"; mail-complaints-to="usenet@ciao.gmane.io" To: 55808@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 16:02:34 2022 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 1o56Mr-0001M8-VV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 16:02:33 +0200 Original-Received: from localhost ([::1]:44800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o56Mq-0004vz-EF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 10:02:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o56MS-0004vK-Pe for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 10:02:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o56ML-00020K-W2 for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 10:02:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o56ML-0003bF-Tw for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 10:02:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2022 14:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55808 X-GNU-PR-Package: emacs Original-Received: via spool by 55808-submit@debbugs.gnu.org id=B55808.165616570113807 (code B ref 55808); Sat, 25 Jun 2022 14:02:01 +0000 Original-Received: (at 55808) by debbugs.gnu.org; 25 Jun 2022 14:01:41 +0000 Original-Received: from localhost ([127.0.0.1]:45939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o56M0-0003ad-PM for submit@debbugs.gnu.org; Sat, 25 Jun 2022 10:01:40 -0400 Original-Received: from mail-ej1-f46.google.com ([209.85.218.46]:43667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o56Lz-0003aQ-9u for 55808@debbugs.gnu.org; Sat, 25 Jun 2022 10:01:40 -0400 Original-Received: by mail-ej1-f46.google.com with SMTP id u15so10116840ejc.10 for <55808@debbugs.gnu.org>; Sat, 25 Jun 2022 07:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=1cshrcjdLtTsHHAaYgJ3PlOpw10vQb+x15YHNSg9GLI=; b=obOnMEHuZ6/G/4Ymz+S/a05LCd2UaqjczY88eMAH+0UPcfe1OEfELJqPoJ+M4ZxVcS /f2rp1UgNpzPJH59EXWLWXm1HdvEjs5E7FbTbDUi5Ta39I7STg31d8H2oQepJl+Qhvk7 JRnkYkN+kGzWxvH9q1gxL1iN24kuMDMVNFFmGe92JwX+jzsOf+EdS51cV6KvD4Diq2iJ B1vGzeHb2LHLw1TQDTmx43czvBxi6Dqi85eR5LuKqW67680KffkIeALVcrMqIebbCxTD mbuxV3lnde1iXYyEPmRrePFM+dwS2xSbrAqtPe6NMVTeXgA42dZLxKWMUvfpbS2QKc5f pPxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1cshrcjdLtTsHHAaYgJ3PlOpw10vQb+x15YHNSg9GLI=; b=qKZ4S9x3heEuc4nr6Doqj5VwUSBrZXI00BA/QUNdOpMZQPwEVOxpDuTMpMkWOFMGap dqkkKJABNUm6St04cjZemTffeYB5ZZXy9kEvlpn/lAvu4p0hnLDvSdWVudDEq9hwUa+7 6fm9IRrzZ3VnHtTqCdzrjQFQRffNR16BCCelC+uGG34mDI+ZPAPzhRk87jpsEsYUBMAb dUiYCWl+IdwpyxX7Pw+rdHHir6wqgGgIvtpXK9B/9vAy8tUr3yle6XjONu0yAhmzHSzN o033E/bJxJS1cTLOkMRibsoIdPjRwh1HV4WZaVdVogu+MQL+ZG3J0+raw4no2rzrrMKT WoWQ== X-Gm-Message-State: AJIora/A4paqiXm5x2w6ug81It3ibGKtR+YrITtBs0GBhh7t+ui2CwNz m1LOdci6g1HZe8D2PbYP0T0BC+a6YXNg+819cgop1dg1 X-Google-Smtp-Source: AGRyM1udFoNSX8M8UuZep6CDT4SBaWQTbz0djGXkFTDw5G2SmEYnkYmkctGLRGgW6Rar0qpWzsJh0yqOII28d0YIXAI= X-Received: by 2002:a17:907:7245:b0:711:d1ff:2ca4 with SMTP id ds5-20020a170907724500b00711d1ff2ca4mr3961277ejc.753.1656165692578; Sat, 25 Jun 2022 07:01:32 -0700 (PDT) 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:235268 Archived-At: Hello, I wrote: > The following steps will mark only the method baz, not the entire > class Foo. > > 1. emacs -Q > 2. Load the following Python file using M-x find-file > > #+begin_src python > class Foo: > def bar(): > pass > > def baz(): > pass > #+end_src > > 3. M-x mark-defun > > This issue happens only if the class is on the first line of the file. It turned out that there was a bug in `python-nav-beginning-of-defun'. Fixing the bug #56105 also resolved this issue #55808. So #55808 can now be closed. Thanks,