From unknown Sat Aug 16 21:15:44 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4667: 23.1.50; python-end-of-defun breaks when using prefix args Reply-To: Ian Eure , 4667@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:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4667 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125493604622051 (code B ref -1); Wed, 07 Oct 2009 17:25:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Oct 2009 17:20:46 +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,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 n97HKjsP022041 for ; Wed, 7 Oct 2009 10:20:46 -0700 Received: from mx10.gnu.org ([199.232.76.166]:48723) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MvaBt-0001UK-90 for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:44 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MvaBq-0003eu-GM for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:40 -0400 Received: from mail.digg.com ([64.191.203.36]:49552) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvaBp-0003eT-To for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 28182A84F25 for ; Wed, 7 Oct 2009 10:20:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at d242.digg.internal Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lBRnxTQJB69k for ; Wed, 7 Oct 2009 10:20:33 -0700 (PDT) Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id A76E1A84F1F for ; Wed, 7 Oct 2009 10:20:33 -0700 (PDT) Message-Id: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> From: Ian Eure To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 7 Oct 2009 10:20:33 -0700 X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) According to the help for `end-of-defun': Move forward to next end of defun. With argument, do it that many times. Python-mode=92s python-end-of-defun function does not work this way when 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=92s 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 x M-m C-k p a s s C-n C-x C-o M-< C-M-e 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 C-g M-< C-c C-SPC C-x b C-h k C-M-e C-x o 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 r e p o t r b C-g C-x o C-n 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 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 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 C-b C-n C-n C-x o C-n C-p C-n C-h f p y t h m o e C-x o C-n C-p C-e C-b C-b C-b C-b C-b C-b M-< C-s e n d - o f d e f u n C-s C-s - d 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 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 C-n C-x b C-x b C-x b C-g C-x b C-g C-x b M-< M-x p y t h o n - e n M-x M-p M-x M-p C-g M-< C-f C-f C-f C-f C-a C-n C-n C-n C-f C-a M-< C-M-e M-< C-2 C-M-e M-x r e p o r t - e m b P y t h o n C-x o C-x b C-g C-x o C-n C-p C-n C-p C-n C-n C-p C-x b . C-x o 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/=20 lisp/ime-dired /Users/ieure/.emacs.d/lisp/json hides /Applications/Emacs.app/Contents/=20= Resources/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 From unknown Sat Aug 16 21:15:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ian Eure Subject: bug#4667: closed (Re: bug#4667: 23.1.50; python-end-of-defun breaks when using prefix args) Message-ID: References: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> X-Gnu-PR-Message: they-closed 4667 X-Gnu-PR-Package: emacs Reply-To: 4667@debbugs.gnu.org Date: Mon, 18 Jun 2012 21:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1340056202-27542-1" This is a multi-part message in MIME format... ------------=_1340056202-27542-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #4667: 23.1.50; python-end-of-defun breaks when using prefix args which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4667@debbugs.gnu.org. --=20 4667: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4667 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340056202-27542-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4667-done) by debbugs.gnu.org; 18 Jun 2012 21:49:11 +0000 Received: from localhost ([127.0.0.1]:47230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sgjot-000795-A2 for submit@debbugs.gnu.org; Mon, 18 Jun 2012 17:49:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:52402) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sgjor-00078z-Oj for 4667-done@debbugs.gnu.org; Mon, 18 Jun 2012 17:49:10 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Sgjlf-0006kd-6n; Mon, 18 Jun 2012 17:45:51 -0400 From: Glenn Morris To: 4667-done@debbugs.gnu.org Subject: Re: bug#4667: 23.1.50; python-end-of-defun breaks when using prefix args References: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> X-Spook: blackjack AMEMB Europol Albanian unclassified CESID X-Ran: E_Y~FtO*5|7LZ?p\,yYgFe{.-q=CIW:PR+D-O_a\w2k-8OxvKXsZWn))y6oz(ZLMSgjk][ X-Hue: green X-Attribution: GM Date: Mon, 18 Jun 2012 17:45:51 -0400 In-Reply-To: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> (Ian Eure's message of "Wed, 7 Oct 2009 10:20:33 -0700") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 4667-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Version: 24.2 Thanks for the report. The Emacs trunk has a new python.el, and it seems your problem is fixed there. This should appear in Emacs 24.2. ------------=_1340056202-27542-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 7 Oct 2009 17:20:46 +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,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 n97HKjsP022041 for ; Wed, 7 Oct 2009 10:20:46 -0700 Received: from mx10.gnu.org ([199.232.76.166]:48723) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MvaBt-0001UK-90 for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:44 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MvaBq-0003eu-GM for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:40 -0400 Received: from mail.digg.com ([64.191.203.36]:49552) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvaBp-0003eT-To for emacs-pretest-bug@gnu.org; Wed, 07 Oct 2009 13:20:38 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 28182A84F25 for ; Wed, 7 Oct 2009 10:20:34 -0700 (PDT) X-Virus-Scanned: amavisd-new at d242.digg.internal Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lBRnxTQJB69k for ; Wed, 7 Oct 2009 10:20:33 -0700 (PDT) Received: from [10.2.16.50] (diggstage01.digg.com [64.191.203.34]) by mail.digg.com (Postfix) with ESMTP id A76E1A84F1F for ; Wed, 7 Oct 2009 10:20:33 -0700 (PDT) Message-Id: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> From: Ian Eure To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: 23.1.50; python-end-of-defun breaks when using prefix args Date: Wed, 7 Oct 2009 10:20:33 -0700 X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) According to the help for `end-of-defun': Move forward to next end of defun. With argument, do it that many times. Python-mode=92s python-end-of-defun function does not work this way when 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=92s 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 x M-m C-k p a s s C-n C-x C-o M-< C-M-e 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 C-g M-< C-c C-SPC C-x b C-h k C-M-e C-x o 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 r e p o t r b C-g C-x o C-n 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 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 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 C-b C-n C-n C-x o C-n C-p C-n C-h f p y t h m o e C-x o C-n C-p C-e C-b C-b C-b C-b C-b C-b M-< C-s e n d - o f d e f u n C-s C-s - d 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 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 C-n C-x b C-x b C-x b C-g C-x b C-g C-x b M-< M-x p y t h o n - e n M-x M-p M-x M-p C-g M-< C-f C-f C-f C-f C-a C-n C-n C-n C-f C-a M-< C-M-e M-< C-2 C-M-e M-x r e p o r t - e m b P y t h o n C-x o C-x b C-g C-x o C-n C-p C-n C-p C-n C-n C-p C-x b . C-x o 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/=20 lisp/ime-dired /Users/ieure/.emacs.d/lisp/json hides /Applications/Emacs.app/Contents/=20= Resources/lisp/json ------------=_1340056202-27542-1-- From unknown Sat Aug 16 21:15:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ian Eure Subject: bug#4666: closed (Re: bug#4667: 23.1.50; python-end-of-defun breaks when using prefix args) Message-ID: References: X-Gnu-PR-Message: they-closed 4666 X-Gnu-PR-Package: emacs Reply-To: 4666@debbugs.gnu.org Date: Mon, 18 Jun 2012 21:50:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1340056203-27542-3" This is a multi-part message in MIME format... ------------=_1340056203-27542-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #4667: 23.1.50; python-end-of-defun breaks when using prefix args which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 4666@debbugs.gnu.org. --=20 4667: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4667 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340056203-27542-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4667-done) by debbugs.gnu.org; 18 Jun 2012 21:49:11 +0000 Received: from localhost ([127.0.0.1]:47230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sgjot-000795-A2 for submit@debbugs.gnu.org; Mon, 18 Jun 2012 17:49:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:52402) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sgjor-00078z-Oj for 4667-done@debbugs.gnu.org; Mon, 18 Jun 2012 17:49:10 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Sgjlf-0006kd-6n; Mon, 18 Jun 2012 17:45:51 -0400 From: Glenn Morris To: 4667-done@debbugs.gnu.org Subject: Re: bug#4667: 23.1.50; python-end-of-defun breaks when using prefix args References: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> X-Spook: blackjack AMEMB Europol Albanian unclassified CESID X-Ran: E_Y~FtO*5|7LZ?p\,yYgFe{.-q=CIW:PR+D-O_a\w2k-8OxvKXsZWn))y6oz(ZLMSgjk][ X-Hue: green X-Attribution: GM Date: Mon, 18 Jun 2012 17:45:51 -0400 In-Reply-To: <19BFC6CD-1D9A-4407-9D41-ED1B376B055F@digg.com> (Ian Eure's message of "Wed, 7 Oct 2009 10:20:33 -0700") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 4667-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Version: 24.2 Thanks for the report. The Emacs trunk has a new python.el, and it seems your problem is fixed there. This should appear in Emacs 24.2. ------------=_1340056203-27542-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 Subject: 23.1.50; python-end-of-defun breaks when using prefix args 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 ------------=_1340056203-27542-3--