From: yoichi Date: Thu, 6 Oct 2005 03:35:50 +0000 (+0000) Subject: merge from trunk: X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f617f24670306c724c2c3931f655fef83e291942;p=elisp%2Fwanderlust.git merge from trunk: 2005-05-10 Yoichi NAKAYAMA * wl-fldmgr.el (wl-fldmgr-add): Undo the last change. --- diff --git a/wl/ChangeLog b/wl/ChangeLog index 6953413..190f575 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2005-05-10 Yoichi NAKAYAMA + + * wl-fldmgr.el (wl-fldmgr-add): Undo the last change. + 2005-04-04 Tetsurou Okazaki * wl-action.el (wl-summary-exec): Reduce loop strength in a dolist loop. diff --git a/wl/wl-fldmgr.el b/wl/wl-fldmgr.el index ec79f5b..821e144 100644 --- a/wl/wl-fldmgr.el +++ b/wl/wl-fldmgr.el @@ -831,34 +831,20 @@ return value is diffs '(-new -unread -all)." (setq indent (wl-fldmgr-make-indent (nth 1 tmp))) (or name (setq name (wl-fldmgr-read-string - (wl-summary-read-folder wl-default-folder - "to add" nil t)))) - (let ((parent (nth 2 (wl-fldmgr-get-path-from-buffer)))) - (if (eq (cdr parent) 'access) - (if (string-match - (format "^%s" (regexp-quote (car parent))) name) - ;; force update access group - (progn - (wl-folder-confirm-existence - (wl-folder-get-elmo-folder name)) - (wl-folder-open-close) - (wl-folder-jump-to-current-entity t) - (setq ret-val t)) - (error "Can't insert folder under access group")) - (wl-folder-confirm-existence (wl-folder-get-elmo-folder name)) - ;; maybe add elmo-plugged-alist. - (elmo-folder-set-plugged (wl-folder-get-elmo-folder - (if (listp name) (car name) name)) - wl-plugged t) - (when (setq diffs - (wl-add-entity - path (list name) wl-folder-entity (nth 3 tmp) t)) - (wl-folder-insert-entity indent name) - (wl-fldmgr-update-group path diffs) - (setq wl-fldmgr-modified t) - (set-buffer-modified-p nil) - (setq ret-val t))) - ret-val))))) + (wl-summary-read-folder wl-default-folder "to add")))) + ;; maybe add elmo-plugged-alist. + (elmo-folder-set-plugged (wl-folder-get-elmo-folder + (if (listp name) (car name) name)) + wl-plugged t) + (when (setq diffs + (wl-add-entity + path (list name) wl-folder-entity (nth 3 tmp) t)) + (wl-folder-insert-entity indent name) + (wl-fldmgr-update-group path diffs) + (setq wl-fldmgr-modified t) + (set-buffer-modified-p nil) + (setq ret-val t))) + ret-val))) (defun wl-fldmgr-delete () (interactive)