* gnus-restore-hidden-threads-configuration
@ 2000-07-16 10:59 Daiki Ueno
0 siblings, 0 replies; only message in thread
From: Daiki Ueno @ 2000-07-16 10:59 UTC (permalink / raw)
Hello.
I've recently decided to set gnus-thread-hide-subtree to t.
Where there are many threads and I typed T # (gnus-uu-mark-thread),
then the point goes to the beginning of buffer.
The attached patch fixes this.
Thank you.
--
Daiki Ueno
2000-07-16 Daiki Ueno <ueno@unixuser.org>
* gnus-sum.el
(gnus-restore-hidden-threads-configuration): Save excursion.
--- gnus-sum.el~ Sun Jul 16 19:54:51 2000
+++ gnus-sum.el Sun Jul 16 19:55:11 2000
@@ -2429,12 +2429,13 @@ (defun gnus-hidden-threads-configuration
(defun gnus-restore-hidden-threads-configuration (config)
"Restore hidden threads configuration from CONFIG."
+ (save-excursion
(let (point buffer-read-only)
(while (setq point (pop config))
(when (and (< point (point-max))
(goto-char point)
(eq (char-after) ?\n))
- (subst-char-in-region point (1+ point) ?\n ?\r)))))
+ (subst-char-in-region point (1+ point) ?\n ?\r))))))
;; Various summary mode internalish functions.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-16 10:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-16 10:59 gnus-restore-hidden-threads-configuration Daiki Ueno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).