From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13438: 24.2.92; Infinite loop in python imenu support Date: Sun, 20 Jan 2013 22:01:34 -0500 Message-ID: References: <1AEAF732-314C-4E90-8F48-DAA237551495@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358737331 20725 80.91.229.3 (21 Jan 2013 03:02:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2013 03:02:11 +0000 (UTC) Cc: Ivan Andrus , 13438@debbugs.gnu.org To: Fabian Ezequiel Gallina Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 04:02:29 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tx7eX-0002Ft-9n for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2013 04:02:29 +0100 Original-Received: from localhost ([::1]:36227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx7eG-0000X1-AY for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 22:02:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx7eC-0000Wk-6p for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 22:02:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx7e6-0003Ot-2L for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 22:02:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx7e5-0003Op-VD for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 22:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tx7f4-0004R7-6v for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 22:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2013 03:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13438-submit@debbugs.gnu.org id=B13438.135873735917013 (code B ref 13438); Mon, 21 Jan 2013 03:03:02 +0000 Original-Received: (at 13438) by debbugs.gnu.org; 21 Jan 2013 03:02:39 +0000 Original-Received: from localhost ([127.0.0.1]:42147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tx7eg-0004QM-Uj for submit@debbugs.gnu.org; Sun, 20 Jan 2013 22:02:39 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:36246) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tx7ee-0004QF-Ng for 13438@debbugs.gnu.org; Sun, 20 Jan 2013 22:02:37 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Tx7df-0007g6-0O; Sun, 20 Jan 2013 22:01:35 -0500 X-Spook: United Nations Maple Comirex Rand Corporation benelux X-Ran: CX9 (Ivan Andrus's message of "Mon, 14 Jan 2013 21:59:01 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70121 Archived-At: Hi, could you look at this report please? http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13438 Ivan Andrus wrote: > The following happens on the Emacs 24 branch as well as trunk. > > From `emacs -Q` > > In a new python buffer, insert > > def bob(): > return 3 > > > and position the cursor before def. Then run M-x imenu, and you get the > message > > imenu-default-create-index-function: Infinite loop at *scratch*:1:imenu-prev-index-position-function does not move point > > -Ivan > > > In GNU Emacs 24.2.92.1 (i386-apple-darwin12.2.0, NS apple-appkit-1187.34) > of 2013-01-14 on oroszlan.local > Bzr revision: 111176 jan.h.d@swipnet.se-20130113193605-626pw01y497yubsc > Windowing system distributor `Apple', version 10.3.1187 > Configured using: > `configure '--with-ns'' > > Important settings: > value of $LC_CTYPE: UTF-8 > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Python > > Minor modes in effect: > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-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 > transient-mark-mode: t > > Recent input: > d e f SPC b o b , , ( ) : > s-x C-g M-x p y t h > SPC SPC SPC d r e t u r n SPC 5 > C-a C-k C-k C-k C-k C-k > C-k C-k C-h k > M-x i m e M-x r e p o r rn> > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > kill-region: The mark is not set now, so there is no region > Quit > python-indent-line: Arithmetic error [4 times] > byte-code: Beginning of buffer > python-indent-line: Arithmetic error [2 times] > Type C-x 1 to delete the help window, C-M-v to scroll help. > python-indent-line: Arithmetic error [2 times] > imenu-default-create-index-function: Infinite loop at *scratch*:1: imenu-prev-index-position-function does not move point > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml > mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev > gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util > mail-prsvr mail-utils imenu help-fns help-mode python rx easymenu comint > ring ansi-color time-date tooltip ediff-hook vc-hooks lisp-float-type > mwheel ns-win tool-bar dnd fontset image regexp-opt fringe > tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow > timer select scroll-bar mouse jit-lock font-lock syntax facemenu > font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan > thai tai-viet lao korean japanese hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese case-table epa-hook > jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces > cus-face macroexp files text-properties overlay sha1 md5 base64 format > env code-pages mule custom widget hashtable-print-readable backquote > make-network-process ns multi-tty emacs)