Function: nndoc-oe-dbx-generate-article
nndoc-oe-dbx-generate-article is a byte-compiled function defined in
nndoc.el.gz.
Signature
(nndoc-oe-dbx-generate-article ARTICLE &optional HEAD)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nndoc.el.gz
(defun nndoc-oe-dbx-generate-article (article &optional head)
(let ((entry (cdr (assq article nndoc-dissection-alist)))
(cur (current-buffer))
(begin (point))
blk p)
(with-current-buffer nndoc-current-buffer
(setq p (car entry))
(while (> p (point-min))
(goto-char p)
(setq blk (nndoc-oe-dbx-decode-block))
(setq p (point))
(with-current-buffer cur
(insert-buffer-substring nndoc-current-buffer p (+ p (nth 2 blk))))
(setq p (1+ (nth 3 blk)))))
(goto-char begin)
(while (re-search-forward "\r$" nil t)
(delete-char -1))
(when head
(goto-char begin)
(when (search-forward "\n\n" nil t)
(setcar (cddddr entry) (count-lines (point) (point-max)))
(delete-region (1- (point)) (point-max))))
t))