* wl-expire.el (wl-folder-archive-current-entity)
authoryoichi <yoichi>
Wed, 12 Mar 2003 12:56:44 +0000 (12:56 +0000)
committeryoichi <yoichi>
Wed, 12 Mar 2003 12:56:44 +0000 (12:56 +0000)
(wl-folder-expire-current-entity): Don't refer visible name.
* wl-folder.el (wl-folder-jump-to-current-entity): Ditto
(wl-folder-folder-name, wl-folder-entity-name): Abolished.

wl/ChangeLog
wl/wl-expire.el
wl/wl-folder.el

index 3922e6a..df40d3a 100644 (file)
@@ -1,7 +1,9 @@
 2003-03-12  Yoichi NAKAYAMA  <yoichi@geiin.org>
 
-       * wl-fldmgr.el (wl-fldmgr-rename): Don't refer visible name.
-       (wl-fldmgr-sort,wl-fldmgr-access-display-all): Ditto.
+       * wl-fldmgr.el (wl-fldmgr-rename,wl-fldmgr-sort)
+       (wl-fldmgr-access-display-all): Don't refer visible name.
+       * wl-expire.el (wl-folder-archive-current-entity)
+       (wl-folder-expire-current-entity): Ditto.
        * wl-folder.el (wl-folder-jump-to-current-entity)
        (wl-folder-update-recursive-current-entity,wl-folder-next-unsync)
        (wl-folder-open-folder-sub,wl-folder-open-all)
@@ -9,6 +11,8 @@
        (wl-folder-insert-entity): Don't use petname for normal group.
        * wl-fldmgr.el (wl-fldmgr-insert-folders-buffer): car of the name
        is the real name.
+       * wl-folder.el (wl-folder-folder-name, wl-folder-entity-name):
+       Abolished.
 
 2003-03-06  Kenichi OKADA  <okada@opaopa.org>
 
index 165e07e..740d635 100644 (file)
@@ -756,7 +756,7 @@ ex. +ml/wl/1999_11/, +ml/wl/1999_12/."
   (let ((entity-name
         (or (wl-folder-get-folder-name-by-id
              (get-text-property (point) 'wl-folder-entity-id))
-            (wl-folder-get-realname (wl-folder-folder-name)))))
+            (wl-folder-get-entity-from-buffer))))
     (when (and entity-name
               (or (not (interactive-p))
                   (y-or-n-p (format "Expire %s? " entity-name))))
@@ -774,7 +774,7 @@ ex. +ml/wl/1999_11/, +ml/wl/1999_12/."
   (let ((entity-name
         (or (wl-folder-get-folder-name-by-id
              (get-text-property (point) 'wl-folder-entity-id))
-            (wl-folder-get-realname (wl-folder-folder-name)))))
+            (wl-folder-get-entity-from-buffer))))
     (when (and entity-name
               (or (not (interactive-p))
                   (y-or-n-p (format "Archive %s? " entity-name))))
index 30d5dd2..81c07fb 100644 (file)
 (defmacro wl-folder-buffer-group-p ()
   (` (get-text-property (point) 'wl-folder-is-group)))
 
-(defmacro wl-folder-folder-name ()
-  (` (save-excursion
-       (beginning-of-line)
-       (if (or (looking-at "^[ ]*\\[[\\+-]\\]\\(.+\\):[-0-9\\*-]+/[0-9\\*-]+/[0-9\\*-]+\n")
-              (looking-at "^[ ]*\\([^\\[].+\\):.*\n"))
-          (wl-match-buffer 1)))))
-
-(defmacro wl-folder-entity-name ()
-  (` (save-excursion
-       (beginning-of-line)
-       (if (looking-at "^[ ]*\\([^\\[].+\\):.*\n")
-          (wl-match-buffer 1)))))
-
 (defun wl-folder-buffer-search-group (group)
   (let ((prev-point (point))
        (group-regexp (concat
@@ -676,7 +663,7 @@ Optional argument ARG is repeart count."
 ;        (wl-delete-all-overlays)
 ;        (wl-highlight-folder-current-line)
          )))
-     ((setq fld-name (wl-folder-entity-name))
+     ((setq fld-name (wl-folder-get-entity-from-buffer))
       (wl-folder-set-current-entity-id
        (get-text-property (point) 'wl-folder-entity-id))
       (setq fld-name (wl-folder-get-folder-name-by-id
@@ -1437,7 +1424,7 @@ If current line is group folder, all subfolders are marked."
     (if (re-search-backward (wl-folder-unread-regex group) nil t)
        (progn
          (beginning-of-line)
-         (wl-folder-folder-name))
+         (wl-folder-get-entity-from-buffer))
       (goto-char start-point)
       (message "No more unread folder")
       nil)))
@@ -1451,7 +1438,7 @@ If current line is group folder, all subfolders are marked."
     (if (re-search-forward (wl-folder-unread-regex group) nil t)
        (progn
          (beginning-of-line)
-         (wl-folder-folder-name))
+         (wl-folder-get-entity-from-buffer))
       (goto-char start-point)
       (message "No more unread folder")
       nil)))