From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7053: Reftex is fully broken Date: Sat, 18 Sep 2010 16:47:01 +0200 Message-ID: References: <1284716487.5481.61.camel@piko.site> <83pqwc1t9p.fsf@gnu.org> <1284731388.5452.8.camel@piko.site> <83eics1guw.fsf@gnu.org> <1284783571.3343.8.camel@piko.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284822677 16228 80.91.229.12 (18 Sep 2010 15:11:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 15:11:17 +0000 (UTC) Cc: 7053@debbugs.gnu.org, Carsten Dominik To: =?UTF-8?Q?Alp=C3=A1r_?= =?UTF-8?Q?J=C3=BCttner?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 18 17:11:16 2010 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.69) (envelope-from ) id 1Owz4M-0002nF-0x for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Sep 2010 17:11:14 +0200 Original-Received: from localhost ([127.0.0.1]:59837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owz4L-00041N-8q for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Sep 2010 11:11:13 -0400 Original-Received: from [140.186.70.92] (port=34352 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owz3w-0003qD-2k for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 11:10:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Owz3t-0002ck-LU for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 11:10:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49077) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owz3t-0002cg-Id for bug-gnu-emacs@gnu.org; Sat, 18 Sep 2010 11:10:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Owyf0-0000ux-E2; Sat, 18 Sep 2010 10:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Sep 2010 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7053 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7053-submit@debbugs.gnu.org id=B7053.12848210883511 (code B ref 7053); Sat, 18 Sep 2010 14:45:02 +0000 Original-Received: (at 7053) by debbugs.gnu.org; 18 Sep 2010 14:44:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owyem-0000ua-8L for submit@debbugs.gnu.org; Sat, 18 Sep 2010 10:44:48 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owyek-0000uV-IT for 7053@debbugs.gnu.org; Sat, 18 Sep 2010 10:44:47 -0400 Original-Received: from ceviche.home (vpn-132-204-232-141.acd.umontreal.ca [132.204.232.141]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o8IEl22s025328; Sat, 18 Sep 2010 10:47:04 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 588FC6623B; Sat, 18 Sep 2010 16:47:01 +0200 (CEST) In-Reply-To: <1284783571.3343.8.camel@piko.site> ("=?UTF-8?Q?Alp=C3=A1r_?= =?UTF-8?Q?J=C3=BCttner?="'s message of "Sat, 18 Sep 2010 06:19:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3625=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 18 Sep 2010 10:45:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:40291 Archived-At: > I'm sorry. Here comes the lisp backtrace (when pressing C-c = ): > Lisp Backtrace: > "forward-sexp" (0xbfffc9b4) > "backward-sexp" (0xbfffcae4) > ---Type to continue, or q to quit--- > "latex-backward-sexp-1" (0xbfffcc24) > "byte-code" (0xbfffccd0) > "latex-forward-sexp" (0xbfffcf64) > "forward-sexp" (0xbfffd094) > "byte-code" (0xbfffd140) > "up-list" (0xbfffd3e4) > "byte-code" (0xbfffd490) > "byte-code" (0xbfffd6b0) > "reftex-what-macro" (0xbfffd924) > "reftex-label-location" (0xbfffda64) > "reftex-label-info" (0xbfffdba4) > "byte-code" (0xbfffdc60) > "reftex-parse-from-file" (0xbfffdef4) > "byte-code" (0xbfffdfa0) > "reftex-do-parse" (0xbfffe174) > "reftex-access-scan-info" (0xbfffe2a4) > "reftex-toc" (0xbfffe414) > "call-interactively" (0xbfffe5ac) > (gdb) Can you try the patch below, to see if it fixes your problem? Stefan === modified file 'lisp/textmodes/reftex-parse.el' --- lisp/textmodes/reftex-parse.el 2010-08-29 22:13:49 +0000 +++ lisp/textmodes/reftex-parse.el 2010-09-18 14:45:39 +0000 @@ -778,13 +778,15 @@ (narrow-to-region (max (point-min) bound) (point-max)) ;; move back out of the current parenthesis (while (condition-case nil - (progn (up-list -1) t) + (let ((forward-sexp-function nil)) + (up-list -1) t) (error nil)) (setq cnt 1 cnt-opt 0) ;; move back over any touching sexps (while (and (reftex-move-to-previous-arg bound) (condition-case nil - (progn (backward-sexp) t) + (let ((forward-sexp-function nil)) + (backward-sexp) t) (error nil))) (if (eq (following-char) ?\[) (incf cnt-opt)) (incf cnt)) @@ -973,7 +975,7 @@ (min (+ (point) 150) (point-max) (condition-case nil - (progn + (let ((forward-sexp-function nil)) (up-list 1) (1- (point))) (error (point-max))))))