From: Daiki Ueno <ueno@unixuser.org>
Subject: gnus-restore-hidden-threads-configuration
Date: 16 Jul 2000 19:59:12 +0900 [thread overview]
Message-ID: <87og3ybatb.fsf@mail.unixuser.org> (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.
reply other threads:[~2000-07-16 10:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87og3ybatb.fsf@mail.unixuser.org \
--to=ueno@unixuser.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).