diff options
| author | Andreas Schwab | 1999-03-31 08:40:48 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-03-31 08:40:48 +0000 |
| commit | 107ecebbe7446098aea53d3ea315947c7754518b (patch) | |
| tree | ee6cdf6e570557f9d678b04c914deb418058b1a1 | |
| parent | ebef6d93760543f91b1343e0c3458a554d920a5e (diff) | |
| download | emacs-107ecebbe7446098aea53d3ea315947c7754518b.tar.gz emacs-107ecebbe7446098aea53d3ea315947c7754518b.zip | |
(gnus-data-compute-positions): Move down after
the gnus-save-hidden-threads macro.
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 8445b475db1..45658018139 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -2048,21 +2048,6 @@ The following commands are available: | |||
| 2048 | (setcar (nthcdr 2 (car data)) (+ offset (nth 2 (car data)))) | 2048 | (setcar (nthcdr 2 (car data)) (+ offset (nth 2 (car data)))) |
| 2049 | (setq data (cdr data)))) | 2049 | (setq data (cdr data)))) |
| 2050 | 2050 | ||
| 2051 | (defun gnus-data-compute-positions () | ||
| 2052 | "Compute the positions of all articles." | ||
| 2053 | (setq gnus-newsgroup-data-reverse nil) | ||
| 2054 | (let ((data gnus-newsgroup-data)) | ||
| 2055 | (save-excursion | ||
| 2056 | (gnus-save-hidden-threads | ||
| 2057 | (gnus-summary-show-all-threads) | ||
| 2058 | (goto-char (point-min)) | ||
| 2059 | (while data | ||
| 2060 | (while (get-text-property (point) 'gnus-intangible) | ||
| 2061 | (forward-line 1)) | ||
| 2062 | (gnus-data-set-pos (car data) (+ (point) 3)) | ||
| 2063 | (setq data (cdr data)) | ||
| 2064 | (forward-line 1)))))) | ||
| 2065 | |||
| 2066 | (defun gnus-summary-article-pseudo-p (article) | 2051 | (defun gnus-summary-article-pseudo-p (article) |
| 2067 | "Say whether this article is a pseudo article or not." | 2052 | "Say whether this article is a pseudo article or not." |
| 2068 | (not (vectorp (gnus-data-header (gnus-data-find article))))) | 2053 | (not (vectorp (gnus-data-header (gnus-data-find article))))) |
| @@ -2248,6 +2233,23 @@ marks of articles." | |||
| 2248 | (= (following-char) ?\n)) | 2233 | (= (following-char) ?\n)) |
| 2249 | (subst-char-in-region point (1+ point) ?\n ?\r))))) | 2234 | (subst-char-in-region point (1+ point) ?\n ?\r))))) |
| 2250 | 2235 | ||
| 2236 | ;; This needs to be put here because it uses the | ||
| 2237 | ;; gnus-save-hidden-threads macro | ||
| 2238 | (defun gnus-data-compute-positions () | ||
| 2239 | "Compute the positions of all articles." | ||
| 2240 | (setq gnus-newsgroup-data-reverse nil) | ||
| 2241 | (let ((data gnus-newsgroup-data)) | ||
| 2242 | (save-excursion | ||
| 2243 | (gnus-save-hidden-threads | ||
| 2244 | (gnus-summary-show-all-threads) | ||
| 2245 | (goto-char (point-min)) | ||
| 2246 | (while data | ||
| 2247 | (while (get-text-property (point) 'gnus-intangible) | ||
| 2248 | (forward-line 1)) | ||
| 2249 | (gnus-data-set-pos (car data) (+ (point) 3)) | ||
| 2250 | (setq data (cdr data)) | ||
| 2251 | (forward-line 1)))))) | ||
| 2252 | |||
| 2251 | ;; Various summary mode internalish functions. | 2253 | ;; Various summary mode internalish functions. |
| 2252 | 2254 | ||
| 2253 | (defun gnus-mouse-pick-article (e) | 2255 | (defun gnus-mouse-pick-article (e) |