[net.emacs] Subtle bug in uEMACS-3.7

baron@CS.UCLA.EDU (08/27/86)

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