* nnweb.el (nnweb-gmane-search): Placeholder TOPDOC setting.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 10 Dec 2006 15:54:25 +0000 (15:54 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 10 Dec 2006 15:54:25 +0000 (15:54 +0000)
* gnus-sum.el (gnus-summary-recenter): Force setting the window start
to make it work reliably in CVS Emacs.

lisp/ChangeLog
lisp/gnus-sum.el
lisp/nnweb.el

index 39d43be..6dd00f9 100644 (file)
@@ -1,3 +1,10 @@
+2006-12-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * nnweb.el (nnweb-gmane-search): Placeholder TOPDOC setting.
+
+       * gnus-sum.el (gnus-summary-recenter): Force setting the window start
+       to make it work reliably in CVS Emacs.
+
 2006-12-06  Chris Moore  <dooglus@gmail.com>  (tiny change)
 
        * gnus-sum.el (gnus-sort-threads, gnus-summary-limit-children):
index 6fe5a6e..195d466 100644 (file)
@@ -6566,9 +6566,10 @@ displayed, no centering will be performed."
        ;; possible valid number, or the second line from the top,
        ;; whichever is the least.
        (let ((top-pos (save-excursion (forward-line (- top)) (point))))
+         (message "%s" top-pos)
          (if (> bottom top-pos)
              ;; Keep the second line from the top visible
-             (set-window-start window top-pos t)
+             (set-window-start window top-pos)
            ;; Try to keep the bottom line visible; if it's partially
            ;; obscured, either scroll one more line to make it fully
            ;; visible, or revert to using TOP-POS.
@@ -7909,6 +7910,27 @@ To and Cc headers are checked.  You need to include them in
             (gnus-summary-limit articles))
       (gnus-summary-position-point))))
 
+(defun gnus-summary-limit-strange-charsets-predicate (header)
+  (let ((string (concat (mail-header-subject header)
+                       (mail-header-from header)))
+       charset found)
+    (dotimes (i (1- (length string)))
+      (setq charset (format "%s" (char-charset (aref string (1+ i)))))
+      (when (string-match "unicode\\|big\\|japanese" charset)
+       (setq found t)))
+    found))
+
+(defun gnus-summary-limit-to-predicate (predicate)
+  "Limit to articles where PREDICATE returns non-nil.
+PREDICATE will be called with the header structures of the
+articles."
+  (let ((articles nil)
+       (case-fold-search t))
+    (dolist (header gnus-newsgroup-headers)
+      (when (funcall predicate header)
+       (push (mail-header-number header) articles)))
+    (gnus-summary-limit (nreverse articles))))
+
 (defun gnus-summary-limit-to-age (age &optional younger-p)
   "Limit the summary buffer to articles that are older than (or equal) AGE days.
 If YOUNGER-P (the prefix) is non-nil, limit the summary buffer to
index ab3e5c5..29a8de4 100644 (file)
@@ -523,7 +523,9 @@ Valid types include `google', `dejanews', and `gmane'.")
     "?"
     (mm-url-encode-www-form-urlencoded
      `(("query" . ,search)
-       ("HITSPERPAGE" . ,(number-to-string nnweb-max-hits))))))
+       ("HITSPERPAGE" . ,(number-to-string nnweb-max-hits))
+       ;;("TOPDOC" . "500")
+       ))))
   (setq buffer-file-name nil)
   (set-buffer-multibyte t)
   (mm-decode-coding-region (point-min) (point-max) 'utf-8)