mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(gnus-data-compute-positions): Move down after
the gnus-save-hidden-threads macro.
This commit is contained in:
parent
ebef6d9376
commit
107ecebbe7
@ -2048,21 +2048,6 @@ The following commands are available:
|
||||
(setcar (nthcdr 2 (car data)) (+ offset (nth 2 (car data))))
|
||||
(setq data (cdr data))))
|
||||
|
||||
(defun gnus-data-compute-positions ()
|
||||
"Compute the positions of all articles."
|
||||
(setq gnus-newsgroup-data-reverse nil)
|
||||
(let ((data gnus-newsgroup-data))
|
||||
(save-excursion
|
||||
(gnus-save-hidden-threads
|
||||
(gnus-summary-show-all-threads)
|
||||
(goto-char (point-min))
|
||||
(while data
|
||||
(while (get-text-property (point) 'gnus-intangible)
|
||||
(forward-line 1))
|
||||
(gnus-data-set-pos (car data) (+ (point) 3))
|
||||
(setq data (cdr data))
|
||||
(forward-line 1))))))
|
||||
|
||||
(defun gnus-summary-article-pseudo-p (article)
|
||||
"Say whether this article is a pseudo article or not."
|
||||
(not (vectorp (gnus-data-header (gnus-data-find article)))))
|
||||
@ -2248,6 +2233,23 @@ marks of articles."
|
||||
(= (following-char) ?\n))
|
||||
(subst-char-in-region point (1+ point) ?\n ?\r)))))
|
||||
|
||||
;; This needs to be put here because it uses the
|
||||
;; gnus-save-hidden-threads macro
|
||||
(defun gnus-data-compute-positions ()
|
||||
"Compute the positions of all articles."
|
||||
(setq gnus-newsgroup-data-reverse nil)
|
||||
(let ((data gnus-newsgroup-data))
|
||||
(save-excursion
|
||||
(gnus-save-hidden-threads
|
||||
(gnus-summary-show-all-threads)
|
||||
(goto-char (point-min))
|
||||
(while data
|
||||
(while (get-text-property (point) 'gnus-intangible)
|
||||
(forward-line 1))
|
||||
(gnus-data-set-pos (car data) (+ (point) 3))
|
||||
(setq data (cdr data))
|
||||
(forward-line 1))))))
|
||||
|
||||
;; Various summary mode internalish functions.
|
||||
|
||||
(defun gnus-mouse-pick-article (e)
|
||||
|
Loading…
Reference in New Issue
Block a user