;;; Code:
;;
(require 'product)
-(provide 'wl-version)
+(provide 'wl-version) ; have to declare in the top.
(product-provide 'wl-version
(product-define
;; set version-string
(if (fboundp 'product-version-as-string)
(product-version-as-string 'wl-version)
- (product-string-1 'wl-version))
+ (product-string-1 'wl-version)) ; APEL 10.2 or earlier
;; require wl-util after product-provide.
(eval-when-compile (require 'wl-util)) ; wl-match-string
(defvar mime-editor/codename)
(defun wl-version (&optional with-codename)
- "Return Wanderlust version. If WITH-CODENAME is non-nil, add codename."
+ "Return Wanderlust version.
+If WITH-CODENAME add codename."
(product-string-1 'wl-version with-codename))
(defun wl-version-show (&optional arg)
(message "%s" (wl-version t))))
(defun wl-generate-user-agent-string ()
- "A candidate of wl-generate-mailer-string-func.
+ "A candidate of `wl-generate-mailer-string-func'.
Insert User-Agent field instead of X-Mailer field."
(let ((mime-user-agent (and (boundp 'mime-edit-insert-user-agent-field)
mime-edit-insert-user-agent-field
;; from gnus
(defun wl-extended-emacs-version (&optional with-codename)
- "Stringified Emacs version"
- (interactive)
+ "Stringified Emacs version.
+If WITH-CODENAME add XEmacs codename."
(cond
((string-match "^\\([0-9]+\\.[0-9]+\\)\\.[.0-9]+$" emacs-version)
(concat "Emacs " (wl-match-string 1 emacs-version)
(t emacs-version)))
(defun wl-extended-emacs-version2 (&optional delimiter with-codename)
- "Stringified Emacs version"
- (interactive)
+ "Stringified Emacs version.
+Separate DELIMITER (default it \" \"). If WITH-CODENAME add XEmacs codename."
(cond
((and (boundp 'mule-version)
mule-version
(t emacs-version)))
(defun wl-extended-emacs-version3 (&optional delimiter with-codename)
- "Stringified Emacs version"
- (interactive)
+ "Stringified Emacs version.
+Separate DELIMITER (default it \" \"). If WITH-CODENAME add XEmacs codename."
(cond
((and (boundp 'mule-version)
mule-version
'wl-codename
"use (product-code-name (product-find 'wl-version)) instead.")
-;; wl-version.el ends here
+;;; wl-version.el ends here