+2000-10-26 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-util.el (elmo-unintern): New macro.
+ (elmo-number-set-member): Fixed docstring.
+
+ * elmo-imap4.el (elmo-imap4-parse-response): Call `elmo-unintern' for
+ tag token.
+
2000-10-25 OKAZAKI Tetsurou <okazaki@be.to>
* elmo-imap4.el (elmo-imap4-client-eol): Remove duplicated defvar
(elmo-imap4-forward))
(OK (progn
(setq elmo-imap4-parsing nil)
+ (setq token (symbol-name token))
+ (elmo-unintern token)
(elmo-imap4-debug "*%s* OK arrived" token)
(setq elmo-imap4-reached-tag token)
(list 'ok (elmo-imap4-parse-resp-text-code))))
(NO (progn
(setq elmo-imap4-parsing nil)
+ (setq token (symbol-name token))
+ (elmo-unintern token)
(elmo-imap4-debug "*%s* NO arrived" token)
(setq elmo-imap4-reached-tag token)
(let (code text)
(BAD (progn
(setq elmo-imap4-parsing nil)
(elmo-imap4-debug "*%s* BAD arrived" token)
+ (setq token (symbol-name token))
+ (elmo-unintern token)
(setq elmo-imap4-reached-tag token)
(let (code text)
(when (eq (char-after (point)) ?\[)
(list 'bodystructure (elmo-imap4-parse-body)))))
(setq list (cons element list))))
(and elmo-imap4-fetch-callback
- (elmo-imap4-fetch-callback
- list
- elmo-imap4-fetch-callback-data))
+ (elmo-imap4-fetch-callback list elmo-imap4-fetch-callback-data))
(list 'fetch list))))
(defun elmo-imap4-parse-status ()
(list 'unintern string hashtable)
(list 'makunbound (list 'intern string hashtable))))
+(defmacro elmo-unintern (string)
+ ;; Emacs 19.28 or earlier does not have unintern.
+ (static-if (fboundp 'unintern)
+ (list 'unintern string)))
+
;; Make a hash table (default and minimum size is 1024).
(defun elmo-make-hash (&optional hashsize)
(make-vector
(defun elmo-number-set-member (number number-set)
"Return non-nil if NUMBER is an element of NUMBER-SET.
-The value is actuall the tail of SET-LIST whose car contains NUMBER."
+The value is actually the tail of NUMBER-RANGE whose car contains NUMBER."
(or (memq number number-set)
(let (found)
(while (and number-set (not found))