;ELC   
;;; compiled by larsi@narfi.ifi.uio.no on Fri Nov  3 03:30:40 1995
;;; from file /home/menja/c/larsi/dgnus/lisp/nndoc.el
;;; emacs version 19.29.90.3.
;;; bytecomp version FSF 2.10
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`nndoc.el' was compiled for Emacs 19.29 or later"))


(byte-code "ÀÁ!ˆÀÂ!ˆÀÃ!‡" [require nnheader rmail nnmail] 2)
#@57 *Type of the file - one of `mbox', `babyl' or `digest'.
(defvar nndoc-article-type (quote mbox) (#$ . -536))
#@282 Type of the last digest.  Auto-detected from the article header.
Possible values:
  `traditional' -- the "lots of dashes" (30+) rules used;
                   we currently also do unconditional RFC 934 unquoting.
  `rfc1341' -- RFC 1341 digest (MIME, unique boundary, no quoting).
(defvar nndoc-digest-type (quote traditional) (#$ . 652))
#@56 Regular expressions for articles of the various types.
(defconst nndoc-type-to-regexp (byte-code "ÀÁ\nPÁ\nPÃÄÃ‰‰¯ÅÆÇÈÄÃ‰É¯ÊË‰ÃÌËÍÃ¯E‡" [mbox "^" rmail-unix-mail-delimiter nil "^$" babyl "\f *\n" "" "^[0-9].*\n" "\\*\\*\\* EOOH \\*\\*\\*\n\\(^.+\n\\)*" digest "^------------------------------*[\n 	]+" "^ ?$" "^End of"] 10) (#$ . 997))
(byte-code "ÀÁ!„ ÂÁBÀÄ!„ ÂÄBÀÅ!„  ÂÅBÀÆ!„- ÂÆBÀÇ!„: ÂÇBÀÈ!„G ÂÈBÀÉ!„T Â	ÉBÀÊ!„a Â\nÊBÀË!„n ÂËBÀÌ!„Š ÍDÎÏÐÑÒÓÔÕÖ×¯\fÌBÂ‡" [boundp nndoc-article-begin nil current-load-list nndoc-article-end nndoc-head-begin nndoc-head-end nndoc-first-article nndoc-end-of-file nndoc-body-begin nndoc-current-server nndoc-server-alist nndoc-server-variables nndoc-article-type (nndoc-article-begin nil) (nndoc-article-end nil) (nndoc-head-begin nil) (nndoc-head-end nil) (nndoc-first-article nil) (nndoc-current-buffer nil) (nndoc-group-alist nil) (nndoc-end-of-file nil) (nndoc-body-begin nil) (nndoc-address nil)] 11)
#@16 nndoc version.
(defconst nndoc-version "nndoc 1.0" (#$ . 1983))
#@28 Current nndoc news buffer.
(defvar nndoc-current-buffer nil (#$ . 2053))
(byte-code "ÀÁ!„ ÂÁBÀÄ!„ ÅÄBÀÆ!„! ÂÆBÂ‡" [boundp nndoc-address nil current-load-list nndoc-status-string "" nndoc-group-alist] 2)
(defalias 'nndoc-retrieve-headers #[(sequence &optional newsgroup server) "ŠqˆÁ ˆÂÃ‰‰‰É\n\"ˆ\f@;ƒ& Í‚â qˆ~ˆebˆÏ†7 ÃÒ#ˆƒG ÏÃÒ#ˆÏÃÒ#ˆ\fƒÊ \f@qˆÕÖZ]!ƒ½ `×ÃÒ#ƒy Ö•†z ebˆØ`ÏÃÒ#ƒ� Ö”b†’ db\"qˆÚÛ\"cˆÜ#ˆdbˆ`SfÝU„´ ÞcˆÚß\f\"cˆàcˆ\fA‰\f„S qˆebˆÏáÃÒ#ƒá âãÒ‰#ˆ‚Ð Í.‡" [nntp-server-buffer erase-buffer 2 nil lines beg p article prev nndoc-possibly-change-buffer newsgroup server sequence headers nndoc-current-buffer re-search-forward nndoc-first-article nndoc-article-begin t nndoc-head-begin nndoc-head-end nndoc-forward-article 0 re-search-backward count-lines nndoc-article-end format "221 %d Article retrieved.\n" insert-buffer-substring 10 "\n" "Lines: %d\n" ".\n" "\\(?\n[ 	]+\\)+" replace-match " "] 7])
(defalias 'nndoc-open-server #[(server &optional defs) "À ˆ	\nšƒ Ã‡\nƒ \nÄ!DBÇ	\"‰ƒ6 ÉA@!ˆÊ\"‚< Ë\f\"ˆ)	žA‰\f@\fA@Ñ\f8Ó\f8Õ\f8×\f8Ù\f8)Ã‡" [nnheader-init-server-buffer server nndoc-current-server t nnheader-save-variables nndoc-server-variables nndoc-server-alist assoc state nnheader-restore-variables delq nnheader-set-init-variables defs nndoc-article-type nndoc-type-to-regexp nndoc-article-begin nndoc-article-end 2 nndoc-head-begin 3 nndoc-head-end 4 nndoc-first-article 5 nndoc-end-of-file 6 nndoc-body-begin] 4])
(defalias 'nndoc-close-server #[(&optional server) "À‡" [t] 1])
(defalias 'nndoc-server-opened #[(&optional server) "	š… \n… Ã\n!‡" [server nndoc-current-server nntp-server-buffer buffer-name] 2])
(defalias 'nndoc-status-message #[(&optional server) "‡" [nndoc-status-string] 1])
(defalias 'nndoc-request-article #[(article &optional newsgroup server buffer) "À	\n\"ˆŠ† \f‰qˆÅ ˆ;?…m Ç!ˆÉ=ƒ@ \nË=ƒ@ ebˆÌÍÎÏ#ƒ@ ÐÑÏ‰#ˆ‚/ ebˆÒÓÎÏ#„l ÌÔÎÏ#ƒ\\ ÐÕÏ‰#ˆ‚l Ö×!ƒi ØyÙU„\\ ÓcˆÏ*‡" [nndoc-possibly-change-buffer newsgroup server buffer nntp-server-buffer erase-buffer article nndoc-insert-article nndoc-article-type digest nndoc-digest-type traditional re-search-forward "^- -" nil t replace-match "-" search-forward "\n\n" "^[ 	]+$" "" looking-at "[^ ]+:" 1 0] 5])
#@20 Select news GROUP.
(defalias 'nndoc-request-group #[(group &optional server dont-check) "ŠÀ	\n\"„ ÃÅ‚A Æ ˆƒ È‚A Š	qˆÊ ˆË ‰\fÍUƒ4 Î	!ˆÅ‚@ ÏÐ\fÑ\f	%cˆÈ*)‡" [nndoc-possibly-change-buffer group server "No such file or buffer" nndoc-status-string nil nndoc-set-header-dependent-regexps dont-check t nntp-server-buffer erase-buffer nndoc-number-of-articles number 0 nndoc-close-group format "211 %d %d %d %s\n" 1] 7 (#$ . 4370)])
(defalias 'nndoc-close-group #[(group &optional server) "À	\n\"ˆÃ\f!ˆÅÆ	\"\"ÈÈ	Ê‡" [nndoc-possibly-change-buffer group server kill-buffer nndoc-current-buffer delq assoc nndoc-group-alist nil nndoc-current-server t] 4])
(defalias 'nndoc-request-list #[(&optional server) "À‡" [nil] 1])
(defalias 'nndoc-request-newgroups #[(date &optional server) "À‡" [nil] 1])
(defalias 'nndoc-request-list-newsgroups #[(&optional server) "À‡" [nil] 1])
(byte-code "ÀÁÂ\"ˆÀÃÄ\"‡" [defalias nndoc-request-post nnmail-request-post nndoc-request-post-buffer nnmail-request-post-buffer] 3)
(defalias 'nndoc-possibly-change-buffer #[(group source) "À\nƒ \nÃ\f\"A‰=†t 	ƒ 	‰‚t Æ!ƒ* È!„? ;…t É!…t Ê!?…t \fËÌ\fÍQ!‰BBŠ\nqˆÎp!ˆÏ ˆ;ƒe Ð!ˆ‚r Šqˆ~ˆ)Ñ!ˆ)Ò)‡" [nil buf nndoc-current-buffer assoc group nndoc-group-alist bufferp nndoc-address buffer-name file-exists-p file-directory-p get-buffer-create " *nndoc " "*" buffer-disable-undo erase-buffer insert-file-contents insert-buffer-substring t] 5])
(defalias 'nndoc-set-header-dependent-regexps #[nil "Á=…P ÂÃ‰ŠqˆebˆÈÉÊPÃÂ#ƒK Ë”ƒK ÌÎÏË”Ë•{\"ÐÑQ‰ÐÓQ\fÐÖQ‰‚O Ø‰,‡" [nndoc-article-type digest t nil b-delimiter boundary-id case-fold-search nndoc-current-buffer re-search-forward "\n\n\\|^Content-Type: *multipart/digest;[ 	\n]*[ 	]" "boundary=\"\\([^\"\n]*[^\" 	\n]\\)\"" 1 rfc1341 nndoc-digest-type format "%s" "\n--" "[\n 	]+" nndoc-article-begin "\\(--\\)?[\n 	]+" nndoc-article-end nndoc-first-article "--[ 	]*$" nndoc-end-of-file traditional] 5])
(defalias 'nndoc-forward-article #[(n) "ÁVƒ, ÂÄÅ#ƒ, ƒ ÂÄÅ#ƒ, ÂÄÅ#ƒ, S‰‚ ÁU‡" [n 0 re-search-forward nndoc-article-begin nil t nndoc-head-begin nndoc-head-end] 5])
(defalias 'nndoc-number-of-articles #[nil "Šqˆ~ˆebˆÁÃ\f† ÆÇ#ƒJ ÈÃÆÇ#ƒJ 	ƒ- Ê	!„J ƒ; ÃÆÇ#ƒJ Ã\fÆÇ#ƒJ \nT‚ \n*‡" [nndoc-current-buffer 0 num re-search-forward nndoc-first-article nndoc-article-begin nil t 1 nndoc-end-of-file looking-at nndoc-head-begin nndoc-head-end] 4])
(defalias 'nndoc-narrow-to-article #[(article) "Šqˆ~ˆebˆÁ\nÃÄ#ƒ S‰ÆUƒ	 ÆU…4 Æ•ÁÃÄ#ƒ0 Æ”†1 d}ˆÄ)‡" [nndoc-current-buffer re-search-forward nndoc-article-begin nil t article 0 nndoc-article-end] 5])
(defalias 'nndoc-insert-article #[(article) "pŠ	qˆ~ˆebˆÂÄÅ#ƒ S‰ÇUƒ ÇU…r Ç•ÂÄÅ#ƒ5 Ç”†6 d}ˆebˆ	ƒM Â	ÄÅ#ƒM `d}ˆÂ\nÄÅ#„Y dbˆËe`#ˆ\fƒk Â\fÄÅ#ˆË`d#ˆÅ*‡" [ibuf nndoc-current-buffer re-search-forward nndoc-article-begin nil t article 0 nndoc-article-end nndoc-head-begin nndoc-head-end append-to-buffer nndoc-body-begin] 5])
(provide (quote nndoc))
