gildea@BBN.COM (Stephen Gildea) (01/27/89)
If point is not at the beginning of the line when you type C-c C-c in an Occur buffer, you get the wrong occurence. A diff from 18.52 to fix this follows. < Stephen diff -c2 replace.el.orig replace.el *** replace.el.orig Mon May 2 17:50:56 1988 --- replace.el Thu Jan 26 15:44:16 1989 *************** *** 103,106 occur-pos-list nil) (error "Buffer in which occurences were found is deleted."))) (let* ((occur-number (/ (1- (count-lines (point-min) (point))) (cond ((< occur-nlines 0) --- 103,107 ----- occur-pos-list nil) (error "Buffer in which occurences were found is deleted."))) + (beginning-of-line) (let* ((occur-number (/ (1- (count-lines (point-min) (point))) (cond ((< occur-nlines 0)