bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] 1184; AUCTeX hangs when reformating lines in dtx mode


From: David Reitter
Subject: [Bug-AUCTeX] 1184; AUCTeX hangs when reformating lines in dtx mode
Date: Wed, 29 Aug 2007 18:52:47 +0100

Loading the enclosed file text.dtx will open it in doctex-mode. M-q (bound to fill-paragraph) does not terminate.

Forcefully terminating it with C-g shows the stack trace below, which leads me to believe that `LaTeX-fill-paragraph' is at fault. The buffer shows that lines are inserted indefinitely with the comment sign % in them.

I received the bug report attached at the end from Aquamacs user Morten Høgholm <address@hidden>. I could reproduce the issue on my system.



Debugger entered--Lisp error: (quit)
  LaTeX-fill-region-as-para-do(1 #<marker at 2079 in test.dtx> nil)
  LaTeX-fill-region-as-paragraph(1 205 nil)
  LaTeX-fill-paragraph(nil)
#[(arg) "...*)+‡" [fill-paragraph-function fill-paragraph- handle-comment function arg comment-start comment-end t minibufferp 1 fill-minibuffer-function nil "" fill-comment-paragraph "\\|[ ]*\\ (?:" "\\)" move-to-left-margin zerop forward-paragraph backward- paragraph fill-region fill-region-as-paragraph paragraph-start fill- pfx before comment-start-skip beg end use-hard-newlines] 5 2094953 (progn (barf-if-buffer-read-only) (list ...))](nil) apply(#[(arg) "... #*)+‡" [fill-paragraph-function fill- paragraph-handle-comment function arg comment-start comment-end t minibufferp 1 fill-minibuffer-function nil "" fill-comment-paragraph "\\|[ ]*\\(?:" "\\)" move-to-left-margin zerop forward-paragraph backward-paragraph fill-region fill-region-as-paragraph paragraph- start fill-pfx before comment-start-skip beg end use-hard-newlines] 5 2094953 (progn (barf-if-buffer-read-only) (list ...))] nil)
  filladapt-funcall(fill-paragraph nil)
(catch (quote done) (if (and filladapt-mode ...) (save- restriction ...)) (filladapt-funcall function arg))
  filladapt-fill-paragraph(fill-paragraph nil)
(let ((filladapt-inside-filladapt t)) (filladapt-fill-paragraph (quote fill-paragraph) arg))
  fill-paragraph(nil)
  call-interactively(fill-paragraph)

------------------------------------------------------------------------



Emacs : GNU Emacs 22.1.50.1 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0)
 of 2007-08-28 on applecore.inf.ed.ac.uk - Aquamacs Distribution 1.2CVS
Package: 11.84

current state:
==============
(setq
 AUCTeX-date "2007-01-12"
 window-system 'mac
 LaTeX-version "2e"
 TeX-style-path '("style" "auto"
"/Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/ edit-modes/auctex/style" "/Applications/Aquamacs Emacs.app/Contents/ Resources/site-lisp/edit-modes/var/auctex")
 TeX-auto-save nil
 TeX-parse-self t
 TeX-master nil
 TeX-command-list '(("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil
                     (plain-tex-mode ams-tex-mode texinfo-mode) :help
                     "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %t" TeX-run-compile nil
                     (texinfo-mode) :help
                     "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo --html %t"
                     TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt" "texexec --once --texutil %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt once")
                    ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX
                     nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
                     "Run BibTeX")
                    ("View" "%V" TeX-run-discard t t :help "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help
                     "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-command t t
                     :help "Generate PostScript file")
                    ("Index" "makeindex %s" TeX-run-command nil t :help
                     "Create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil
                     (latex-mode) :help
                     "Check LaTeX file for correctness")
                    ("Spell" "(TeX-ispell-document \"\")"
                     TeX-run-function nil t :help
                     "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t
                     :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )



Attachment: test.dtx
Description: Binary data



Begin forwarded message:

From: Morten Høgholm <address@hidden>
Date: 29 August 2007 17:34:32 BDT
To: address@hidden
Subject: [Aquamacs-bugs] v1.1 hangs when reformating lines in dtx mode

Hi,

I am experiencing a *really* annoying thing when reflowing text in dtx
mode. As an example I can open the sample file test.dtx (attached) and all is seemingly well. But when I put the curser in the text and press "Esc q"
to reflow Aquamacs hangs and cpu usage goes to 80-90%. I have to do a
force quit to move on. I'm no expert in debugging so all I have done is
attach the output from Spin Control (1.7MB unzipped, 12KB zipped). I'm
downloading the latest nightly build to see if that makes a difference but
it might take a while as I am on a terribly slow connection.

Any ideas as to what is going on? Same problem with v1.0b but .9.9d works
fine. Environment is PPC 10.4.10. Any other information I can give?

Cheers,
--
Morten


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]