From f066f057a121c0120b253204d6f1fbf8b380e0c3 Mon Sep 17 00:00:00 2001 From: kaoru Date: Tue, 10 Oct 2000 01:47:49 +0000 Subject: [PATCH] * wl-version.el: New file. Use product.el. --- wl/ChangeLog | 4 ++++ wl/wl-version.el | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 wl/wl-version.el diff --git a/wl/ChangeLog b/wl/ChangeLog index 1b7cb0a..81ffd86 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2000-10-10 TAKAHASHI Kaoru + + * wl-version.el: New file. Use product.el. + 2000-10-09 Yuuichi Teranishi * wl-summary.el (wl-summary-sync-marks): Changed argument for diff --git a/wl/wl-version.el b/wl/wl-version.el new file mode 100644 index 0000000..65756c7 --- /dev/null +++ b/wl/wl-version.el @@ -0,0 +1,69 @@ +;;; wl-version.el -- Version information for Wanderlust. + +;; Copyright 2000 Yuuichi Teranishi + +;; Author: Yuuichi Teranishi +;; Keywords: mail, net news + +;; This file is part of Wanderlust (Yet Another Message Interface on Emacsen). + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 2, or (at your option) +;; any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, +;; Boston, MA 02111-1307, USA. +;; + +;;; Commentary: +;; + +;;; Code: +;; +(require 'elmo-version) +(require 'product) +(provide 'wl-version) + +(product-provide 'wl-version + (product-define + "Wanderlust" nil + (product-version (product-find 'elmo-version)) ; equals to ELMO version. + "Roam")) + +(defun wl-version (&optional with-codename) + "Print Wanderlust version." + (interactive) + (product-string-1 'wl-version with-codename)) + +(defun wl-version-show () + (interactive) + (message "%s" (wl-version t))) + + +;; for backward compatibility +(defconst wl-appname (product-name (product-find 'wl-version))) +(make-obsolete-variable + 'wl-appname + "use (product-name (product-find 'wl-version)) insteaed.") + +(defconst wl-version + (progn (product-string-1 'wl-version) ; for product-set-version-string + (product-version-string (product-find 'wl-version)))) +(make-obsolete-variable + 'wl-version + "use (product-version-string (product-find 'wl-version)) instead.") + +(defconst wl-codename (product-code-name (product-find 'wl-version))) +(make-obsolete-variable + 'wl-codename + "use (product-code-name (product-find 'wl-version)) instead.") + +;; wl-version.el ends here -- 1.7.10.4