* gnus-clfns.el (string): New compiler macro.
* gnus-score.el (gnus-score-find-bnews): Use it as Gnus does.
+2001-03-08 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * lisp/gnus-clfns.el (string): New compiler macro.
+ * lisp/gnus-score.el (gnus-score-find-bnews): Use it as Gnus does.
+
2001-03-06 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/nnshimbun.el (nnshimbun-retrieve-url): Check if
+2001-03-07 13:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * nndraft.el (nndraft-request-group): Restore auto save files if
+ the original files do not exist.
+
+2001-03-07 11:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * gnus-score.el (gnus-score-find-bnews): Print messages on illegal
+ SCORE paths.
+
+ * mm-decode.el (mm-dissect-buffer): Call
+ mail-extract-address-components only if necessary.
+
2001-03-06 13:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
* gnus-score.el (gnus-score-find-bnews): Maybe there is no
(push (pop seq1) res)))
(coerce (nconc (nreverse res) seq1 seq2) type)))))
+ (define-compiler-macro string (&whole form &rest args)
+ (if (and (fboundp 'string)
+ (subrp (symbol-function 'string)))
+ form
+ (list 'concat (cons 'list args))))
+
(define-compiler-macro subseq (&whole form seq start &optional end)
(if (and (fboundp 'subseq)
(subrp (symbol-function 'subseq)))
;; too much.
(delete-char (min (1- (point-max)) klen))
(goto-char (point-max))
- (if (search-backward (char-to-string directory-sep-char) nil t)
- (delete-region (1+ (point)) (point-min))))
+ (if (search-backward (string directory-sep-char) nil t)
+ (delete-region (1+ (point)) (point-min))
+ (gnus-message 1 "Can't find directory separator in %s"
+ (car sfiles))))
;; If short file names were used, we have to translate slashes.
(goto-char (point-min))
(let ((regexp (concat
(defun nnkiboze-score-file (a)
)
-;; This is just to shut up the byte-compiler.
-(defalias 'nndraft-request-group 'ignore)
-
(provide 'lpath)
cte (mail-fetch-field "content-transfer-encoding")
cd (mail-fetch-field "content-disposition")
description (mail-fetch-field "content-description")
- from (cadr (mail-extract-address-components
- (or (mail-fetch-field "from") "")))
- id (mail-fetch-field "content-id"))))
+ from (mail-fetch-field "from")
+ id (mail-fetch-field "content-id"))
+ ;; FIXME: In some circumstances, this code is running within
+ ;; an unibyte macro. mail-extract-address-components
+ ;; creates unibyte buffers. This `if', though not a perfect
+ ;; solution, avoids most of them.
+ (if from
+ (setq from (cadr (mail-extract-address-components from))))))
(when cte
(setq cte (mail-header-strip cte)))
(if (or (not ctl)
(clear-visited-file-modtime)
article))
+(deffoo nndraft-request-group (group &optional server dont-check)
+ (nndraft-possibly-change-group group)
+ (unless dont-check
+ (let* ((pathname (nnmail-group-pathname group nndraft-directory))
+ (file-name-coding-system nnmail-pathname-coding-system)
+ dir file)
+ (nnheader-re-read-dir pathname)
+ (setq dir (mapcar (lambda (name) (string-to-int (substring name 1)))
+ (directory-files pathname nil "^#[0-9]+#$" t)))
+ (dolist (n dir)
+ (unless (file-exists-p
+ (setq file (expand-file-name (int-to-string n) pathname)))
+ (rename-file (let ((buffer-file-name file))
+ (make-auto-save-file-name)) file)))))
+ (nnoo-parent-function 'nndraft
+ 'nnmh-request-group
+ (list group server dont-check)))
+
(deffoo nndraft-request-expire-articles (articles group &optional server force)
(nndraft-possibly-change-group group)
(let* ((nnmh-allow-delete-final t)