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#56105: 29.0.50; python-nav-beginning-of-defun does not handle nested functions properly Date: Mon, 20 Jun 2022 20:50:40 +0900 Message-ID: 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="36812"; mail-complaints-to="usenet@ciao.gmane.io" To: 56105@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 20 13:51:13 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 1o3Fw1-0009Sj-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jun 2022 13:51:13 +0200 Original-Received: from localhost ([::1]:33822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3Fw0-0007Of-28 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jun 2022 07:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3Fvq-0007OW-SV for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2022 07:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3Fvq-0001Vx-Ix for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2022 07:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o3Fvq-0008PJ-Ie for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2022 07:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: kobarity Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jun 2022 11:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56105 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165572586032307 (code B ref -1); Mon, 20 Jun 2022 11:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2022 11:51:00 +0000 Original-Received: from localhost ([127.0.0.1]:54600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3Fvo-0008P1-6U for submit@debbugs.gnu.org; Mon, 20 Jun 2022 07:51:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3Fvm-0008Ot-58 for submit@debbugs.gnu.org; Mon, 20 Jun 2022 07:50:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3Fvl-0007OD-BT for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2022 07:50:57 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:40779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3Fvj-0001Q8-QZ for bug-gnu-emacs@gnu.org; Mon, 20 Jun 2022 07:50:57 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id ej4so10798907edb.7 for ; Mon, 20 Jun 2022 04:50:55 -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=X5NGO0v+/W8uC944qzjC1Frb59wIIg6zTHOHoqo4+E4=; b=hpbkdUFJIJVzLbtYnecLrJ7jPMNNW19y4qbX9kMCczNcR87tEClggSEtKCeYoGagIu GR8smRQ7yVmvqnJflvTS7YAylUxs4Mz72+Vg2lGwa8USM0So3TMiT2WqpUEFObzLPUDx jAoLsBzI0wvBAyTTGMN1EEAnC+MFaJted10Brt13GrIc2uhg8k34LkOVXVTkQGkdAoR4 c1Je4Ao9Ez1IjdIvr8lTc5uK3GXO7kUteJE4FZ+u+JkRRTH/B2A3svHSah1NBJfLvZUQ 6a99wJxzG7sYcZ2X8avDM+xkSqCUOmzB87dd9vli/h35Z0c/baYZwDW1KMxvmA31xNoV 6PvQ== 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=X5NGO0v+/W8uC944qzjC1Frb59wIIg6zTHOHoqo4+E4=; b=eicMViyWgVU9xe0u4FNRURqYrpdN+4OLiCdjuhHm2s0kSLvTyn+oukVOIbWSMXY/lr hcRVDXHCbuyTqL497h8AEnP/Z8KVBMcpQiQboL+orT6d3Vx4KcfRLUrJ/ZpbsVFz6yLW U36GjXWgCD5RUZlPryozxbnzibZXG4hErwRBE3sOEZeWrR7DrQObcUrfam7YGQhhK90h iTriFV3wOn39g1htZdjvG2aRtoOQY3TFCvfZxJuHsnjcTZibZZofa7lNm0AT2ODTgVtD 0wFM8gn1QDwUKRvxyyoXpfPh5bnOmHcCXD3MdRg65FPUAUOuWLE1Nfzad2oMEABuhPKH i2Sw== X-Gm-Message-State: AJIora/IL3DYL8WSX/jcA1MTBtT7BmiZshHEVt2QYu08g0oXcw6HXz2f Sh4FRRRUaHPVWxsw5gWRDYOOEivB55gzpB8Wzx+HQjUm0c8= X-Google-Smtp-Source: AGRyM1thzqtkQGvBzfVsP0xDb2KxlxhdsJrSzelWOXBPzleTOTSvzFpeuV8tl4IljJQbksOrkLa8CQV6sYz1GDUuG4I= X-Received: by 2002:a05:6402:ea7:b0:433:6141:840e with SMTP id h39-20020a0564020ea700b004336141840emr29154030eda.266.1655725853265; Mon, 20 Jun 2022 04:50:53 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=kobarity@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:234873 Archived-At: Hi, The following steps will place the point at the beginning of the line "def bar():", not the line "def foo():". 1. emacs -Q 2. Load the following Python file using M-x find-file #+begin_src python def foo(): def bar(): pass pass #+end_src 3. M-> 4. M-: (python-nav-beginning-of-defun) This issue causes mark-defun/python-mark-defun to mark only the function bar, not the function foo, if the point is located at the end of the buffer. Best Regards, -- In GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu) of 2022-06-19 built on ubuntu System Description: Ubuntu 22.04 LTS Configured using: 'configure --without-x --with-gnutls=ifavailable' Configured features: ACL LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dnd dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils python json map comint regexp-opt ring cl-loaddefs cl-lib ansi-color seq term/screen term/xterm xterm gv subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify multi-tty make-network-process emacs) Memory information: ((conses 16 53843 6906) (symbols 48 6607 1) (strings 32 18599 1675) (string-bytes 1 607055) (vectors 16 10579) (vector-slots 8 125410 6998) (floats 8 27 381) (intervals 56 194 0) (buffers 992 12))