From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4666: 23.1.50; python-end-of-defun breaks when using prefix args Date: Wed, 07 Oct 2009 10:15:23 -0700 Message-ID: Reply-To: Ian Eure , 4666@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254938075 28189 80.91.229.12 (7 Oct 2009 17:54:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Oct 2009 17:54:35 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 07 19:54:25 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MvaiV-0004SX-G9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 19:54:24 +0200 Original-Received: from localhost ([127.0.0.1]:38133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvaiV-0004Mu-4l for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 13:54:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvaII-0001Id-Ov for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2009 13:27:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvaID-0001AE-60 for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2009 13:27:17 -0400 Original-Received: from [199.232.76.173] (port=44912 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvaIC-00019a-2Y for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2009 13:27:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33287) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MvaIB-0004Ye-H0 for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2009 13:27:11 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n97HR9FF022764; Wed, 7 Oct 2009 10:27:09 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n97HK454021527; Wed, 7 Oct 2009 10:20:04 -0700 Resent-Date: Wed, 7 Oct 2009 10:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ian Eure Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 07 Oct 2009 17:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4666 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125493573121310 (code B ref -1); Wed, 07 Oct 2009 17:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 7 Oct 2009 17:15:31 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-Received: by neutron.local (Postfix, from userid 502) id 4CC03316DE341; Wed, 7 Oct 2009 10:15:23 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 07 Oct 2009 13:27:17 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31766 gmane.emacs.pretest.bugs:25108 Archived-At: 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