bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56600: 29.0.50; Python navigation problem with an empty line in nest


From: kobarity
Subject: bug#56600: 29.0.50; Python navigation problem with an empty line in nested defun
Date: Sat, 16 Jul 2022 22:28:03 +0900

Hi,

The following steps will place the point at the beginning of the line
"def foo():", not the line "def bar():".

1. emacs -Q
2. Load the following Python file using M-x find-file

#+begin_src python
def foo():
    def bar():

        pass

    def baz():
        pass
#+end_src

3. M-: (forward-line 2)
4. M-: (python-nav-beginning-of-defun)

python-nav-end-of-defun has a similar problem.

Best Regards,

--

In GNU Emacs 29.0.50 (build 6, x86_64-pc-linux-gnu)
 of 2022-07-16 built on ubuntu
Repository revision: ea9b442b82f1efd7e41094b455a00d73c16d0fc3
Repository branch: master
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: Lisp Interaction

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
  indent-tabs-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 regexp-opt sort mail-extr emacsbug message mailcap yank-media
puny dired dnd dired-loaddefs rfc822 mml mml-sec password-cache epa
derived epg rfc6068 epg-config gnus-util text-property-search time-date
subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils term/screen term/xterm xterm
byte-opt gv bytecomp byte-compile cconv rmc 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 seq 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 44274 5286)
 (symbols 48 5634 1)
 (strings 32 15464 1865)
 (string-bytes 1 494915)
 (vectors 16 8324)
 (vector-slots 8 102199 7439)
 (floats 8 25 355)
 (intervals 56 202 14)
 (buffers 992 11))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]