* nnml.el (nnml-marks-changed-p): Typo.
(nnml-save-marks, nnml-open-marks): Use gnus-sethash.
(nnml-marks-changed-p): Use gnus-gethash.
(nnml-marks-modtime): Use gnus-make-hashtable.
* nnfolder.el (nnfolder-marks-changed-p): Typo.
(nnfolder-request-expire-articles, nnfolder-save-marks)
(nnfolder-open-marks): Typo.
(nnfolder-save-marks, nnfolder-open-marks): Use gnus-sethash.
(nnfolder-marks-changed-p): Use gnus-gethash.
(nnfolder-marks-modtime): Use gnus-make-hashtable.
+2001-09-08 16:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
+
+ * nnml.el (nnml-marks-changed-p): Typo.
+ (nnml-save-marks, nnml-open-marks): Use gnus-sethash.
+ (nnml-marks-changed-p): Use gnus-gethash.
+ (nnml-marks-modtime): Use gnus-make-hashtable.
+
+ * nnfolder.el (nnfolder-marks-changed-p): Typo.
+ (nnfolder-request-expire-articles, nnfolder-save-marks)
+ (nnfolder-open-marks): Typo.
+ (nnfolder-save-marks, nnfolder-open-marks): Use gnus-sethash.
+ (nnfolder-marks-changed-p): Use gnus-gethash.
+ (nnfolder-marks-modtime): Use gnus-make-hashtable.
+
2001-09-08 Simon Josefsson <jas@extundo.com>
* nnfolder.el (nnfolder-marks-modtime): New variable.
(defvoo nnfolder-marks-file-suffix ".mrk")
-(defvar nnfolder-marks-modtime (makehash))
+(defvar nnfolder-marks-modtime (gnus-make-hashtable))
\f
(with-temp-buffer
(nnfolder-request-article (car maybe-expirable)
newsgroup server (current-buffer))
- (let ((nnml-current-directory nil))
+ (let ((nnfolder-current-directory nil))
(nnmail-expiry-target-group
nnmail-expiry-target newsgroup))))
(nnheader-message 5 "Deleting article %d in %s..."
(defun nnfolder-marks-changed-p (group)
(let ((file (nnfolder-group-marks-pathname group)))
- (if (null (gethash file nnfolder-marks-modtime))
+ (if (null (gnus-gethash file nnfolder-marks-modtime))
t ;; never looked at marks file, assume it has changed
- (not (eq (gethash fil nnfolder-marks-modtime)
+ (not (eq (gnus-gethash file nnfolder-marks-modtime)
(nth 5 (file-attributes file)))))))
(defun nnfolder-save-marks (group server)
(erase-buffer)
(princ nnfolder-marks (current-buffer))
(insert "\n"))
- (puthash file
- (nth 5 (file-attributes file))
- nnml-marks-modtime))
+ (gnus-sethash file
+ (nth 5 (file-attributes file))
+ nnfolder-marks-modtime))
(error (or (gnus-yes-or-no-p
(format "Could not write to %s (%s). Continue? " file err))
(error "Cannot write to %s (%s)" err))))))
(if (file-exists-p file)
(setq nnfolder-marks (condition-case err
(with-temp-buffer
- (puthash file
- (nth 5 (file-attributes file))
- nnml-marks-modtime)
+ (gnus-sethash file
+ (nth 5 (file-attributes file))
+ nnfolder-marks-modtime)
(nnheader-insert-file-contents file)
(read (current-buffer)))
(error (or (gnus-yes-or-no-p
(defvoo nnml-marks nil)
-(defvar nnml-marks-modtime (makehash))
+(defvar nnml-marks-modtime (gnus-make-hashtable))
\f
;;; Interface functions.
(defun nnml-marks-changed-p (group)
(let ((file (expand-file-name nnml-marks-file-name
(nnmail-group-pathname group nnml-directory))))
- (if (null (gethash file nnml-marks-modtime))
+ (if (null (gnus-gethash file nnml-marks-modtime))
t ;; never looked at marks file, assume it has changed
- (not (eq (gethash fil nnml-marks-modtime)
+ (not (eq (gnus-gethash file nnml-marks-modtime)
(nth 5 (file-attributes file)))))))
(defun nnml-save-marks (group server)
(erase-buffer)
(princ nnml-marks (current-buffer))
(insert "\n"))
- (puthash file
- (nth 5 (file-attributes file))
- nnml-marks-modtime))
+ (gnus-sethash file
+ (nth 5 (file-attributes file))
+ nnml-marks-modtime))
(error (or (gnus-yes-or-no-p
(format "Could not write to %s (%s). Continue? " file err))
(error "Cannot write to %s (%s)" err))))))
(if (file-exists-p file)
(setq nnml-marks (condition-case err
(with-temp-buffer
- (puthash file
- (nth 5 (file-attributes file))
- nnml-marks-modtime)
+ (gnus-sethash file
+ (nth 5 (file-attributes file))
+ nnml-marks-modtime)
(nnheader-insert-file-contents file)
(read (current-buffer)))
(error (or (gnus-yes-or-no-p