Added -*-coding:-*- magic to the first line.
* wl-summary.el (wl-summary-search-by-subject): Fixed bug;
Search parent from the first message.
* elmo.el (elmo-folder-clear): New method.
(elmo-folder-clear): Define.
(elmo-folder-synchronize): Call `elmo-folder-clear'.
* elmo-shimbun.el (elmo-folder-check): Rewrite.
(elmo-folder-clear): Define.
* elmo-map.el (elmo-folder-clear): Define.
2001-07-02 Yuuichi Teranishi <teranisi@gohome.org>
+ * elmo.el (elmo-folder-clear): New method.
+ (elmo-folder-clear): Define.
+ (elmo-folder-synchronize): Call `elmo-folder-clear'.
+
+ * elmo-shimbun.el (elmo-folder-check): Rewrite.
+ (elmo-folder-clear): Define.
+
+ * elmo-map.el (elmo-folder-clear): Define.
+
* elmo-version.el (elmo-version): Up to 2.7.1.
2001-06-26 Yuuichi Teranishi <teranisi@gohome.org>
folder
(elmo-map-folder-list-message-locations folder)))
+(luna-define-method elmo-folder-clear :around ((folder elmo-map-folder)
+ &optional keep-killed)
+ (unless keep-killed
+ (elmo-map-folder-set-number-max-internal folder 0)
+ (elmo-map-folder-set-location-alist-internal folder nil)
+ ;; clear hashtable.
+ (elmo-map-folder-set-location-hash-internal folder (elmo-make-hash)))
+ (luna-call-next-method))
+
(luna-define-method elmo-folder-list-messages-internal
((folder elmo-map-folder) &optional nohide)
(mapcar 'car (elmo-map-folder-location-alist-internal folder)))
(elmo-shimbun-folder-shimbun-internal folder))
nil))
-(luna-define-method elmo-folder-check :after ((folder elmo-shimbun-folder))
+(luna-define-method elmo-folder-check :around ((folder elmo-shimbun-folder))
(when (shimbun-current-group-internal
(elmo-shimbun-folder-shimbun-internal folder))
- (when (elmo-shimbun-headers-check-p folder)
- ;; Discard current headers information.
- (elmo-folder-close-internal folder)
- (elmo-folder-open-internal folder))))
+ (when (and (elmo-folder-plugged-p folder)
+ (elmo-shimbun-headers-check-p folder))
+ (elmo-shimbun-get-headers folder)
+ (luna-call-next-method))))
+
+(luna-define-method elmo-folder-clear :around ((folder elmo-shimbun-folder)
+ &optional keep-killed)
+ (elmo-shimbun-folder-set-headers-internal folder nil)
+ (elmo-shimbun-folder-set-header-hash-internal folder nil)
+ (elmo-shimbun-folder-set-last-check-internal folder nil)
+ (luna-call-next-method))
(luna-define-method elmo-folder-expand-msgdb-path ((folder
elmo-shimbun-folder))
(luna-define-generic elmo-folder-check (folder)
"Check the FOLDER to obtain newest information at the next list operation.")
+(luna-define-generic elmo-folder-clear (folder &optional keep-killed)
+ "Clear FOLDER to the initial state.
+If optional KEEP-KILLED is non-nil, killed-list is not cleared.")
+
(luna-define-generic elmo-folder-commit (folder)
"Save current status of FOLDER.")
(elmo-fetch-strategy-cache-path strategy)
section)))))
+(luna-define-method elmo-folder-clear ((folder elmo-folder)
+ &optional keep-killed)
+ (unless keep-killed
+ (elmo-folder-set-killed-list-internal folder nil))
+ (elmo-folder-set-msgdb-internal folder (elmo-msgdb-clear)))
+
(defun elmo-folder-synchronize (folder
new-mark ;"N"
unread-uncached-mark ;"U"
read but not cached messages, and important messages.
If optional IGNORE-MSGDB is non-nil, current msgdb is thrown away except
read mark status. If IGNORE-MSGDB is 'visible-only, only visible messages
-are thrown away and synchronized.
-If NO-CHECK is non-nil, recheck folder is skipped.
+\(the messages which are not in the killed-list\) are thrown away and
+synchronized.
+If NO-CHECK is non-nil, rechecking folder is skipped.
Return a list of
\(NEW-MSGDB DELETE-LIST CROSSED\)
number-alist mark-alist
(concat important-mark read-uncached-mark))
seen-list))
- ;; Make killed list as nil.
- (unless (eq ignore-msgdb 'visible-only)
- (elmo-folder-set-killed-list-internal folder nil))
- (elmo-folder-set-msgdb-internal folder
- (elmo-msgdb-clear))))
+ (elmo-folder-clear folder (eq ignore-msgdb 'visible-only))))
(unless no-check (elmo-folder-check folder))
(condition-case nil
(progn
2001-07-02 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-vars.el: Changed file coding system to euc-japan.
+ Added -*-coding:-*- magic to the first line.
+
+ * wl-summary.el (wl-summary-search-by-subject): Fixed bug;
+ Search parent from the first message.
+
* Version number is increased to 2.7.1.
2001-06-28 OHASHI Akira <bg66@koka-in.org>
(run-hooks 'wl-summary-insert-headers-hook)))
(defun wl-summary-search-by-subject (entity overview)
- (let ((buf (get-buffer-create wl-summary-search-buf-name))
+ (let ((summary-buf (current-buffer))
+ (buf (get-buffer-create wl-summary-search-buf-name))
(folder-name (wl-summary-buffer-folder-name))
match founds found-entity)
- (save-excursion
- (set-buffer buf)
+ (with-current-buffer buf
(let ((case-fold-search t))
(when (or (not (string= wl-summary-search-buf-folder-name folder-name))
(zerop (buffer-size)))
(elmo-msgdb-overview-entity-get-subject entity)))
(if (string= match "")
(setq match "\n"))
- (goto-char (point-max))
+ (goto-char (point-min))
(while (and (not founds)
- (not (= (point) (point-min)))
- (search-backward match nil t))
+ (not (= (point) (point-max)))
+ (search-forward match nil t))
;; check exactly match
- (when (and (bolp)
- (= (point-at-eol)
- (match-end 0)))
+ (when (and (eolp)
+ (= (point-at-bol)
+ (match-beginning 0)))
(setq found-entity (wl-summary-get-alike))
(if (and found-entity
;; Is founded entity myself or children?
(not (string=
(elmo-msgdb-overview-entity-get-id entity)
- (elmo-msgdb-overview-entity-get-id (car found-entity))))
- (not (wl-thread-descendant-p
- (elmo-msgdb-overview-entity-get-number entity)
- (elmo-msgdb-overview-entity-get-number (car found-entity)))))
+ (elmo-msgdb-overview-entity-get-id
+ (car found-entity))))
+ (with-current-buffer summary-buf
+ (not (wl-thread-descendant-p
+ (elmo-msgdb-overview-entity-get-number entity)
+ (elmo-msgdb-overview-entity-get-number
+ (car found-entity))))))
;; return matching entity
(setq founds found-entity))))
(if founds
;; Search parent by subject.
(when (and (null parent-number)
wl-summary-search-parent-by-subject-regexp
- (string-match wl-summary-search-parent-by-subject-regexp
- (elmo-msgdb-overview-entity-get-subject entity)))
+ (string-match
+ wl-summary-search-parent-by-subject-regexp
+ (elmo-msgdb-overview-entity-get-subject entity)))
(let ((found (wl-summary-search-by-subject entity overview)))
(when (and found
(not (member found wl-summary-delayed-update)))
-;;; wl-vars.el -- Variable definitions for Wanderlust.
+;;; wl-vars.el -- Variable definitions for Wanderlust. -*-coding:euc-japan;-*-
;; Copyright (C) 1998,1999,2000,2001 Yuuichi Teranishi <teranisi@gohome.org>
;; Copyright (C) 1998,1999,2000,2001 Masahiro MURATA <muse@ba2.so-net.ne.jp>
:type 'integer
:group 'wl-highlight)
-(defcustom wl-biff-state-indicator-on "[\e$B")\e(B]"
+(defcustom wl-biff-state-indicator-on "[¢©]"
"String used to show biff status ON."
:type 'string
:group 'wl-highlight)
-(defcustom wl-biff-state-indicator-off "[\e$B!>\e(B]"
+(defcustom wl-biff-state-indicator-off "[¡¾]"
"String used to show biff status OFF."
:type 'string
:group 'wl-highlight)
;; Advanced thread view.
(defvar wl-thread-indent-level 1
"*Indent level for thread.")
-(defvar wl-thread-have-younger-brother-str "\e$B(2\e(B"
+(defvar wl-thread-have-younger-brother-str "¨²"
"*A string for thread branch line. It should contain one character.")
-(defvar wl-thread-youngest-child-str "\e$B(1\e(B"
+(defvar wl-thread-youngest-child-str "¨±"
"*A string for thread branch line. It should contain one character.")
-(defvar wl-thread-vertical-str "\e$B(-\e(B"
+(defvar wl-thread-vertical-str "¨"
"*A string for thread branch line. It should contain one character.")
-(defvar wl-thread-horizontal-str "\e$B(,\e(B"
+(defvar wl-thread-horizontal-str "¨¬"
"*A string for thread branch line. It should contain one character.")
-(defvar wl-thread-space-str "\e$B!!\e(B"
+(defvar wl-thread-space-str "¡¡"
"*A string for thread branch line. It should contain one character.")
(defvar wl-highlight-thread-indent-string-regexp "[^[<]*"