Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!hplabs!sdcrdcf!ucla-cs!baron From: baron@CS.UCLA.EDU Newsgroups: net.emacs,net.micro Subject: Subtle bug in uEMACS-3.7 Message-ID: <882@curly.ucla-cs.ARPA> Date: Tue, 26-Aug-86 22:23:32 EDT Article-I.D.: curly.882 Posted: Tue Aug 26 22:23:32 1986 Date-Received: Fri, 29-Aug-86 05:36:45 EDT Reply-To: baron@CS.UCLA.EDU () Organization: UCLA Computer Science Department Lines: 24 Xref: mnetor net.emacs:1437 net.micro:5939 If one kills all visible (as opposed to hidden) buffers (possible by making the buffer from ^X^B the only displayed buffer and killing all other buffers) and then tries a ^XX (next-buffer), emacs will hang (infinite loop). This bug also exists in uEMACS-3.6. Fix in function nextbuffer() below. *** buffer.c Tue Aug 26 18:58:32 1986 --- buffer.c.~1~ Sat Aug 2 11:52:46 1986 *************** *** 36,42 **** bp = curbp->b_bufp; /* cycle through the buffers to find an eligable one */ while (bp == NULL || bp->b_flag & BFINVS) { - if (bp == curbp) return(FALSE); if (bp == NULL) bp = bheadp; else --- 36,41 ---- Baron O.A. Grey UCLA Computer Science Department baron@LOCUS.UCLA.EDU ...!(ucbvax,ihnp4)!ucla-cs!baron