Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!BBN.COM!gildea From: gildea@BBN.COM (Stephen Gildea) Newsgroups: gnu.emacs.bug Subject: occur-mode-goto-occurrence fails if point not at bol Message-ID: <8901262116.AA04631@prep.ai.mit.edu> Date: 26 Jan 89 20:49:03 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 24 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)