wl-summary-next-message is not number, don't jump.
* elmo-util.el (elmo-get-network-stream-type): Moved to elmo-net.el.
* elmo-net.el (elmo-get-network-stream-type): Moved from elmo-util.el
and re-written.
* elmo-imap4.el (elmo-folder-initialize): Use
elmo-get-network-stream-type.
* elmo-nntp.el (elmo-folder-initialize): Ditto.
* elmo-pop3.el (elmo-folder-initialize): Ditto.
+2001-06-20 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-util.el (elmo-get-network-stream-type): Moved to elmo-net.el.
+
+ * elmo-net.el (elmo-get-network-stream-type): Moved from elmo-util.el
+ and re-written.
+
+ * elmo-imap4.el (elmo-folder-initialize): Use
+ elmo-get-network-stream-type.
+
+ * elmo-nntp.el (elmo-folder-initialize): Ditto.
+
+ * elmo-pop3.el (elmo-folder-initialize): Ditto.
+
2001-06-19 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-message-encache): Set unread argument for
(unless (elmo-net-folder-stream-type-internal folder)
(elmo-net-folder-set-stream-type-internal
folder
- elmo-imap4-default-stream-type))
+ (elmo-get-network-stream-type
+ elmo-imap4-default-stream-type)))
folder))))
;;; ELMO IMAP4 folder
(elmo-set-plugged t server service stream-type))
process)))
+(defun elmo-get-network-stream-type (symbol)
+ "Return network stream type corresponding to SYMBOL.
+Returned value is searched from `elmo-network-stream-type-alist'."
+ (let ((alist elmo-network-stream-type-alist)
+ spec)
+ (while alist
+ (when (eq (nth 1 (car alist)) symbol)
+ (setq spec (car alist))
+ (setq alist nil))
+ (setq alist (cdr alist)))
+ spec))
+
(luna-define-method elmo-folder-initialize ((folder
elmo-net-folder)
name)
(unless (elmo-net-folder-stream-type-internal folder)
(elmo-net-folder-set-stream-type-internal
folder
- elmo-nntp-default-stream-type))
+ (elmo-get-network-stream-type
+ elmo-nntp-default-stream-type)))
folder)))
(luna-define-method elmo-folder-expand-msgdb-path ((folder elmo-nntp-folder))
(unless (elmo-net-folder-stream-type-internal folder)
(elmo-net-folder-set-stream-type-internal
folder
- elmo-pop3-default-stream-type))
+ (elmo-get-network-stream-type
+ elmo-pop3-default-stream-type)))
folder))
;;; POP3 session
;;;(princ "\n" (current-buffer))
(elmo-save-buffer filename mime-charset)))
-(defun elmo-get-network-stream-type (stream-type stream-type-alist)
- (catch 'found
- (while stream-type-alist
- (if (eq (nth 1 (car stream-type-alist)) stream-type)
- (throw 'found (car stream-type-alist)))
- (setq stream-type-alist (cdr stream-type-alist)))))
-
;;; Search Condition
(defconst elmo-condition-atom-regexp "[^/ \")|&]*")
+2001-06-20 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-cursor-move): If return value of
+ wl-summary-next-message is not number, don't jump.
+
2001-06-19 Yuuichi Teranishi <teranisi@gohome.org>
* wl-summary.el (wl-summary-buffer-next-message-function): New
(let (num)
(when (setq num (wl-summary-next-message (wl-summary-message-number)
direction hereto))
- (wl-thread-jump-to-msg num)
+ (if (numberp num)
+ (wl-thread-jump-to-msg num))
t)))
;;
;; Goto unread or important