unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: kobarity <kobarity@gmail.com>
To: 56105@debbugs.gnu.org
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	[thread overview]
Message-ID: <CAMQkrSoGAm=n4R04ROxc6C4y_YGOtCYDbEe2RkTxF-fT76DrkQ@mail.gmail.com> (raw)

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))





             reply	other threads:[~2022-06-20 11:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-20 11:50 kobarity [this message]
     [not found] ` <handler.56105.B.165572586032307.ack@debbugs.gnu.org>
2022-06-20 12:01   ` bug#56105: 29.0.50; python-nav-beginning-of-defun does not handle nested functions properly kobarity
2022-06-21 11:37     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMQkrSoGAm=n4R04ROxc6C4y_YGOtCYDbEe2RkTxF-fT76DrkQ@mail.gmail.com' \
    --to=kobarity@gmail.com \
    --cc=56105@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).