From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26135 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: two bugs in Gnus (*Subject* buffer threading; ESC-s searching) Date: 02 Nov 1999 17:38:29 -0500 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <5bpuxszfh6.fsf@brain.cs.rochester.edu> References: <199911021923.LAA24107@Xenon.Stanford.EDU> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035163400 17830 80.91.224.250 (21 Oct 2002 01:23:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:23:20 +0000 (UTC) Cc: bugs@gnus.org, Gnus Mailing List Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA18533 for ; Tue, 2 Nov 1999 17:39:06 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB17275; Tue, 2 Nov 1999 16:38:57 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 02 Nov 1999 16:39:15 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA10079 for ; Tue, 2 Nov 1999 16:39:02 -0600 (CST) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA18520; Tue, 2 Nov 1999 17:38:31 -0500 (EST) Original-Received: from brain.cs.rochester.edu (brain.cs.rochester.edu [192.5.53.111]) by cayuga.cs.rochester.edu (8.9.3/Q) with ESMTP id RAA25289; Tue, 2 Nov 1999 17:38:30 -0500 (EST) Original-Received: (from zsh@localhost) by brain.cs.rochester.edu (8.9.1b+Sun/Q++) id RAA24599; Tue, 2 Nov 1999 17:38:29 -0500 (EST) Original-To: Oren Patashnik X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Oren Patashnik's message of "Tue, 2 Nov 1999 11:23:33 -0800 (PST)" Original-Lines: 38 User-Agent: Gnus/5.07009701 (Pterodactyl Gnus v0.97.1) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26135 --=-=-= >>>>> "Oren" == Oren Patashnik writes: Oren> I just installed Redhat Linux 6.1, with Emacs 20.4.1, Gnus v5.7. I've Oren> noticed over the last few days two bugs that show up occasionally. [...] Oren> The second bug is a bit more annoying. When I type ESC-s to Oren> search for, for example, the string "bib", I get apparently Oren> bizarre behavior. It seems that when the string I'm searching Oren> for is both in the header and also the first line of the body of Oren> the article, ESC-s finds the first occurrence (in the header), Oren> then a subsequent ESC-s finds the occurrence in the first line Oren> of the body, *but* then subsequent ESC-s's keep finding that Oren> first-body-line occurrence. (To circumvent this bug I have to Oren> switch to the *Article* buffer, move the point past that first Oren> line, then switch back to the *Subject* buffer, then continue Oren> with my ESC-s's.) Here's an example article for which the bug Oren> occurs: [...] Finally fixed. A kind of window-point and point bug. The patch has been committed to the CVS of the current beta version of Gnus. -- Shenghuo 1999-11-02 17:28:33 Shenghuo ZHU * gnus-sum.el (gnus-summary-search-article): Fix loop search bug. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=97-120.diff Index: gnus-sum.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-sum.el,v retrieving revision 5.69 diff -u -r5.69 gnus-sum.el --- gnus-sum.el 1999/10/29 21:28:41 5.69 +++ gnus-sum.el 1999/11/02 22:27:49 @@ -6921,6 +6921,7 @@ (require 'gnus-async) (require 'gnus-art) (let ((gnus-select-article-hook nil) ;Disable hook. + (gnus-article-prepare-hook nil) (gnus-mark-article-hook nil) ;Inhibit marking as read. (gnus-use-article-prefetch nil) (gnus-xmas-force-redisplay nil) ;Inhibit XEmacs redisplay. @@ -6947,6 +6948,9 @@ (get-buffer-window (current-buffer)) (point)) (forward-line 1) + (set-window-point + (get-buffer-window (current-buffer)) + (point)) (set-buffer sum) (setq point (point))) ;; We didn't find it, so we go to the next article. --=-=-= --=-=-=--