rearrangement (particularly to eliminate RCS keyword).
[elisp/apel.git] / tinycustom.el
1 ;; tinycustom.el -- a tiny custom.el for emulating purpose.
2
3 ;; Copyright (C) 1999 Mikio Nakajima <minakaji@osaka.email.ne.jp>
4
5 ;; Author: Mikio Nakajima <minakaji@osaka.email.ne.jp>
6 ;; Maintainer: Mikio Nakajima <minakaji@osaka.email.ne.jp>
7 ;; Keywords: emulating, custom
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 GNU Emacs; see the file COPYING.  If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 ;; Boston, MA 02111-1307, USA.
25
26 ;;; Commentary:
27
28 ;; Purpose of this program is emulating for who does not have
29 ;; `custom.el'.
30 ;; DEFCUSTOM below has the same effect as the original DEFVAR has.
31 ;; DEFGROUP and DEFFACE below are just nop macro.
32
33 ;;; Code:
34
35 (require 'poe)
36
37 (defmacro-maybe defgroup (symbol members doc &rest args)
38   "Declare SYMBOL as a customization group containing MEMBERS.
39 SYMBOL does not need to be quoted.
40 Third arg DOC is the group documentation.
41
42 This is a nop defgroup only for emulating purpose.."
43   nil )
44     
45 (defmacro-maybe defcustom (symbol value doc &rest args) 
46   "Declare SYMBOL as a customizable variable that defaults to VALUE.
47 DOC is the variable documentation.
48
49 This is a defcustom only for emulating purpose.
50 Its effect is just as same as that of defvar."
51   (` (defvar (, symbol) (, value) (, doc))) )
52     
53 (defmacro-maybe defface (symbol value doc &rest args) 
54   "Declare FACE as a customizable face that defaults to SPEC.
55 FACE does not need to be quoted.
56
57 This is a nop defface only for emulating purpose."
58   nil )
59
60 (provide 'tinycustom)
61 (provide 'custom)
62
63 ;; end of tinycustom.el