+2003-01-06 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+
+ * wl-news.el.in (wl-news-buffer-oldest-version): New local variable.
+ (wl-news): Set it.
+ (wl-news-append-to-folder): Use it.
+
+ * wl-news.el.in (wl-news-send-news): Append to specified folder
+ instead of wl-default-folder.
+ (wl-news-append-to-folder): Show error message with specified folder.
+
+ * wl-vars.el: Follow "Left Margin Convention" in Emacs Manual.
+ In most major modes, Emacs assumes that any opening
+ delimiter found at the left margin is the start of a
+ top-level definition, or defun. Therefore, *never put an
+ opening delimiter at the left margin unless it should have
+ that significance.*
+
+ * wl-draft.el (wl-draft-reply): List in r-list can contain function.
+
2003-01-05 NAKAJIMA Mikio <minakaji@osaka.email.ne.jp>
* wl-draft.el (wl-draft-self-reply-p): Add doc string.
(wl-draft-get-header-delimiter t)
(setq ret
(and (elmo-folder-writable-p
- (wl-folder-get-elmo-folder wl-default-folder))
+ (wl-folder-get-elmo-folder folder))
(elmo-folder-append-buffer
- (wl-folder-get-elmo-folder wl-default-folder) t)))
+ (wl-folder-get-elmo-folder folder) t)))
(wl-draft-hide send-buffer)
(wl-draft-delete send-buffer))
ret))
(defvar wl-news-buf-name "NEWS")
(defvar wl-news-mode-map nil)
(defvar wl-news-winconf nil)
+(defvar wl-news-buffer-oldest-version nil)
+(make-variable-buffer-local 'wl-news-buffer-oldest-version)
(unless wl-news-mode-map
(setq wl-news-mode-map (make-sparse-keymap))
(setq wl-news-winconf (current-window-configuration))
(set-buffer (get-buffer-create wl-news-buf-name))
(wl-news-mode)
+ (setq wl-news-buffer-oldest-version previous-version)
(buffer-disable-undo (current-buffer))
;; insert news
(let ((buffer-read-only nil))
(defun wl-news-append-to-folder ()
(interactive)
- (let* ((oldest-version (cdr (wl-news-previous-version-load)))
- (current-version (product-version (product-find 'wl-version)))
+ (let* ((current-version (product-version (product-find 'wl-version)))
(new-old-version current-version)
(folder wl-default-folder))
(if (or (and (elmo-folder-writable-p
wl-default-folder)))
(setq folder
(wl-summary-read-folder wl-default-folder "to append ")))
- (or (wl-news-send-news oldest-version wl-news-lang)
+ (or (wl-news-send-news wl-news-buffer-oldest-version wl-news-lang)
(error
- (format "Cannot append NEWS mail to %s" wl-default-folder))))))
+ (format "Cannot append NEWS mail to %s" folder))))))
(defun wl-news-force-exit ()
(interactive)
(require 'product)
(product-provide (provide 'wl-news) (require 'wl-version))
-;;; wl-news.el ends here
\ No newline at end of file
+;;; wl-news.el ends here
(?a (length wl-summary-buffer-number-list)))
"An alist of format specifications that can appear in summary mode-lines.
Each element is a list of following:
-\(SPEC STRING-EXP\)
+\(SPEC STRING-EXP)
SPEC is a character for format specification.
STRING-EXP is an expression to get string to insert.")
(?@ (wl-summary-line-attached)))
"An alist of format specifications that can appear in summary lines.
Each element is a list of following:
-\(SPEC STRING-EXP\)
+\(SPEC STRING-EXP)
SPEC is a character for format specification.
STRING-EXP is an expression to get string to insert.")
"*POP3 user name to send mail using POP-before-SMTP.
If nil, `elmo-pop3-default-user' is used.
To use POP-before-SMTP,
-\(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp\)"
+\(setq wl-draft-send-mail-function 'wl-draft-send-mail-with-pop-before-smtp)"
:type '(choice (const :tag "none" nil)
string)
:group 'wl
("Mail-Followup-To" "To" "Cc")
("Followup-To" "Newsgroups"))))
"Alist of cons cell of
-\('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups')\)
+\('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
'field-name' is a string.
'fields for ***' is a list of strings.
If car of each cons cell exists in original message,
cdr of each cons cell is used for draft message.
-Default is for 'reply-to-author'."
+Default is for 'reply-to-all'."
:type '(repeat (cons (choice (string :tag "Field Name")
(repeat (string :tag "Field Name")))
(list (repeat :tag "Fields For To" string)
:group 'wl-draft)
(defcustom wl-draft-reply-without-argument-list
- '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To")
- nil ("Followup-To")))
+ '(("Followup-To" . (("Mail-Followup-To" "Mail-Reply-To" "Reply-To") nil ("Followup-To")))
("Mail-Followup-To" . (("Mail-Followup-To") nil nil))
("Newsgroups" . (("Mail-Reply-To" "Reply-To" "To") ("Cc") ("Newsgroups")))
("Mail-Reply-To" . (("Mail-Reply-To" "Reply-To") ("To" "Cc") nil))
(wl-draft-self-reply-p . (("To") ("Cc") nil))
("From" . (("From") ("To" "Cc") nil)))
"Alist of cons cell of
-\('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups')\)
+\('field-name' . ('fields for To' 'fields for Cc' 'fields for Newsgroups'))
'field-name' is a string.
'fields for ***' is a list of strings.
If car of each cons cell exists in original message,
-cdr of each cons cell is used for draft message.
-Default is for 'reply-to-all'."
+cdr of each cons cell is used for draft message."
:type '(repeat (cons (choice (string :tag "Field Name")
(repeat (string :tag "Field Name")))
(list (repeat :tag "Fields For To" string)
(defcustom wl-summary-fix-timezone nil
"*Time zone of the date string in summary mode.
If nil, it is adjust to the default time zone information
-\(system's default time zone or environment variable TZ\)."
+\(system's default time zone or environment variable TZ)."
:type '(choice (const :tag "Default time zone" nil)
string)
:group 'wl-summary)
(?n wl-message-buffer-cur-number))
"An alist of format specifications for message buffer's mode-lines.
Each element is a list of following:
-\(SPEC STRING-EXP\)
+\(SPEC STRING-EXP)
SPEC is a character for format specification.
STRING-EXP is an expression to get string to insert.")
("^-han\\." . (2 "+" "+" "|" "-" " ")))
"Thread indent set alist.
If no match, following indent set is used.
-(wl-thread-indent-level
+\(wl-thread-indent-level
wl-thread-have-younger-brother-str
wl-thread-youngest-child-str
wl-thread-vertical-str