GNU bug report logs -
#13769
gnus-tree-hightlight-article moves point in summary buffer
Previous Next
Reported by: Dave Abrahams <dave <at> boostpro.com>
Date: Wed, 20 Feb 2013 02:19:02 UTC
Severity: normal
Tags: fixed
Found in version 5.130006
Fixed in version 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Dave Abrahams <dave <at> boostpro.com> writes:
> 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:
[...]
> (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))))))
> + )
Hm. I don't quite understand this patch. `save-excursion' saves the
point in the current buffer, and what the current buffer is. The bit
inside the save-excursion all happens in a different buffer, so point in
the current buffer shouldn't change at all.
Does anybody have any ideas why this patch would help? It could be some
magic connected to `set-window-point', I guess...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
This bug report was last modified 11 years and 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.