-
Notifications
You must be signed in to change notification settings - Fork 10
/
apel-ver.el
63 lines (48 loc) · 2.2 KB
/
apel-ver.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
;;; apel-ver.el --- Declare APEL version -*- lexical-binding: t -*-
;; Copyright (C) 1999, 2000, 2003, 2006 Free Software Foundation, Inc.
;; Author: Shuhei KOBAYASHI <[email protected]>
;; Keiichi Suzuki <[email protected]>
;; Keywords: compatibility
;; This file is part of APEL (A Portable Emacs Library).
;; 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 this program; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; Put the following lines to each file of APEL package.
;;
;; (require 'product)
;; (product-provide (provide FEATURE) (require 'apel-ver))
;;; Code:
(require 'product) ; beware of circular dependency.
(provide 'apel-ver) ; these two files depend on each other.
(product-provide 'apel-ver
;; (product-define "APEL" nil '(9 23)) ; comment.
;; (product-define "APEL" nil '(10 0)) ; Released 24 December 1999
;; (product-define "APEL" nil '(10 1)) ; Released 20 January 2000
;; (product-define "APEL" nil '(10 2)) ; Released 01 March 2000
;; (product-define "APEL" nil '(10 3)) ; Released 30 December 2000
;; (product-define "APEL" nil '(10 4)) ; Released 04 October 2002
;; (product-define "APEL" nil '(10 5)) ; Released 06 June 2003
;; (product-define "APEL" nil '(10 6)) ; Released 05 July 2003
;; (product-define "APEL" nil '(10 7)) ; Released 14 February 2007
(product-define "APEL-LB" nil '(10 8))
)
(defun apel-version ()
"Print APEL version."
(interactive)
(let ((product-info (product-string-1 'apel-ver t)))
(if (called-interactively-p 'interactive)
(message "%s" product-info)
product-info)))
;;; @ End.
;;;
;;; apel-ver.el ends here