X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-topic.el;h=7c710357b9d974dca48d9476ab8f857ba87ed9dd;hb=74a489ff1213794152d6e13f7a11e16c89f62602;hp=89e61bcb598db74f0f2b134d56d21f5a864ee611;hpb=c9a393eeb329a99695566342a9f03b8a30000898;p=gnus diff --git a/lisp/gnus-topic.el b/lisp/gnus-topic.el index 89e61bcb5..7c710357b 100644 --- a/lisp/gnus-topic.el +++ b/lisp/gnus-topic.el @@ -148,8 +148,7 @@ See Info node `(gnus)Formatting Variables'." (defun gnus-group-parent-topic (group) "Return the topic GROUP is member of by looking at the group buffer." - (save-excursion - (set-buffer gnus-group-buffer) + (with-current-buffer gnus-group-buffer (if (gnus-group-goto-group group) (gnus-current-topic) (gnus-group-topic group)))) @@ -912,8 +911,7 @@ articles in the topic and its subtopics." (defun gnus-topic-change-level (group level oldlevel &optional previous) "Run when changing levels to enter/remove groups from topics." - (save-excursion - (set-buffer gnus-group-buffer) + (with-current-buffer gnus-group-buffer (let ((buffer-read-only nil)) (unless gnus-topic-inhibit-change-level (gnus-group-goto-group (or (car (nth 2 previous)) group))