source: projects/emacsen-common/trunk/apel-sample/usr/share/emacs/site-lisp/apel/apel-ver.el @ 7238

Revision 7238, 1.8 KB checked in by daisuke, 12 years ago (diff)

import emacsen-common

Line 
1;;; apel-ver.el --- Declare APEL version.
2
3;; Copyright (C) 1999 Free Software Foundation, Inc.
4
5;; Author: Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
6;;      Keiichi Suzuki <keiichi@nanap.org>
7;; Keywords: compatibility
8
9;; This file is part of APEL (A Portable Emacs Library).
10
11;; This program is free software; you can redistribute it and/or
12;; modify it under the terms of the GNU General Public License as
13;; published by the Free Software Foundation; either version 2, or (at
14;; your option) any later version.
15
16;; This program is distributed in the hope that it will be useful, but
17;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19;; General Public License for more details.
20
21;; You should have received a copy of the GNU General Public License
22;; along with this program; see the file COPYING.  If not, write to
23;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24;; Boston, MA 02111-1307, USA.
25
26;;; Commentary:
27
28;; Put the following lines to each file of APEL package.
29;;
30;; (require 'product)
31;; (product-provide (provide FEATURE) (require 'apel-ver))
32
33;;; Code:
34
35(require 'product)                      ; beware of circular dependency.
36(provide 'apel-ver)                     ; these two files depend on each other.
37
38(product-provide 'apel-ver
39  ;; (product-define "APEL" nil '(9 23))        ; comment.
40  ;; (product-define "APEL" nil '(10 0))        ; Released 24 December 1999
41  ;; (product-define "APEL" nil '(10 1))        ; Released 20 January 2000
42  ;; (product-define "APEL" nil '(10 2))        ; Released 01 March 2000
43  (product-define "APEL" nil '(10 3))           ; Released 30 December 2000
44  )
45
46(defun apel-version ()
47  "Print APEL version."
48  (interactive)
49  (let ((product-info (product-string-1 'apel-ver t)))
50    (if (interactive-p)
51        (message "%s" product-info)
52      product-info)))
53
54
55;;; @ End.
56;;;
57
58;;; apel-ver.el ends here
Note: See TracBrowser for help on using the repository browser.