* wl-summary.el (wl-summary-cursor-move): If return value of
authorteranisi <teranisi>
Wed, 20 Jun 2001 04:20:48 +0000 (04:20 +0000)
committerteranisi <teranisi>
Wed, 20 Jun 2001 04:20:48 +0000 (04:20 +0000)
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.

elmo/ChangeLog
elmo/elmo-imap4.el
elmo/elmo-net.el
elmo/elmo-nntp.el
elmo/elmo-pop3.el
elmo/elmo-util.el
wl/ChangeLog
wl/wl-summary.el

index 5310d75..ea3f104 100644 (file)
@@ -1,3 +1,17 @@
+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
index d7339e6..e7dfdc2 100644 (file)
@@ -1800,7 +1800,8 @@ Return nil if no complete line has arrived."
        (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
index 0938c05..bde1207 100644 (file)
@@ -265,6 +265,18 @@ Returns a process object.  if making session failed, returns nil."
        (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)
index cf3c2c4..9c31782 100644 (file)
@@ -115,7 +115,8 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
       (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))
index 246aba9..23660a4 100644 (file)
@@ -153,7 +153,8 @@ Debug information is inserted in the buffer \"*POP3 DEBUG*\"")
     (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
index f2b0e57..dbd4a5e 100644 (file)
@@ -142,13 +142,6 @@ File content is encoded with MIME-CHARSET."
 ;;;(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 "[^/ \")|&]*")
index 19758fd..ee0b3ed 100644 (file)
@@ -1,3 +1,8 @@
+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
index 896ebf5..e258dab 100644 (file)
@@ -4352,7 +4352,8 @@ If ARG, exit virtual folder."
   (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