Synch up with main trunk and so on.
authorteranisi <teranisi>
Tue, 20 Feb 2001 03:38:17 +0000 (03:38 +0000)
committerteranisi <teranisi>
Tue, 20 Feb 2001 03:38:17 +0000 (03:38 +0000)
24 files changed:
doc/texinfo.tex
doc/wl-ja.texi
doc/wl.texi
elmo/ChangeLog
elmo/elmo-archive.el
elmo/elmo-dop.el
elmo/elmo-filter.el
elmo/elmo-imap4.el
elmo/elmo-localdir.el
elmo/elmo-map.el
elmo/elmo-msgdb.el
elmo/elmo-multi.el
elmo/elmo-net.el
elmo/elmo-nntp.el
elmo/elmo-pipe.el
elmo/elmo-pop3.el
elmo/elmo.el
utils/ptexinfmt.el
wl/ChangeLog
wl/wl-draft.el
wl/wl-highlight.el
wl/wl-summary.el
wl/wl-template.el
wl/wl-vars.el

index 3279528..5b405a6 100644 (file)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2001-01-12.11}
+\def\texinfoversion{2001-02-02.17}
 %
 % Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
 % Free Software Foundation, Inc.
@@ -2908,16 +2908,17 @@ width0pt\relax} \fi
         % Now the real index entry with the fonts.
         \toks0 = {#2}%
         %
-        % If third (subentry) arg is present, add it to the index
-        % string.  And include a space.
+        % If the third (subentry) arg is present, add it to the index
+        % line to write.
         \ifx\thirdarg\emptymacro \else
-          \toks0 = \expandafter{\the\toks0 \space #3}%
+          \toks0 = \expandafter{\the\toks0{#3}}%
         \fi
         %
-        % Set up the complete index entry, with both the sort key
-        % and the original text, including any font commands.  We write
-        % three arguments to \entry to the .?? file, texindex reduces to
-        % two when writing the .??s sorted result.
+        % Set up the complete index entry, with both the sort key and
+        % the original text, including any font commands.  We write
+        % three arguments to \entry to the .?? file (four in the
+        % subentry case), texindex reduces to two when writing the .??s
+        % sorted result.
         \edef\temp{%
           \write\csname#1indfile\endcsname{%
             \realbackslash entry{\indexsorttmp}{\folio}{\the\toks0}}%
@@ -3139,11 +3140,18 @@ width0pt\relax} \fi
 \def\primary #1{\line{#1\hfil}}
 
 \newskip\secondaryindent \secondaryindent=0.5cm
-
-\def\secondary #1#2{
-{\parfillskip=0in \parskip=0in
-\hangindent =1in \hangafter=1
-\noindent\hskip\secondaryindent\hbox{#1}\indexdotfill #2\par
+\def\secondary#1#2{{%
+  \parfillskip=0in
+  \parskip=0in
+  \hangindent=1in
+  \hangafter=1
+  \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill
+  \ifpdf
+    \pdfgettoks#2.\ \the\toksA % The page number ends the paragraph.
+  \else
+    #2
+  \fi
+  \par
 }}
 
 % Define two-column mode, which we use to typeset indexes.
index 3ce5f45..a1d391e 100644 (file)
@@ -277,7 +277,7 @@ APEL, FLIM, SEMI \e$B$N=g$K%$%s%9%H!<%k$7$F$/$@$5$$!#\e(B
 \e$B?d>)$5$l$k\e(B APEL, FLIM, SEMI \e$B$N%P!<%8%g%s$NAH9g$;$O!"0J2<$NDL$j$G$9!#\e(B
 
 @itemize @minus
-@item APEL 10.2, FLIM 1.13.2, SEMI 1.13.7
+@item APEL 10.3, FLIM 1.14.2, SEMI 1.14.3
 @end itemize
 
 \e$B$=$NB>!"\e(BFLIM, SEMI \e$B$K$O$$$m$$$m$JJQ7A%P!<%8%g%s$,B8:_$7$^$9$,!"\e(B
@@ -4235,6 +4235,11 @@ Non-nil \e$B$J$i<+F0E*$KAw?.$7$^$9\e(B (\e$B$$$A$*$&\e(B @code{y-or-n-p} \e$B$G3NG'$7
 Non-nil \e$B$J$i!"<+J,08$F$N%a!<%k$KJV?.$9$k>l9g!">o$K\e(B @samp{To:},
 @samp{Cc:} \e$B$+$i<+J,$N%a!<%k%"%I%l%9$r:o=|$7$^$9!#\e(B
 
+@item wl-draft-delete-myself-from-bcc-fcc
+@vindex wl-draft-delete-myself-from-bcc-fcc
+Non-nil \e$B$G!"\e(B@samp{To:}, @samp{Cc:} \e$B$,\e(B \e$BJQ?t\e(B @code{wl-subscribed-mailing-list} \e$B$K\e(B
+\e$B4^$^$l$F$$$k>l9g!"\e(B@samp{Bcc:} , @samp{FCC:} \e$B$r$D$1$^$;$s!%\e(B
+
 @item wl-smtp-posting-server
 @vindex wl-smtp-posting-server
 \e$B=i4|@_Dj$O\e(B @code{nil}\e$B!#\e(B
@@ -6172,6 +6177,10 @@ face \e$B$N@_Dj$O\e(B @file{.emacs} \e$B$K=q$/$3$H$O$G$-$J$$$N$G\e(B @file{~/.wl} \e$
 
 @node Draft for Reply, Thread Format, Advanced Settings, Advanced Settings
 @subsection \e$BJV;vMQ%I%i%U%H\e(B
+@vindex wl-draft-reply-with-argument-list
+@vindex wl-draft-reply-without-argument-list
+@vindex wl-draft-reply-myself-with-argument-list
+@vindex wl-draft-reply-myself-without-argument-list
 
 \e$B%a!<%j%s%0%j%9%H$N5-;v$KJV;v$r=q$/$H$-$O!"%5%^%j%b!<%I$G\e(B @kbd{a} \e$B$r2!$7\e(B
 \e$B$?$@$1$G855-;v$N\e(B @samp{Reply-To:} \e$B$K$"$k%"%I%l%9$r\e(B @samp{To:} \e$B$KMQ0U$7$F\e(B
index 8597c97..5f123b7 100644 (file)
@@ -250,7 +250,7 @@ install-package}.)
 Recommended combination of APEL, FLIM and SEMI are following:
 
 @itemize @minus
-@item APEL 10.2, FLIM 1.13.2 and SEMI 1.13.7
+@item APEL 10.3, FLIM 1.14.2 and SEMI 1.14.3
 @end itemize
 
 You can also use many other FLIM/SEMI variants. Combination of the
@@ -4267,6 +4267,11 @@ All headers that match this regexp will be deleted when resending a message.
 If non-nil, always removes your own address from @samp{To:} and
 @samp{Cc:} when you are replying to the mail addressed to you.
 
+@item wl-draft-delete-myself-from-bcc-fcc
+@vindex wl-draft-delete-myself-from-bcc-fcc
+If any of @code{wl-subscribed-mailing-list} are contained in @samp{To:}
+or @samp{Cc:} field, do not insert @samp{Bcc:} or @samp{FCC:} field.
+
 @item wl-smtp-posting-server
 @vindex wl-smtp-posting-server
 The initial setting is @code{nil}.
@@ -6240,6 +6245,10 @@ Check mail arrival in this period.
 
 @node Draft for Reply, Thread Format, Advanced Settings, Advanced Settings
 @subsection Draft for Replay
+@vindex wl-draft-reply-with-argument-list
+@vindex wl-draft-reply-without-argument-list
+@vindex wl-draft-reply-myself-with-argument-list
+@vindex wl-draft-reply-myself-without-argument-list
 
 If you want, when you replying to articles in mailing lists, the address
 in Reply-To field of the original message to be prepared to To field of
index ec4cce3..5f1bf1d 100644 (file)
@@ -1,5 +1,37 @@
 2001-02-20  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * Luna-fy Kenichi OKADA's following changes.
+       * elmo.el (elmo-folder-list-messages-internal): Added optional argument
+       `nohide'.
+       (elmo-folder-synchronize): Changed meaning of argument `ignore-msgdb'.
+
+2000-02-20  Kenichi OKADA  <okada@opaopa.org>
+
+       * elmo-imap4.el (elmo-imap4-list-folder): Added 'uid'
+
+2000-02-19  Kenichi OKADA  <okada@opaopa.org>
+
+       * elmo2.el (elmo-list-folder): Added optional argument `nohide'.
+       * elmo-imap4.el (elmo-imap4-list-folder): Added optional argument `nohide'.
+       * elmo-pop3.el (elmo-pop3-list-folder): Ditto.
+       * elmo-nntp.el (elmo-nntp-list-folder): Ditto.
+       * elmo-localdir.el (elmo-localdir-list-folder): Ditto.
+       * elmo-localnews.el (elmo-localnews-list-folder): Ditto.
+       * elmo-archive.el (elmo-archive-list-folder): Ditto.
+       * elmo-filter.el (elmo-filter-list-folder): Ditto.
+       * elmo-internal.el (elmo-internal-list-folder): Ditto.
+       * elmo-pipe.el (elmo-pipe-list-folder): Ditto.
+       * elmo-multi.el (elmo-multi-list-folder): Ditto.
+       * elmo-maildir.el (elmo-maildir-list-folder): Ditto.
+       * elmo-dop.el (elmo-dop-list-folder): Ditto.
+
+2000-02-17  Kenichi OKADA  <okada@opaopa.org>
+
+       * elmo-msgdb.el (elmo-msgdb-max-of-killed): New function.
+       * elmo-imap4.el (elmo-imap4-list-folder): Use killed-list.
+
+2001-02-20  Yuuichi Teranishi  <teranisi@gohome.org>
+
        * elmo.el (elmo-folder-process-crosspost): New generic method.
        (elmo-folder-writable-p): Ditto.
        (elmo-folder-message-appendable-p): Eliminated.
 
        * elmo-cache.el: Rewrite.
 
+2000-02-17  Kenichi OKADA  <okada@opaopa.org>
+
+       * elmo-pop3.el (elmo-network-authenticate-session): Bind `sasl-mechanisms'
+
 2000-12-08  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-vars.el (elmo): New group.
index 07760d9..99afe7a 100644 (file)
@@ -317,7 +317,8 @@ TYPE specifies the archiver's symbol."
       (elmo-living-messages numbers killed))))
 
 (luna-define-method elmo-folder-list-messages-internal ((folder
-                                                        elmo-archive-folder))
+                                                        elmo-archive-folder)
+                                                       &optional nohide)
   (elmo-archive-list-folder-subr folder))
 
 (luna-define-method elmo-folder-status ((folder elmo-archive-folder))
index 64b7dbe..89f4503 100644 (file)
@@ -290,32 +290,41 @@ even an operation concerns the unplugged folder."
   (save-match-data
     (elmo-dop-queue-append folder "prefetch-msgs" msgs)))
 
-(defun elmo-dop-list-messages (folder)
-  (let* ((path (elmo-msgdb-expand-path folder))
-        (number-alist (elmo-msgdb-number-load path))
-        (number-list (mapcar 'car number-alist))
-        (append-list (elmo-dop-append-list-load folder))
-        (append-num (length append-list))
-        alreadies
-        killed
-        max-num
-        (i 0))
-    (setq killed (elmo-dop-list-deleted folder number-alist))
-    (while append-list
-      (if (rassoc (car append-list) number-alist)
-         (setq alreadies (append alreadies
-                                 (list (car append-list)))))
-      (setq append-list (cdr append-list)))
-    (setq append-num (- append-num (length alreadies)))
-    (setq max-num
-         (or (nth (max (- (length number-list) 1) 0)
-                  number-list) 0))
-    (while (< i append-num)
-      (setq number-list
-           (append number-list
-                   (list (+ max-num i 1))))
-      (setq i (+ 1 i)))
-    (elmo-living-messages number-list killed)))
+(defun elmo-dop-list-folder (folder &optional nohide)
+  (if (or (memq (elmo-folder-get-type folder)
+               '(imap4 nntp pop3 filter pipe))
+         (and (elmo-multi-p folder) (not (elmo-folder-local-p folder))))
+      (if elmo-enable-disconnected-operation
+         (let* ((path (elmo-msgdb-expand-path folder))
+                (number-alist (elmo-msgdb-number-load path))
+                (number-list (mapcar 'car number-alist))
+                (append-list (elmo-dop-append-list-load folder))
+                (append-num (length append-list))
+                (killed (and elmo-use-killed-list
+                             (elmo-msgdb-killed-list-load path)))
+                alreadies
+                max-num
+                (i 0))
+           (setq killed (nconc (elmo-dop-list-deleted folder number-alist)
+                               killed))
+           (while append-list
+             (if (rassoc (car append-list) number-alist)
+                 (setq alreadies (append alreadies
+                                         (list (car append-list)))))
+             (setq append-list (cdr append-list)))
+           (setq append-num (- append-num (length alreadies)))
+           (setq max-num
+                 (or (nth (max (- (length number-list) 1) 0)
+                          number-list) 0))
+           (while (< i append-num)
+             (setq number-list
+                   (append number-list
+                           (list (+ max-num i 1))))
+             (setq i (+ 1 i)))
+           (elmo-living-messages number-list killed))
+       (error "Unplugged"))
+    ;; not imap4 folder...list folder
+    (elmo-call-func folder "list-folder")))
 
 (defun elmo-dop-count-appended (folder)
   (length (elmo-dop-append-list-load folder)))
index 0f321ad..9f161c4 100644 (file)
    (elmo-filter-folder-target-internal folder) numbers))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-filter-folder))
+  ((folder elmo-filter-folder) &optional nohide)
   (elmo-folder-search (elmo-filter-folder-target-internal folder)
                      (elmo-filter-folder-condition-internal folder)))
 
index 7bcfb0b..fbe723a 100644 (file)
@@ -1846,8 +1846,15 @@ Return nil if no complete line has arrived."
        (elmo-imap4-response-value status 'messages)))))
 
 (luna-define-method elmo-folder-list-messages-plugged ((folder
-                                                       elmo-imap4-folder))
-  (elmo-imap4-list folder "all"))
+                                                       elmo-imap4-folder)
+                                                      &optional nohide)
+  (elmo-imap4-list folder
+                  (let ((max (elmo-msgdb-max-of-killed
+                              (elmo-folder-killed-list-internal folder))))
+                    (if (or nohide
+                            (null (eq max 0)))
+                        (format "uid %d:*" (1+ max))
+                      "all"))))
 
 (luna-define-method elmo-folder-list-unreads-plugged
   ((folder elmo-imap4-folder))
index f391dc8..15ced51 100644 (file)
       (buffer-string))))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-localdir-folder))
+  ((folder elmo-localdir-folder) &optional nohide)
   (elmo-localdir-list-subr folder))
 
 (luna-define-method elmo-folder-status ((folder elmo-localdir-folder))
index e04ab2c..612e79c 100644 (file)
    (elmo-map-folder-list-message-locations folder)))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-map-folder))
+  ((folder elmo-map-folder) &optional nohide)
   (mapcar 'car (elmo-map-folder-location-alist-internal folder)))
 
 (luna-define-method elmo-folder-unmark-important ((folder elmo-map-folder)
index 9fc5e8f..c2a0e77 100644 (file)
@@ -515,6 +515,20 @@ content of MSGDB is changed."
       (setq killed (cdr killed)))
     ret-val))
 
+(defun elmo-msgdb-max-of-killed (killed-list)
+  (let ((klist killed-list)
+       (max 0)
+       k)
+    (while (car klist)
+      (if (< max
+            (setq k
+                  (if (consp (car klist))
+                      (cdar klist)
+                    (car klist))))
+         (setq max k))
+      (setq klist (cdr klist)))
+    max))
+
 (defun elmo-living-messages (messages killed-list)
   (if killed-list
       (delq nil
index fd8e6ad..0633392 100644 (file)
     all-importants))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-multi-folder))
+  ((folder elmo-multi-folder) &optional nohide)
   (let* ((flds (elmo-multi-folder-children-internal folder))
         (cur-number 0)
         numbers)
index b6d8593..6e49166 100644 (file)
@@ -328,12 +328,12 @@ Returns a process object.  if making session failed, returns nil."
     (error "Unplugged")))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-net-folder))
-  (elmo-net-folder-list-messages-internal folder))
+  ((folder elmo-net-folder) &optional nohide)
+  (elmo-net-folder-list-messages-internal folder nohide))
 
-(defun elmo-net-folder-list-messages-internal (folder)
+(defun elmo-net-folder-list-messages-internal (folder nohide)
   (if (elmo-folder-plugged-p folder)
-      (elmo-folder-send folder 'elmo-folder-list-messages-plugged)
+      (elmo-folder-send folder 'elmo-folder-list-messages-plugged nohide)
     (elmo-folder-send folder 'elmo-folder-list-messages-unplugged)))
 
 (luna-define-method elmo-folder-list-messages-plugged
index 48f985c..3e9b69f 100644 (file)
@@ -561,7 +561,8 @@ Don't cache if nil.")
      (read (current-buffer)))))
 
 (luna-define-method elmo-folder-list-messages-internal ((folder
-                                                        elmo-nntp-folder))
+                                                        elmo-nntp-folder)
+                                                       &optional nohide)
   (let ((session (elmo-nntp-get-session folder))
        (group   (elmo-nntp-folder-group-internal folder))
        response numbers use-listgroup)
index db4544d..3e63b39 100644 (file)
   (elmo-folder-close-internal(elmo-pipe-folder-dst-internal folder)))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-pipe-folder))
+  ((folder elmo-pipe-folder) &optional nohide)
   (elmo-folder-list-messages-internal (elmo-pipe-folder-dst-internal
-                                      folder)))
+                                      folder) nohide))
 
 (luna-define-method elmo-folder-list-unreads-internal
   ((folder elmo-pipe-folder) unread-marks &optional mark-alist)
index d52f853..7ab3f6f 100644 (file)
@@ -70,6 +70,7 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
   "(Internal switch for using UIDL on POP3).")
 
 (defvar elmo-pop3-exists-exactly t)
+(defvar sasl-mechanism-alist)
 
 ;;; ELMO POP3 folder
 (eval-and-compile
@@ -296,6 +297,7 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
           (auth (elmo-network-session-auth-internal session))
           (auth (mapcar '(lambda (mechanism) (upcase (symbol-name mechanism)))
                         (if (listp auth) auth (list auth))))
+          sasl-mechanisms
           client name step response mechanism
           sasl-read-passphrase)
       (or (and (string= "USER" (car auth))
@@ -303,6 +305,8 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
          (and (string= "APOP" (car auth))
               (elmo-pop3-auth-apop session))
          (progn
+           (require 'sasl)
+           (setq sasl-mechanisms (mapcar 'car sasl-mechanism-alist))
            (setq mechanism (sasl-find-mechanism auth))
            (unless mechanism
              (signal 'elmo-authenticate-error '(elmo-pop3-auth-no-mechanisms)))
@@ -327,7 +331,7 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
             process
             (concat "AUTH " name
                     (and (sasl-step-data step)
-                         (concat 
+                         (concat
                           " "
                           (elmo-base64-encode-string
                            (sasl-step-data step) 'no-line-break))))) ;)
@@ -536,7 +540,7 @@ This is taken precedence over `elmo-network-stream-type-alist'.")
     (elmo-pop3-list-by-list folder)))
 
 (luna-define-method elmo-folder-list-messages-internal
-  ((folder elmo-pop3-folder))
+  ((folder elmo-pop3-folder) &optional nohide)
   (elmo-pop3-folder-list-messages folder))
 
 (luna-define-method elmo-folder-status ((folder elmo-pop3-folder))
index 644f403..10fb1ba 100644 (file)
@@ -182,9 +182,10 @@ Return value is a cons cell of NEWS and MESSAGES.")
 (luna-define-generic elmo-folder-status (folder)
   "Returns a cons cell of (MAX-NUMBER . MESSAGES) in the FOLDER.")
 
-(defun elmo-folder-list-messages (folder)
-  "Return a list of message numbers contained in FOLDER."
-  (let ((list (elmo-folder-list-messages-internal folder))
+(defun elmo-folder-list-messages (folder &optional visible-only)
+  "Return a list of message numbers contained in FOLDER.
+If optional VISIBLE-ONLY is non-nil, killed messages are not listed."
+  (let ((list (elmo-folder-list-messages-internal folder visible-only))
        (killed (elmo-folder-killed-list-internal folder))
        numbers)
     (setq numbers
@@ -227,7 +228,8 @@ IMPORTANT-MARK is the important mark."
                    (car x))))
             (elmo-msgdb-get-mark-alist (elmo-folder-msgdb folder)))))))
 
-(luna-define-generic elmo-folder-list-messages-internal (folder)
+(luna-define-generic elmo-folder-list-messages-internal (folder &optional
+                                                               visible-only)
   ;; Return a list of message numbers contained in FOLDER.
   ;; Return t if the message list is not available.
   )
@@ -1030,7 +1032,8 @@ NEW-MARK, UNREAD-CACHED-MARK, READ-UNCACHED-MARK, and IMPORTANT-MARK
 are mark strings for new messages, unread but cached messages,
 read but not cached messages, and important messages.
 If optional IGNORE-MSGDB is non-nil, current msgdb is thrown away except
-read mark status.
+read mark status. If IGNORE-MSGDB is 'visible-only, only visible messages
+are thrown away and synchronized.
 
 Return a list of
 \(NEW-MSGDB DELETE-LIST CROSSED\)
@@ -1057,7 +1060,8 @@ CROSSED is cross-posted message number."
                            (concat important-mark read-uncached-mark))
                           seen-list))
          ;; Make killed list as nil.
-         (elmo-folder-set-killed-list-internal folder 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-check folder)
@@ -1066,7 +1070,9 @@ CROSSED is cross-posted message number."
          (message "Checking folder diff...")
          ;; TODO: killed list is loaded in elmo-folder-open and
          ;; list-messages use internal killed-list-folder.
-         (setq diff (elmo-list-diff (elmo-folder-list-messages folder)
+         (setq diff (elmo-list-diff (elmo-folder-list-messages
+                                     folder
+                                     (eq 'visible-only ignore-msgdb))
                                     (unless ignore-msgdb
                                       (sort (mapcar 
                                              'car 
index a577d38..e98956e 100644 (file)
@@ -3,7 +3,7 @@
 ;; Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993,
 ;;               1994, 1995, 1996, 1997 Free Software Foundation, Inc.
 ;; Copyright (C) 1999 Yoshiki Hayashi <yoshiki@xemacs.org>
-;; Copyright (C) 2000 TAKAHASHI Kaoru <kaoru@kaisei.org>
+;; Copyright (C) 2000, 2001 TAKAHASHI Kaoru <kaoru@kaisei.org>
 
 ;; Author: TAKAHASHI Kaoru <kaoru@kaisei.org>
 ;;     Yoshiki Hayashi <yoshiki@xemacs.org>
@@ -38,8 +38,6 @@
 (require 'poe)
 (require 'broken)
 
-(provide 'ptexinfmt)
-
 ;;; Broken
 (defvar ptexinfmt-disable-broken-notice-flag t
   "If non-nil disable notice, when call `broken-facility'.
@@ -487,7 +485,8 @@ otherwise, insert URL-TITLE followed by URL in parentheses."
 ;; @image{FILENAME, [WIDTH], [HEIGHT]}
 (put 'image 'texinfo-format 'texinfo-format-image)
 (defun-maybe texinfo-format-image ()
-  (let ((args (texinfo-format-parse-args)) ; parse FILENAME?
+  ;; I don't know makeinfo parse FILENAME.
+  (let ((args (texinfo-format-parse-args))
        filename)
     (when (null (nth 0 args))
       (error "Invalid image command"))
@@ -758,4 +757,6 @@ This command is executed when texinfmt sees @item inside @multitable."
         (texinfo-sort-region opoint (point))
       (shell-command-on-region opoint (point) "sort -fd" 1))))
 
+(provide 'ptexinfmt)
+
 ;;; ptexinfmt.el ends here
index 4932900..8c0579c 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-20  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-summary.el (wl-summary-sync): Rename 'all-shown' to `all-visible'.
+       (wl-summary-input-range): Ditto.
+
 2001-02-20  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-summary.el (wl-summary-edit-addresses): Use
        * wl-summary.el (wl-summary-save-view): Renamed from
        `wl-summary-save-status'.
 
-2001-01-23  Yuuichi Teranishi  <teranisi@gohome.org>
+2000-02-20  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-summary.el (wl-summary-sync): Added 'all-shown'
+
+2000-02-20  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-summary.el (wl-summary-input-range): Added `all-shown'
+
+2000-02-19  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-summary.el (wl-summary-sync-update3): Bind 'nohide as t if sync-all.
+
+2001-02-19  OKAZAKI Tetsurou  <okazaki@be.to>
+
+       * wl-highlight.el (wl-highlight-summary-line-string): Use
+       `zerop' instead of `= 0'.
+       (wl-highlight-summary): Use `zerop' instead of `eq 0'.
+
+       * wl-template.el (wl-template-next): Use `=' instead of `eq'
+       for comparing numbers.
+       (wl-template-prev): Use `zerop' instead of `eq 0'.
+
+       * wl-draft.el (wl-draft-insert-current-message): Use
+       `with-current-buffer' instead of `save-excursion'.
+       Use `zerop' instead of `eq 0'.
+
+2001-02-17  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-draft.el (wl-draft-insert-ccs): New function.
+       (wl-draft): Use `wl-draft-insert-ccs' for Bcc and FCC.
+       * wl-vars.el (wl-draft-delete-myself-from-bcc-fcc): New variable.
+
+2001-02-15  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-summary.el (wl-cache-prefetch-message): Fixed last change.
+
+2001-02-14  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-expire.el (wl-expire-refile): Don't call
        elmo-msgdb-add-msgs-to-seen-list;
index 62cd8b7..415e40b 100644 (file)
@@ -546,9 +546,8 @@ Reply to author if WITH-ARG is non-nil."
     (with-current-buffer wl-draft-buffer-cur-summary-buffer
       (with-current-buffer wl-message-buffer
        (setq mail-reply-buffer (wl-message-get-original-buffer))))
-    (if (eq 0
-           (save-excursion
-             (set-buffer mail-reply-buffer)
+    (if (zerop
+           (with-current-buffer mail-reply-buffer
              (buffer-size)))
        (error "No current message")
       (wl-draft-yank-from-mail-reply-buffer
@@ -1346,10 +1345,9 @@ If optional argument is non-nil, current draft buffer is killed"
     (setq wl-draft-buffer-file-name file-name)
     (if mail-default-reply-to
        (insert "Reply-To: " mail-default-reply-to "\n"))
-    (if (or wl-bcc mail-self-blind)
-       (insert "Bcc: " (or wl-bcc (user-login-name)) "\n"))
-    (if wl-fcc
-       (insert "FCC: " (if (functionp wl-fcc) (funcall wl-fcc) wl-fcc) "\n"))
+    (wl-draft-insert-ccs "Bcc: " (or wl-bcc
+                              (and mail-self-blind (user-login-name))))
+    (wl-draft-insert-ccs "FCC: " wl-fcc)
     (if wl-organization
        (insert "Organization: " wl-organization "\n"))
     (and wl-auto-insert-x-face
@@ -1365,7 +1363,7 @@ If optional argument is non-nil, current draft buffer is killed"
          (when content-type
            (insert "Content-type: " content-type "\n"))
          (when content-transfer-encoding
-           (insert "Content-Transfer-encoding: " content-transfer-encoding "\n"))
+           (insert "Content-Transfer-Encoding: " content-transfer-encoding "\n"))
          (if (or content-type content-transfer-encoding)
              (insert "\n"))
          (and body (insert body))
@@ -1411,6 +1409,21 @@ If optional argument is non-nil, current draft buffer is killed"
                                                  wl-summary-buffer-name)))
     buf-name))
 
+(defsubst wl-draft-insert-ccs (str cc)
+  (let ((field
+        (if (functionp cc)
+            (funcall cc)
+          cc)))
+    (if (and field
+            (null (and wl-draft-delete-myself-from-bcc-fcc
+                       (elmo-list-member
+                        (mapcar 'wl-address-header-extract-address
+                                (append
+                                 (wl-parse-addresses (std11-field-body "To"))
+                                 (wl-parse-addresses (std11-field-body "Cc"))))
+                        (mapcar 'downcase wl-subscribed-mailing-list)))))
+       (insert str field "\n"))))
+
 (defun wl-draft-elmo-nntp-send ()
   (let ((elmo-nntp-post-pre-hook wl-news-send-pre-hook)
        (elmo-default-nntp-user
index c818ff7..4be1ac9 100644 (file)
           (setq fsymbol 'wl-highlight-summary-low-read-face))
          ((string= temp-mark "+")
           (setq fsymbol 'wl-highlight-summary-high-read-face))
-         (t (if (= 0 (length indent))
+         (t (if (zerop (length indent))
                 (setq fsymbol 'wl-highlight-summary-thread-top-face)
               (setq fsymbol 'wl-highlight-summary-normal-face))))
     (put-text-property 0 (length line) 'face fsymbol line))
@@ -1012,7 +1012,7 @@ interpreted as cited text.)"
                (when (> lines elmo-display-progress-threshold)
                  (setq i (+ i 1))
                  (setq percent (/ (* i 100) lines))
-                 (if (or (eq (% percent 5) 0) (= i lines))
+                 (if (or (zerop (% percent 5)) (= i lines))
                      (elmo-display-progress
                       'wl-highlight-summary "Highlighting..."
                       percent)))
index 4408757..d24c7ed 100644 (file)
@@ -1093,7 +1093,9 @@ Entering Folder mode calls the value of `wl-summary-mode-hook'."
            'force-update nil nil t))
          (t
           (wl-summary-sync-update unset-cursor
-                                  (string= range "all"))))))
+                                  (cond ((string= range "all") 'all)
+                                        ((string= range "all-visible")
+                                         'visible-only)))))))
 
 (defvar wl-summary-edit-addresses-candidate-fields
   ;; First element becomes default.
@@ -4423,7 +4425,7 @@ If ARG, exit virtual folder."
   "returns update or all or rescan."
   ;; for the case when parts are expanded in the bottom of the folder
   (let ((input-range-list '("update" "all" "rescan" "first:" "last:"
-                           "rescan-noscore"))
+                           "no-sync" "rescan-noscore" "all-visible"))
        (default (or (wl-get-assoc-list-value
                      wl-folder-sync-range-alist
                      folder)
index 9874ce6..ca8a42d 100644 (file)
@@ -144,15 +144,15 @@ ARG is ignored."                  ; ARG ignored this version (?)
 (defun wl-template-next ()
   "Display next reference in other buffer."
   (interactive)
-  (if (eq wl-template-max-num
-         (setq wl-template-cur-num (1+ wl-template-cur-num)))
+  (if (= wl-template-max-num
+        (setq wl-template-cur-num (1+ wl-template-cur-num)))
       (setq wl-template-cur-num 0))
   (wl-template-show))
 
 (defun wl-template-prev ()
   "Display previous reference in other buffer."
   (interactive)
-  (setq wl-template-cur-num (if (eq wl-template-cur-num 0)
+  (setq wl-template-cur-num (if (zerop wl-template-cur-num)
                                (1- wl-template-max-num)
                              (1- wl-template-cur-num)))
   (wl-template-show))
index 8e41c9b..9f39733 100644 (file)
@@ -607,6 +607,12 @@ Default is for 'followup-to-me'."
   :type 'boolean
   :group 'wl-draft)
 
+(defcustom wl-draft-delete-myself-from-bcc-fcc nil
+  "*Do not insert bcc or fcc if To and Cc fields is a member of
+`wl-subscribed-mailing-list'"
+  :type 'boolean
+  :group 'wl-draft)
+
 (defcustom wl-draft-resume-folder-window t
   "*Resume folder window in `wl-draft-hide'."
   :type 'boolean