From unknown Sun Aug 17 22:02:05 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4666: 23.1.50; python-end-of-defun breaks when using prefix args Reply-To: Ian Eure , 4666@debbugs.gnu.org Resent-From: Ian Eure Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 07 Oct 2009 17:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4666 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125493573121310 (code B ref -1); Wed, 07 Oct 2009 17:20:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Oct 2009 17:15:31 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.5 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n97HFTpU021307 for ; Wed, 7 Oct 2009 10:15:31 -0700 Received: from mail.gnu.org ([199.232.76.166]:48537 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Mva6r-0001L5-68 for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:15:29 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Mva6p-0002u8-RA for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:15:29 -0400 Received: from 64-71-7-198.static.wiline.com ([64.71.7.198]:60563 helo=neutron.local) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mva6o-0002tt-UU for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:15:27 -0400 Received: by neutron.local (Postfix, from userid 502) id 4CC03316DE341; Wed, 7 Oct 2009 10:15:23 -0700 (PDT) From: Ian Eure To: emacs-pretest-bug@gnu.org Date: Wed, 07 Oct 2009 10:15:23 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. According to the help for `end-of-defun': Move forward to next end of defun. With argument, do it that many times. Python-mode=E2=80=99s python-end-of-defun function does not work this way w= hen given a prefix argument. Paste this code into a python-mode buffer: def one(): pass def two(): pass def three(): pass def four(): pass def five(): pass xodef six(): pass def seven(): pass def eight(): pass If you position point on `def one' and press C-M-e twice, you end up on `def three'. However, if you press C-2 C-M-e, you end up on `def four'. It=E2=80=99s not a simple off-by-one error. If you press C-3 C-M-e, = you are put on `def six' rather than `def four'. In GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-09-24 on neutron.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Python Minor modes in effect: erc-track-mode: t erc-track-minor-mode: t erc-spelling-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-autojoin-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-readonly-mode: t erc-scrolltobottom-mode: t goto-address-prog-mode: t light-symbol-mode: t hl-line-mode: t which-function-mode: t yas/minor-mode: t ime-bindings: t shell-dirtrack-mode: t show-paren-mode: t recentf-mode: t iswitchb-mode: t cua-mode: t auto-insert-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: s s d e f SPC q u u z =20 x M-m C-k p a s s C-n C-x C-o M-< C-M-e=20 C-M-e C-M-e C-M-a C-M-a C-M-a C-2 C-M-e M-< C-3 C-M-e=20 C-g M-< C-c C-SPC C-x b C-h k C-M-e C-x o=20 C-n C-p C-n C-p C-n C-p C-n C-p C-x o C-n C-p C-n M-x=20 r e p o t r b C-g C-x o C-n=20 C-n C-p C-e C-b C-x o C-n C-p C-n C-p C-M-e C-M-e C-M-e=20 C-M-a C-M-a C-M-a C-x o C-n C-p C-n C-p C-n C-p C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-b C-n C-n C-x o C-n C-p C-n C-h f p y =20 t h m o e C-x o C-n C-p=20 C-e C-b C-b C-b C-b C-b C-b M-< C-s e n d=20 - o f d e f u n C-s C-s =20 - d=20 e f u n C-n C-p C-s C-s C-n C-n C-n C-n M-m C-n C-n=20 C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 C-n C-x b C-x b C-x b C-g C-x b C-g=20 C-x b M-< M-x p y t h o n - e n =20 M-x M-p M-x M-p C-g M-< C-f C-f C-f=20 C-f C-a C-n C-n C-n C-f C-a M-< C-M-e M-< C-2 C-M-e=20 M-x r e p o r t - e m b P y t=20 h o n C-x o C-x b C-g C-x o C-n C-p C-n=20 C-p C-n C-n C-p C-x b . C-x o=20 C-n M-x M-p Recent messages: uncompressing python.el.gz...done Mark set [2 times] Mark saved where search started [2 times] Quit [2 times] Mark set Quit Mark set [6 times] byte-code: Command attempted to use minibuffer while in minibuffer Quit Scanning for dabbrevs...100% [2 times] Load-path shadows: /Users/ieure/.emacs.d/ime-lisp/ime-dired hides /Users/ieure/.emacs.d/lisp/i= me-dired /Users/ieure/.emacs.d/lisp/json hides /Applications/Emacs.app/Contents/Reso= urces/lisp/json From lekktu@gmail.com Wed Oct 7 11:12:44 2009 Received: (at control) by emacsbugs.donarmstrong.com; 7 Oct 2009 18:12:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL,MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f217.google.com (mail-bw0-f217.google.com [209.85.218.217]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n97ICgXO030055 for ; Wed, 7 Oct 2009 11:12:43 -0700 Received: by bwz17 with SMTP id 17so4609020bwz.45 for ; Wed, 07 Oct 2009 11:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=n4HznAf4PII0qZOxrwPZKAB3+9o+CaSSaheDiDSFdN4=; b=vcwwDXz0kHOH8fii+SRNlD8pqeySLo4RrKUNFx3LChFgltO3pe1DQXIa0kMVTPAw73 4p1R9FoM88Ohk86LQzdj8vap0QT/M3Y2gB7i+MYWUKgnq97C00xPPhEHtlIz2YODhMz2 XcEnGmy3MB5+qesHLl0IR1tu1FTEbz/P9VVQM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Ji+gvbZIaf9C/zsmJZrFWXR87EKmqpF52HCuXNIQjTIwXhmSvinmXA5aD6itldlyST bcwZ1WGLfJboFIS2BxiLkRfzKo89QCMsgGv6EFjbrGoPwylF6sEAuDVRW1CymsJMx+KN njGnfTU8N/3pgeRaOZ89hRQm6E3x0RsLTT3BU= MIME-Version: 1.0 Received: by 10.239.144.100 with SMTP id n36mr23146hba.19.1254939156190; Wed, 07 Oct 2009 11:12:36 -0700 (PDT) From: Juanma Barranquero Date: Wed, 7 Oct 2009 20:12:16 +0200 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 reassign 4663 spam merge 4666 4667 quit