Subject: bug#13769: gnus-tree-hightlight-article moves point in summary buffer

From: Dave Abrahams <[email-masked]>
Date: Tue, 19 Feb 2013 18:17:03 -0800

This bug affects gnus-summary-mark-forward; the point moves backward in
the summary buffer quite perplexingly.  The following patch seems to
suppress the symptoms of the bug:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/gnus-salt.el b/lisp/gnus-salt.el
index 48b51d2..4b37980 100644
--- a/lisp/gnus-salt.el
+++ b/lisp/gnus-salt.el
@@ -857,12 +857,14 @@ Two predefined functions are available:
       (set-buffer buf))))
 
 (defun gnus-tree-highlight-article (article face)
+  (save-excursion
   (with-current-buffer (gnus-get-tree-buffer)
     (let (region)
       (when (setq region (gnus-tree-article-region article))
 	(gnus-put-text-property (car region) (cdr region) 'face face)
 	(set-window-point
 	 (gnus-get-buffer-window (current-buffer) t) (cdr region))))))
+  )
 
 ;;; Allow redefinition of functions.
 (gnus-ems-redefine)
--8<---------------cut here---------------end--------------->8---

Ma Gnus v0.6
GNU Emacs 24.2.93.1 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51)
 of 2013-02-09 on Takanami.local
200 Leafnode NNTP Daemon, version 1.11.8 running at localhost (my fqdn: cube.boostpro.com)
100 Legal commands on THIS server:
 ARTICLE [<Message-ID>|<Number>]
 BODY [<Message-ID>|<Number>]
 DATE
 GROUP <Newsgroup>
 HDR <Header> <Message-ID>|<Range>
 HEAD [<Message-ID>|<Number>]
 HELP
 LAST
 LIST [ACTIVE|NEWSGROUPS] [<Wildmat>]]
 LIST [ACTIVE.TIMES|EXTENSIONS|OVERVIEW.FMT]
 LISTGROUP <Newsgroup>
 MODE READER
 NEWGROUPS <yymmdd> <hhmmss> [GMT]
 NEXT
 POST
 OVER <Range>
 SLAVE
 STAT [<Message-ID>|<Number>]
 XHDR <Header> <Message-ID>|<Range>
 XOVER <Range>
.

-- 
Dave Abrahams