🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99665

Re: backward-kill-sentence loops.

#99665
From: carroll
Date: Wed, 27 Jun 1990 20:13
24 lines
1980 bytes
/* Written  6:11 am  Jun 27, 1990 by arndt@zyx.zyx.se in m.cs.uiuc.edu:gnu.emacs.bug */
/* ---------- "backward-kill-sentence loops." ---------- */
Problem: The command C-X DEL (backward-kill-sentence) enters infinite loop.
/* End of text from m.cs.uiuc.edu:gnu.emacs.bug */
(Version 18.55)
This is a real bug. I've looked into to the source and there's clearly a bug,
or possibly several. The effect in question is caused by code in
paragraphs.el, function forward-paragraph, line 64,
	      (while (looking-at paragraph-separate)
			(forward-line 1))
In the case cited, (looking-at paragraph-seperate) is t, but so is (eobp),
and so the forward-line actually does nothing, causing an infinite loop.
I changed the check to be similar to other ones in the function, e.g.
	      (while (and (looking-at paragraph-separate) (not (eobp)))
			(forward-line 1))
This didn't infi-loop, but it did give a "Max recursion depth exceeded"
error. I don't have time right now to investigate any further. I'll try to
look into it later (have to fix Epoch bugs instead!).

Alan M. Carroll                Barbara/Marilyn in '92 :
carroll@cs.uiuc.edu            + This time, why not choose the better halves?
Epoch Development Team         
CS Grad / U of Ill @ Urbana    ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll
Technical Details
Message-ID: <51300008@m.cs.uiuc.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!dino!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carroll
References: <9006271011.AA11877@zyx.ZYX.SE>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,2041deffd6a153f2
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-06-28 12:03:49 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!dino!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!carroll
From: carroll@m.cs.uiuc.edu
Newsgroups: gnu.emacs.bug
Subject: Re: backward-kill-sentence loops.
Message-ID: <51300008@m.cs.uiuc.edu>
Date: 27 Jun 90 20:13:00 GMT
References: <9006271011.AA11877@zyx.ZYX.SE>
Lines: 24
Nf-ID: #R:<9006271011.AA11877@zyx.ZYX.SE>:-31:m.cs.uiuc.edu:51300008:000:1302
Nf-From: m.cs.uiuc.edu!carroll    Jun 27 15:13:00 1990
Posted: Wed Jun 27 21:13:00 1990