all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Alpár Jüttner" <alpar@cs.elte.hu>
Cc: 7053@debbugs.gnu.org, Carsten Dominik <dominik@science.uva.nl>
Subject: bug#7053: Reftex is fully broken
Date: Sat, 18 Sep 2010 16:47:01 +0200	[thread overview]
Message-ID: <jwveicraz52.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <1284783571.3343.8.camel@piko.site> ("Alpár Jüttner"'s message of "Sat, 18 Sep 2010 06:19:31 +0200")

> I'm sorry. Here comes the lisp backtrace (when pressing C-c = ):

> Lisp Backtrace:
> "forward-sexp" (0xbfffc9b4)
> "backward-sexp" (0xbfffcae4)
> ---Type <return> to continue, or q <return> 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))))))






  parent reply	other threads:[~2010-09-18 14:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-17  9:41 bug#7053: Reftex is fully broken Alpár Jüttner
2010-09-17 11:52 ` Eli Zaretskii
2010-09-17 13:49   ` Alpár Jüttner
2010-09-17 16:20     ` Eli Zaretskii
2010-09-18  4:19       ` Alpár Jüttner
2010-09-18  9:21         ` Eli Zaretskii
2010-09-18 14:47         ` Stefan Monnier [this message]
2010-09-19  5:34           ` Alpár Jüttner
     [not found]         ` <83mxrfz9se.fsf@gnu.org>
2010-09-18 15:16           ` bug#7053: [AUCTeX-devel] " Ralf Angeli
     [not found]           ` <87vd635bfi.fsf@caeruleus.net>
2010-09-18 16:11             ` Stefan Monnier
     [not found]             ` <jwv62y39gts.fsf-monnier+emacs@gnu.org>
2010-09-18 16:28               ` Ralf Angeli
2010-09-19  8:48               ` Andreas Röhler
2010-09-20 23:40               ` Stefan Monnier
2010-09-19  5:24           ` Alpár Jüttner
2010-09-19  5:58             ` Eli Zaretskii
     [not found]             ` <E1OxCvN-0001nb-Jl@fencepost.gnu.org>
2010-09-19  6:42               ` Alpár Jüttner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwveicraz52.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=7053@debbugs.gnu.org \
    --cc=alpar@cs.elte.hu \
    --cc=dominik@science.uva.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.