+2001-06-15 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
+
+ * lisp/nnshimbun.el (nnshimbun-group-parameters-custom): Add
+ `encapsulate-article' as a customizable option, and modified
+ `prefetch-articles'.
+ (nnshimbun-group-parameters): Add document for
+ `encapsulate-article'.
+ (nnshimbun-encapsulate-article): New server variable.
+ (nnshimbun-find-parameter): Add code for `encapsulate-article'.
+ (nnshimbun-request-article-1): Refer `encapsulate-article' group
+ parameter to control `shimbun-encapsulate-article' value when
+ `shimbun-article' is called.
+
2001-06-14 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus-vers.el (gnus-revision-number): Increment to 02.
(nnshimbun-group-parameters-custom): New variable.
(TopLevel): Require `gnus' expressly.
-2001-06-12 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-06-12 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el (nnshimbun-find-parameter): New macro.
(nnshimbun-generate-nov-database): Use `nnshimbun-find-parameter'.
inhibiting the expiring when `nnshimbun-keep-unparsable-dated-articles'
is nil.
-2001-06-11 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-06-11 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/gnus-group.el (toplevel): Removed autoload code for
"nnshimbun".
* lisp/gnus.el: Autoload "nnshimbun" for the command `gnus-group-
make-shimbun-group'.
-2001-06-11 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-06-11 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el: Remove some garbage.
FSF Emacsen.
* texi/gnus-ja.texi: Ditto.
-2001-06-09 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-06-09 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el (top-level): Updated comments.
(nnshimbun): New customize group.
(gnus-group-shimbun-server-history): Its definition is moved to
`nnshimbun.el'.
-2001-06-08 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-06-08 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el (nnshimbun-use-entire-index): Removed.
(nnshimbun-index-range): New variable.
* lisp/gnus-clfns.el (find-cl-run-time-functions): Remove a
useless non-global var; scroll the output window automatically.
-2001-05-31 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-05-31 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el (nnshimbun-header-xref): Removed.
(nnshimbun-check-header): Removed.
(cl-run-time-functions): New variable.
(TopLevel): Don't require `cl' at run-time.
-2001-05-28 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-05-28 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* texi/gnus-ja.texi (Web Newspaper): Updated.
* Mule23@1934.ja: Ditto.
* Mule23@1934.en: Ditto.
-2001-05-28 TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
+2001-05-28 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/nnshimbun.el: Reconstructed to use `shimbun'.
(integer :tag "days")))
(list :inline t :format "%v"
(const :format "" prefetch-articles)
- (boolean :tag "Prefetch articles"
- :on "on"
- :off "off"))
+ (choice :tag "Prefetch articles"
+ :value off
+ (const on)
+ (const off)))
+ (list :inline t :format "%v"
+ (const :format "" encapsulate-article)
+ (choice :tag "Encapsulate article"
+ :value on
+ (const on)
+ (const off)))
(list :inline t :format "%v"
(const :format "" expiry-wait)
(choice :tag "Expire wait"
`Prefetch articles' specifies whether to pre-fetch the unread articles
when scanning the group.
+`Encapsulate article' specifies whether inline images in the shimbun
+article are encapsulated.
+
`Expire wait' is similar to the generic group parameter `expiry-wait',
but it has a preference.")
nnshimbun groups. You can specify the nnshimbun group parameter
`prefecth-articles' for each nnshimbun group.")
+(defvoo nnshimbun-encapsulate-article shimbun-encapsulate-article
+ "*If non-nil, inline images in the shimbun article are encapsulated.
+Note that this variable has just a default value for all the nnshimbun
+groups. You can specify the nnshimbun group parameter
+`encapsulate-article' for each nnshimbun group.")
+
(defvoo nnshimbun-index-range nil
"*Range of indices to detect new pages. Note that this variable has
just a default value for all the nnshimbun groups. You can specify
(put 'nnshimbun-backlog 'edebug-form-spec '(form body))
+;;; Group parameter
+(defmacro nnshimbun-find-parameter (group symbol &optional full-name-p)
+ "Return the value of a nnshimbun group parameter for GROUP which is
+associated with SYMBOL. If FULL-NAME-P is non-nil, it treats that
+GROUP has a full name."
+ (let ((name (if full-name-p
+ group
+ `(concat "nnshimbun+" (nnoo-current-server 'nnshimbun)
+ ":" ,group))))
+ (cond ((eq 'index-range (eval symbol))
+ `(or (plist-get (nnshimbun-find-group-parameters ,name)
+ 'index-range)
+ nnshimbun-index-range))
+ ((eq 'prefetch-articles (eval symbol))
+ `(let ((v (or (plist-get (nnshimbun-find-group-parameters ,name)
+ 'prefetch-articles)
+ nnshimbun-pre-fetch-article)))
+ (if (eq v 'off) nil v)))
+ ((eq 'encapsulate-article (eval symbol))
+ `(let ((v (or (plist-get (nnshimbun-find-group-parameters ,name)
+ 'encapsulate-article)
+ nnshimbun-encapsulate-article)))
+ (if (eq v 'off) nil v)))
+ ((eq 'expiry-wait (eval symbol))
+ (if full-name-p
+ `(or (plist-get (nnshimbun-find-group-parameters ,group)
+ 'expiry-wait)
+ (gnus-group-find-parameter ,group 'expiry-wait))
+ `(let ((name ,name))
+ (or (plist-get (nnshimbun-find-group-parameters name)
+ 'expiry-wait)
+ (gnus-group-find-parameter name 'expiry-wait)))))
+ (t
+ `(plist-get (nnshimbun-find-group-parameters ,name) ,symbol)))))
+
+
;;; Interface Functions
(nnoo-define-basics nnshimbun)
(when header
(with-current-buffer (or to-buffer nntp-server-buffer)
(delete-region (point-min) (point-max))
- (shimbun-article nnshimbun-shimbun header)
+ (let ((shimbun-encapsulate-article
+ (nnshimbun-find-parameter group 'encapsulate-article)))
+ (shimbun-article nnshimbun-shimbun header))
(when (> (buffer-size) 0)
;; Kludge! replace a date string in `gnus-newsgroup-data'
;; based on the newly retrieved article.
(insert " "))
(forward-line 1)))
-(defmacro nnshimbun-find-parameter (group symbol &optional full-name-p)
- "Return the value of a nnshimbun group parameter for GROUP which is
-associated with SYMBOL. If FULL-NAME-P is non-nil, it treats that
-GROUP has a full name."
- (let ((name (if full-name-p
- group
- `(concat "nnshimbun+" (nnoo-current-server 'nnshimbun)
- ":" ,group))))
- (cond ((eq 'index-range (eval symbol))
- `(or (plist-get (nnshimbun-find-group-parameters ,name)
- 'index-range)
- nnshimbun-index-range))
- ((eq 'prefetch-articles (eval symbol))
- `(or (plist-get (nnshimbun-find-group-parameters ,name)
- 'prefetch-articles)
- nnshimbun-pre-fetch-article))
- ((eq 'expiry-wait (eval symbol))
- (if full-name-p
- `(or (plist-get (nnshimbun-find-group-parameters ,group)
- 'expiry-wait)
- (gnus-group-find-parameter ,group 'expiry-wait))
- `(let ((name ,name))
- (or (plist-get (nnshimbun-find-group-parameters name)
- 'expiry-wait)
- (gnus-group-find-parameter name 'expiry-wait)))))
- (t
- `(plist-get (nnshimbun-find-group-parameters ,name) ,symbol)))))
-
(defun nnshimbun-generate-nov-database (group)
(nnshimbun-possibly-change-group group)
(with-current-buffer (nnshimbun-open-nov group)