X-Loop: help-debbugs@HIDDEN Subject: bug#57686: 28.1.91; Python-mode C-M-a and C-M-e not always symmetrical Resent-From: Fabrice Bauzac-Stehly <noon@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 08 Sep 2022 20:11:02 +0000 Resent-Message-ID: <handler.57686.B.166266783619632 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 57686 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 57686 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.166266783619632 (code B ref -1); Thu, 08 Sep 2022 20:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Sep 2022 20:10:36 +0000 Received: from localhost ([127.0.0.1]:60171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oWNr9-00056a-Rv for submit <at> debbugs.gnu.org; Thu, 08 Sep 2022 16:10:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:50072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <noon@HIDDEN>) id 1oWNr7-00056R-B2 for submit <at> debbugs.gnu.org; Thu, 08 Sep 2022 16:10:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <noon@HIDDEN>) id 1oWNr7-0006WN-5l for bug-gnu-emacs@HIDDEN; Thu, 08 Sep 2022 16:10:33 -0400 Received: from mx.kolabnow.com ([212.103.80.155]:25460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <noon@HIDDEN>) id 1oWNr2-0003PN-Al for bug-gnu-emacs@HIDDEN; Thu, 08 Sep 2022 16:10:30 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id ECF2F1589 for <bug-gnu-emacs@HIDDEN>; Thu, 8 Sep 2022 22:10:21 +0200 (CEST) Authentication-Results: ext-mx-out001.mykolab.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=mykolab.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mykolab.com; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received:received; s=dkim20160331; t=1662667820; x=1664482221; bh=LTsYSwNqjMtxfFRl OHQKllOgc5Y49QU8oa1I+d8BBKQ=; b=ZnMeKp2IDfrezLLq8GO/ZJePgJBdyK1o IFZVpNlZaLCQjZ3tI2ThMM1warLlv7EB87rwNiGP2TM4MI1C6WZ4DWmapPnvCJTP k26im6SBR9/c32wvmYTd7tld9CaaAlkUAimpeQj5SioS9ilsVoEAeGxKYlxCH0vT vjVUcFRlJm+DlUOmw5hYimUM7P6kibJYkj8z4oWijbc8d8baR/6Jq06XJfdt3lTX OqpCQHChiF9F0ChSBE/tCcgp0a0nBxSMdZDlqJQHj8ndtcOu4efy4PSFNRCwlWTx ZJHxyABBh5YorafypP2qpLC5WaTDqnoGbv8LZfpVMWxX3ud7OIJ3RMWY/eiAtCqG 3wcsCP/lTYEF4luQAADtUcOXfr9qMm3YjyIpxW4t0wsuh1vMSsA4bIr5zKmdBsZG ARLexElj1qMOsPtW3TVdJNrI1EfYeHqsTRVayR9VDUE7r6b1VwfOZOBXmRilBgm9 EF93WiEe2JFWwBPD3z2QNLkb7X/QoI6s7dWpprv8alKGwTlZSwv/oYrn9HHTRFJx y5MnZRVy61cypwDGqpYhpyAATWeakwBGUgN/J5jP3mR1tMJ7If+Qcti4oANoXn95 Kh3F5CVZ5haR6NWu6sK+5p1AJd7kbsNj3RBL4+0X6dqFmyME0zd/BB0iSFThF3OG QXz7YRJQS/E= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cahM9kr64W-Y for <bug-gnu-emacs@HIDDEN>; Thu, 8 Sep 2022 22:10:20 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by mx.kolabnow.com (Postfix) with ESMTPS id D338EA25 for <bug-gnu-emacs@HIDDEN>; Thu, 8 Sep 2022 22:10:19 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id E7F89F97 for <bug-gnu-emacs@HIDDEN>; Thu, 8 Sep 2022 22:10:18 +0200 (CEST) Received: from noon by fedora.home with local (Exim 4.95) (envelope-from <noon@HIDDEN>) id 1oWNqq-0001Dw-Jm for bug-gnu-emacs@HIDDEN; Thu, 08 Sep 2022 22:10:16 +0200 From: Fabrice Bauzac-Stehly <noon@HIDDEN> Date: Thu, 08 Sep 2022 22:10:16 +0200 Message-ID: <874jxhwrtj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.103.80.155; envelope-from=noon@HIDDEN; helo=mx.kolabnow.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, 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-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) Hello, In python-mode, with a class that has methods, if I do end-of-defun then beginning-of-defun, I do not necessarily come back to the original location. ================ Example: In a python-mode buffer, put: ---- def fun1(): pass class MyClass: def meth1(self): pass def meth2(self): pass def meth3(self): pass def fun2(): pass def fun3(): pass ---- Place the point at the beginning of the "class MyClass" line. Hit C-M-e to go to the end of the MyClass defun. Hit C-M-a. Point goes to the first line of meth3, but I would expect to go back to the beginning of the MyClass defun. This is especially annoying when I have a class with dozens of methods, in which case I have to hit C-M-a a number of times to go back to the first line of the class, even though I have left it with only one keystroke C-M-e. ================ By doing various C-M-e and C-M-a, it feels like python-mode defun motion sometimes considers that a method inside a class is a defun, however if I understood correctly[1], a defun is a top-level statement, so methods should never be considered as defuns. Is it the root cause of my problem? [1] https://lists.gnu.org/archive/html/emacs-devel/2022-08/msg00200.html ================ Note: I have put this workaround in my configuration, which seems to work reasonably well for the moment: ---- ;; Somehow fix C-M-a (backward-defun) by removing "(* space)" in python.el: (require 'python) (defvar python-nav-beginning-of-defun-regexp (python-rx line-start defun (+ space) (group symbol-name)) "Regexp matching class or function definition. The name of the defun should be grouped so it can be retrieved via `match-string'.") ---- Thanks! In GNU Emacs 28.1.91 (build 1, x86_64-pc-linux-gnu, cairo version 1.17.6) of 2022-09-02 built on fedora.home Repository revision: e6af4968f947a3e536fbd80e74fea44ca18e22ac Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12201003 System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure -C --with-x-toolkit=no' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Load-path shadows: /home/noon/.emacs.d/elpa/transient-0.3.7/transient hides /home/noon/git/emacs/lisp/transient Features: (shadow sort mail-extr emacsbug sendmail eieio-opt speedbar ezimage dframe shortdoc help-fns radix-tree my-present my-timeline ert ewoc debug backtrace find-func calc-arith my-shell my-host-resolve vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc bug-reference face-remap whitespace copyright pcase mule-util cal-china lunar solar cal-dst cal-islam holidays hol-loaddefs vc-git vc-dispatcher appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs find-lisp filecache my-magit magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit rx log-edit message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor magit-mode transient cl-extra help-mode magit-git magit-section magit-utils crm dash my-bazel my-skeletons skeleton sh-script smie executable python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 ls-lisp format-spec comint ring ansi-color cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ibuf-macs ibuffer ibuffer-loaddefs calc-prog calc-ext calc calc-loaddefs rect calc-macs gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date mail-utils mm-util mail-prsvr elec-pair delsel auth-source-pass server jira-markup-mode derived thingatpt edmacro kmacro cl noutline outline easy-mmode cus-edit pp cus-load wid-edit info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic 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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x multi-tty make-network-process emacs) Memory information: ((conses 16 270541 36722) (symbols 48 26212 6) (strings 32 86110 1992) (string-bytes 1 2952037) (vectors 16 43611) (vector-slots 8 492180 28335) (floats 8 636 199) (intervals 56 1264 0) (buffers 992 23)) Best regards -- Fabrice Bauzac-Stehly PGP 01EEACF8244E9C14B551C5256ADA5F189BD322B6
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Fabrice Bauzac-Stehly <noon@HIDDEN> Subject: bug#57686: Acknowledgement (28.1.91; Python-mode C-M-a and C-M-e not always symmetrical) Message-ID: <handler.57686.B.166266783619632.ack <at> debbugs.gnu.org> References: <874jxhwrtj.fsf@HIDDEN> X-Gnu-PR-Message: ack 57686 X-Gnu-PR-Package: emacs Reply-To: 57686 <at> debbugs.gnu.org Date: Thu, 08 Sep 2022 20:11:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 57686 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 57686: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57686 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#57686: 28.1.91; Python-mode C-M-a and C-M-e not always symmetrical Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 09 Sep 2022 11:28:02 +0000 Resent-Message-ID: <handler.57686.B.166272286812332 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 57686 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 57686 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.166272286812332 (code B ref -1); Fri, 09 Sep 2022 11:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Sep 2022 11:27:48 +0000 Received: from localhost ([127.0.0.1]:60946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oWcAm-0003Cq-3e for submit <at> debbugs.gnu.org; Fri, 09 Sep 2022 07:27:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:41524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <andreas.roehler@HIDDEN>) id 1oWcAk-0003Ci-Cy for submit <at> debbugs.gnu.org; Fri, 09 Sep 2022 07:27:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>) id 1oWcAk-00067z-7m for bug-gnu-emacs@HIDDEN; Fri, 09 Sep 2022 07:27:46 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:43949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <andreas.roehler@HIDDEN>) id 1oWcAi-000203-6z for bug-gnu-emacs@HIDDEN; Fri, 09 Sep 2022 07:27:45 -0400 Received: from [192.168.178.61] ([89.247.171.239]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MCKO4-1oepMf1mE6-009Oy8 for <bug-gnu-emacs@HIDDEN>; Fri, 09 Sep 2022 13:27:39 +0200 Content-Type: multipart/alternative; boundary="------------ULR6009OFkcXSQfiCjaclfmc" Message-ID: <f7da163f-726a-09c5-695b-6aedbce5fd1f@HIDDEN> Date: Fri, 9 Sep 2022 13:27:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US References: <874jxhwrtj.fsf@HIDDEN> From: Andreas =?UTF-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN> In-Reply-To: <874jxhwrtj.fsf@HIDDEN> X-Provags-ID: V03:K1:CepIHt6tqP86QsXOFkn3MEp6WUoE7b3MCVLsz4CjFhoRyYatQrW /b+7yw0JgS94+NHlwtHBsW4yn3TbTK+hMn+r+meIqnrWkm6aWiOsgPMosmDjib/t/N2R646 7y+ysn8juITjx24Db8k5/NvZm9xnSzjzy2XmUMX7dW0Xam+Blg6T/6FOSWWo7Kmh+Ee6t1t 0eS0YZ/jVS8Q22roV/sQA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:H4x/rveanP8=:G9mORSkQzpeBvcuTRh6fkR S1DIaM1mT/7YiKFPXasnhY69E/6iATdjQ05gv+yu7XAS7nUoF7ai7U1SZWanoYUYK4nNkflw6 goIG/u9KGW2h1FbE3aL32dAOog1/BAytrtqanml8WFsI2F4NdpLzuQQmJesAuSP8xe0hnsUgO /TGKjBIXAhNDgdOjPSC7UrFzZHp1deq74Dm2MsPH3M1O7itYcdl4aIRFtzTOCrPwxpm7lC9AG 2338F8oNAM5HVOGdzEubayCAbfHxxXW2H1W6v4s6BAV7Uyz6qD+1Wxxn6CGHTVggVCekSM5A8 /45QO4dg0g3NXr/ZeR9qTlw+7bAu61FVVAer7jkdVXYbka7SAGMc8iROE0STgInfLSLXzDnyt CBfwoHJ74zAEgvn4hTptyka0EdEUA2EhVSXeXue1vhGjHZxXMQwTYQgZUjmvletHEgIT7EMju 12W5QqE2TtM3gkg5WZaj72wBNXabv6uL+Bos9em82fsp8zyhV2mxEIddEwXZwZls9/FOAgnjA m/Hd+w5d20a5u8ab+5By8bHQhN6TWC2JryPzeqsE66criqSNufGEznWSj5lPKxYz0rC9n1GbR 2N76+Oyk4XidgfmaVAnVK8IH0aY8iAk9BanmrA7vW/OvdgL3xN4BpYUygmquc18gaBT39xBYq gb/Nan6Fvhqa98RRPLoiqAxRXsN7WV/dSWk2Atro5Bui0dcGMB6QSKnccxN8xbJT2je93OWjU 01n6wAIv9QJ3Bp2nccs97W6fq5FJGvpgVWiA0Fw2iWwBcVMaWyRa/wKCKBOru4yzWFF3bC1XG i7jpu85sdZHlh2FnXt4V54LM2ZPHA== Received-SPF: none client-ip=217.72.192.73; envelope-from=andreas.roehler@HIDDEN; helo=mout.kundenserver.de X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, NICE_REPLY_A=-2.079, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------ULR6009OFkcXSQfiCjaclfmc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 08.09.22 um 22:10 schrieb Fabrice Bauzac-Stehly: > Hello, > > In python-mode, with a class that has methods, if I do end-of-defun > then beginning-of-defun, I do not necessarily come back to the > original location. > > ================ > > Example: > > In a python-mode buffer, put: > ---- > def fun1(): > pass > > class MyClass: > def meth1(self): > pass > > def meth2(self): > pass > > def meth3(self): > pass > > def fun2(): > pass > > def fun3(): > pass > ---- May confirm the bug with GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-09-01 BTW if starting from an empty line just line below def meth3(self) and before "pass", it should reach "def meth3(self)", as it does. From empty line below "pass" however should reach beginning of class. --------------ULR6009OFkcXSQfiCjaclfmc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <pre> </pre> <div class="moz-cite-prefix"> <pre>Am 08.09.22 um 22:10 schrieb Fabrice Bauzac-Stehly:</pre> </div> <blockquote type="cite" cite="mid:874jxhwrtj.fsf@HIDDEN"> <pre class="moz-quote-pre" wrap="">Hello, In python-mode, with a class that has methods, if I do end-of-defun then beginning-of-defun, I do not necessarily come back to the original location. ================ Example: In a python-mode buffer, put: ---- def fun1(): pass class MyClass: def meth1(self): pass def meth2(self): pass def meth3(self):</pre> </blockquote> <pre> </pre> <blockquote type="cite" cite="mid:874jxhwrtj.fsf@HIDDEN"> <pre class="moz-quote-pre" wrap=""> pass def fun2(): pass def fun3(): pass ---- </pre> </blockquote> <pre>May confirm the bug with </pre> <pre>GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-09-01 </pre> <pre>BTW if starting from an empty line just line below </pre> <pre class="moz-quote-pre" wrap=""><pre> def meth3(self)</pre><pre> and before "pass", it should reach "def meth3(self)", as it does.</pre><pre> From empty line below "pass" however should reach beginning of class.</pre> </pre> </body> </html> --------------ULR6009OFkcXSQfiCjaclfmc--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.