🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98976

Infinite loop in (forward-paragraph -1)

#98976
From: "Nelson H.F. Beebe"
Date: Wed, 12 Dec 1990 18:53
35 lines
1766 bytes
In GNU Emacs 18.55 (and likely earlier versions), if in
tex-mode, you have a paragraph whose first line begins with a
backslash, and then you type M-g (fill-region), you get an
infinite loop.  M-q (fill-paragraph) works fine.

I've traced the problem to fill-region calling
(forward-paragraph -1), and it appears that the section

	    ;; Found one.
	    (progn
	      (while (looking-at paragraph-separate)
		(forward-line 1))
	      (if (eq (char-after (- (point) 2)) ?\n)
		  (forward-line -1)))

in forward-paragraph in lisp/paragraph.el is where the loop
happens.

Can this bug be reproduced elsewhere?  I've exhibited it
locally on Sun 3, Sun 4, DECstation 3100, and IBM RS/6000
systems.  Is a fix known?



========================================================================
Nelson H.F. Beebe
Center for Scientific Computing
Department of Mathematics
220 South Physics Building
University of Utah
Salt Lake City, UT 84112
 Tel: (801) 581-5254
 FAX: (801) 581-4148
 Internet: beebe@math.utah.edu
========================================================================
Technical Details
Message-ID: <CMM.0.88.661053213.beebe@sandy.math.utah.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!SANDY.MATH.UTAH.EDU!beebe

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,23dad4245b57fd80,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-12-12 10:53:33 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!SANDY.MATH.UTAH.EDU!beebe
From: beebe@SANDY.MATH.UTAH.EDU ("Nelson H.F. Beebe")
Newsgroups: gnu.emacs.bug
Subject: Infinite loop in (forward-paragraph -1)
Message-ID: <CMM.0.88.661053213.beebe@sandy.math.utah.edu>
Date: 12 Dec 90 18:53:33 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 35
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Wed Dec 12 19:53:33 1990