(gnus-summary-search-article): Speed up by
authorJesper Harder <harder@ifa.au.dk>
Tue, 4 Feb 2003 06:02:29 +0000 (06:02 +0000)
committerJesper Harder <harder@ifa.au.dk>
Tue, 4 Feb 2003 06:02:29 +0000 (06:02 +0000)
disabling various visual features while searching.
(gnus-summary-recenter): Test gnus-auto-center-summary first.

lisp/ChangeLog
lisp/gnus-sum.el

index c5a4251..63a98c1 100644 (file)
@@ -1,3 +1,9 @@
+2003-02-04  Jesper Harder  <harder@ifa.au.dk>
+
+       * gnus-sum.el (gnus-summary-search-article): Speed up by
+       disabling various visual features while searching.
+       (gnus-summary-recenter): Test gnus-auto-center-summary first.
+
 2003-02-03  Jesper Harder  <harder@ifa.au.dk>
 
        * spam.el (spam-list-of-checks): Don't quote nil and t in
index 0ab3b25..ba1b270 100644 (file)
@@ -6095,23 +6095,23 @@ Also do horizontal recentering."
 If `gnus-auto-center-summary' is nil, or the article buffer isn't
 displayed, no centering will be performed."
   ;; Suggested by earle@mahendo.JPL.NASA.GOV (Greg Earle).
-;; Recenter only when requested.  Suggested by popovich@park.cs.columbia.edu.
+  ;; Recenter only when requested.  Suggested by popovich@park.cs.columbia.edu.
   (interactive)
-  (let* ((top (cond ((< (window-height) 4) 0)
-                   ((< (window-height) 7) 1)
-                   (t (if (numberp gnus-auto-center-summary)
-                          gnus-auto-center-summary
-                        2))))
-        (height (1- (window-height)))
-        (bottom (save-excursion (goto-char (point-max))
-                                (forward-line (- height))
-                                (point)))
-        (window (get-buffer-window (current-buffer))))
-    ;; The user has to want it.
-    (when gnus-auto-center-summary
+  ;; The user has to want it.
+  (when gnus-auto-center-summary
+    (let* ((top (cond ((< (window-height) 4) 0)
+                     ((< (window-height) 7) 1)
+                     (t (if (numberp gnus-auto-center-summary)
+                            gnus-auto-center-summary
+                          2))))
+          (height (1- (window-height)))
+          (bottom (save-excursion (goto-char (point-max))
+                                  (forward-line (- height))
+                                  (point)))
+          (window (get-buffer-window (current-buffer))))
       (when (get-buffer-window gnus-article-buffer)
        ;; Only do recentering when the article buffer is displayed,
-      ;; Set the window start to either `bottom', which is the biggest
+       ;; Set the window start to either `bottom', which is the biggest
        ;; possible valid number, or the second line from the top,
        ;; whichever is the least.
        (let ((top-pos (save-excursion (forward-line (- top)) (point))))
@@ -8202,6 +8202,12 @@ Optional argument BACKWARD means do search for backward.
        (gnus-use-article-prefetch nil)
        (gnus-xmas-force-redisplay nil) ;Inhibit XEmacs redisplay.
        (gnus-use-trees nil)            ;Inhibit updating tree buffer.
+       (gnus-visual nil)
+       (gnus-keep-backlog nil)
+       (gnus-break-pages nil)
+       (gnus-summary-display-arrow nil)
+       (gnus-updated-mode-lines nil)
+       (gnus-auto-center-summary nil)
        (sum (current-buffer))
        (gnus-display-mime-function nil)
        (found nil)