* wl-vars.el (wl-message-body-button-alist): Ditto.
2001-10-29 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-message.el (wl-message-add-buttons-to-body): Exchenged 3rd and 4th
+ element.
+ * wl-vars.el (wl-message-body-button-alist): Ditto.
+
* wl-vars.el (wl-message-body-button-alist): Set 4th element as the
max match length.
(Pointed out by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>.)
(setq entry (car alist)
alist (cdr alist))
(goto-char (point-min))
- (while (re-search-forward (car entry) (+ (point) (nth 3 entry)) t)
+ (while (re-search-forward (car entry) (+ (point) (nth 4 entry)) t)
(unless (get-text-property (point) 'keymap)
(wl-message-add-button
(match-beginning (nth 1 entry))
(match-end (nth 1 entry))
(nth 2 entry)
- (match-string (nth 4 entry))))))))))
+ (match-string (nth 3 entry))))))))))
(defun wl-message-add-buttons-to-header (start end)
(save-excursion
:group 'wl-pref)
(defcustom wl-message-body-button-alist
- '(("<mailto:[^>]+>" 0 'ignore 1024 0)
- ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 1024 0))
+ '(("<mailto:[^>]+>" 0 'ignore 0 1024)
+ ("<[^>]+@[^>]+>" 0 wl-message-button-refer-article 0 1024))
"Alist of regexps to match buttons in message body."
:type '(repeat
(list regexp
(integer :tag "Button")
(function :tag "Callback")
- (integer :tag "Max Length")
(repeat :tag "Data"
:inline t
- (integer :tag "Regexp group"))))
+ (integer :tag "Regexp group"))
+ (integer :tag "Max Length")))
:group 'wl-pref)
(defcustom wl-folder-window-width 20