* wl-summary.el (wl-summary-mark-as-important-internal): Cause an error
authorteranisi <teranisi>
Wed, 28 Jan 2004 14:23:28 +0000 (14:23 +0000)
committerteranisi <teranisi>
Wed, 28 Jan 2004 14:23:28 +0000 (14:23 +0000)
only when the folder is 'flag/important.

wl/ChangeLog
wl/wl-summary.el

index 134f10b..de2fb30 100644 (file)
@@ -1,5 +1,8 @@
 2004-01-28  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * wl-summary.el (wl-summary-mark-as-important-internal): Cause an error
+       only when the folder is 'flag/important.
+
        * wl-address.el (wl-complete-field-body): Complete if the last
        character is a space.
 
index d6306df..741d99f 100644 (file)
@@ -3061,12 +3061,12 @@ Return non-nil if the mark is updated"
                                                 &optional
                                                 number-or-numbers
                                                 no-server-update)
-  (if (eq (elmo-folder-type-internal wl-summary-buffer-elmo-folder)
-         'flag)
-      (error "Cannot process mark in this folder"))
   (save-excursion
     (let ((folder wl-summary-buffer-elmo-folder)
          number number-list visible)
+      (when (and (eq (elmo-folder-type-internal folder) 'flag)
+                (eq (elmo-flag-folder-flag-internal folder) 'important))
+       (error "Cannot process mark in this folder"))
       (setq number-list (cond ((numberp number-or-numbers)
                               (list number-or-numbers))
                              ((and (not (null number-or-numbers))